Sarcastic Zombie wrote: > If I have a class > > class A: > __init__(id) > self.id = id > > is there any way to overload the 'if' unary usage to detect if a > variable has a value?
http://effbot.org/pyref/__nonzero__ </F> -- http://mail.python.org/mailman/listinfo/python-list