Closed slav0nic closed 4 years ago
some addition to https://github.com/Pylons/pyramid/pull/3421
class Foo(object):
class Foo:
(object)
__nonzero__()
__bool__()
super()
(class, self)
/
//
int
float
__unicode__
Rebased, changed this commit https://github.com/Pylons/pyramid/pull/3571/commits/aadf19a5b81645b18e50699fe2f180aeff3409b3
Good stuff, thank you @slav0nic !
some addition to https://github.com/Pylons/pyramid/pull/3421
class Foo(object):
replaced withclass Foo:
,(object)
make no sense in py3__nonzero__()
->__bool__()
, first method was removed from py3super()
syntax without(class, self)
/
replaced with//
https://github.com/Pylons/pyramid/blob/48cf45b0a1ac04e701101fa18778164825edd429/src/pyramid/config/predicates.py#L208 in py2 it returnedint
type, now in py3 -float
, that looks not correct (but not critical :])__unicode__
method was removed in py3, so we don't need any extra checks