Hi, Is there a way to create a function that is equal to 0? I try to redefine __cmp__ but I am pretty stuck.
Something like: >>> def f(): return "" ... >>> # Some magic >>> f == 0 True Thanks in advance Martin -- http://mail.python.org/mailman/listinfo/python-list