P
Pavel Panchekha
I've got an object which has a method, __nonzero__
The problem is, that method is attached to that object not that class
What to do?
The problem is, that method is attached to that object not that class
Truea = GeneralTypeOfObject()
a.__nonzero__ = lambda: False
a.__nonzero__() False
But:
bool(a)
What to do?