[Python-Dev] Callable, non-descriptor class attributes.

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 12 00:49:32 CET 2011


Thomas Wouters wrote:

>  2. Make CFunctions turn into methods in CPython (after a period of 
> warning about the impending change, obviously.) The actual *usecase* for 
> this is hard to envision

While not necessary for the case being discussed here, this would
be a big help for Pyrex and Cython, where currently some awkward
things have to be done to get a Python class with methods implemented
in C.

-- 
Greg


More information about the Python-Dev mailing list