the address of list.append and list.append.__doc__
Bruno Desthuilliers
bruno.42.desthuilliers at wtf.websiteburo.oops.com
Wed Sep 26 05:41:00 EDT 2007
HYRY a écrit :
>> There's no such thing as an "original method" - what's stored as an
>> attribute of the class is a plain function. FWIW, you can get at this
>> function quite easily - via the im_func attribute of the method.
>
> I know about im_func, but I tried the im_func attribute of append and
> I get error: 'builtin_function_or_method' object has no attribute
> 'im_func'
Hmm, yes, of course. builtin C implementation here...
(snip use case)
More information about the Python-list
mailing list