B
bonono
I came across this while searching for a way to DIY partial(), until it
is available in 2.5
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/229472
However, when trying for the following, it doesn't work and is
wondering if it is a bug or intended :
Traceback (most recent call last):
File "<pyshell#5>", line 1, in -toplevel-
new.instancemethod(operator.is_,None,object)(None)
TypeError: is_ expected 2 arguments, got 1True
So it seems that instancemethod() don't like "None" as the instance.
is available in 2.5
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/229472
However, when trying for the following, it doesn't work and is
wondering if it is a bug or intended :
Traceback (most recent call last):
File "<pyshell#5>", line 1, in -toplevel-
new.instancemethod(operator.is_,None,object)(None)
TypeError: is_ expected 2 arguments, got 1True
So it seems that instancemethod() don't like "None" as the instance.