[Python-3000] Unbound methods -- keep creating API?
Christian Heimes
lists at cheimes.de
Sun Nov 25 23:39:06 CET 2007
Greg Ewing wrote:
> This needs consideration. Pyrex currently makes use of
> this behaviour when defining a Python class having Pyrex
> functions as methods.
>
> However, a better solution for Pyrex would be to add
> method-binding behaviour to the C function object, so
> that C functions can be used directly as methods. The
> above example would then work simply by doing
Why was the builtin_function_or_method type introduced and what's the
rational of the different behavior? Maybe we could add an API to wrap a
CFunction in an ordinary function?
Christian
More information about the Python-3000
mailing list