<build-in function> incompatible with <function>
emile at fenx.com
Mon Jan 30 20:13:32 EST 2006
"Luke" <luke at deller.id.au> wrote in message
news:1138669047.694626.283940 at g49g2000cwa.googlegroups.com...
> Built-in functions don't bind to classes like regular functions. Is
> this intended? (I do notice that the Python Reference Manual sec 3.2
> under "Class Instance" refers to a "user-defined function"). Any ideas
> what the reason is for this distinction between build-in functions and
> normal functions?
no, but does this help...
>>> class Test:
... c = classmethod(abs)
>>> obj = Test()
<bound method classobj.abs of <class __main__.Test at 0x00B2C060>>
More information about the Python-list