Wouldn't it be nice if this worked?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Aug 12 02:24:08 EDT 2008


En Sun, 10 Aug 2008 17:21:13 -0300, Christian Heimes <lists at cheimes.de>  
escribi�:

> 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.

Is that change documented somewhere?

-- 
Gabriel Genellina




More information about the Python-list mailing list