Sarcastic Zombie wrote: > is there any way to overload the 'if' unary usage to detect if a > variable has a value?
Define a __nonzero__() or __len__() method. Peter -- http://mail.python.org/mailman/listinfo/python-list
Sarcastic Zombie wrote: > is there any way to overload the 'if' unary usage to detect if a > variable has a value?
Define a __nonzero__() or __len__() method. Peter -- http://mail.python.org/mailman/listinfo/python-list