Wouldn't it be nice if this worked?

Christian Heimes lists at cheimes.de
Sun Aug 10 22:21:13 CEST 2008


Calvin Spealman wrote:
> dont quote me but i do think this check is being removed.

No, the check hasn't been removed - technically speaking. In Python 3.0 
the behavior of the method descriptor has been changed. 
aclass.somemethod doesn't give you an instancemethod wrapper any more. 
It's a plain function object like aclass.somemethod.im_func in the 2.x 
series. Only instances return a bound instancemethod wrapper in Python 3.0.

Christian




More information about the Python-list mailing list