Page MenuHomeSoftware Heritage
Paste P694

(An Untitled Masterwork)
ActivePublic

Authored by vlorentz on Jun 11 2020, 10:49 AM.
>>> class Foo:
... def __bool__(self):
... return False
...
>>> foo = Foo()
>>> foo and foo.id
<__main__.Foo object at 0x7fd0168a6b38>