[Python-3000] Unbound methods -- keep creating API?
greg.ewing at canterbury.ac.nz
Tue Nov 27 00:49:22 CET 2007
Nick Coghlan wrote:
> Interestly, I just discovered that method descriptors for builtins don't
> define im_class, im_self or im_func. I never knew that - I thought they
> had the same interface as instance methods.
A builtin method descriptor is the C equivalent of a
function object, not an instancemethod.
The desired behaviour would be for builtin method
descriptors to have a __get__ method that creates
an instancemethod object, like functions do.
More information about the Python-3000