[Python-Dev] Are PyCFunctions supposed to invisibly consume self when used as a method? (original) (raw)

Benjamin Peterson benjamin at python.org
Sat Jun 12 02:41:52 CEST 2010


2010/6/11 Brett Cannon <brett at python.org>:

This "magical" ignoring of self seems to extend to any PyCFunction. Is this dichotomy intentional or just a "fluke"? Maybe this is a hold-over from before we had descriptors and staticmethod, but now that we have these things perhaps this difference should go away.

There are several open feature requests about this. It is merely because PyCFunction does not implement get.

-- Regards, Benjamin



More information about the Python-Dev mailing list