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:
....
True
Thanks in advance
Martin
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
>>f == 0
Thanks in advance
Martin
Comment