On Nov 29, 11:26 am, Peter Otten <[EMAIL PROTECTED]> wrote: > 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
Thanks to both of you, it worked perfectly. I must have missed it in the documentation somehow. -Jason Ledbetter -- http://mail.python.org/mailman/listinfo/python-list