[Python-3000] Method descriptors

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Dec 13 00:06:28 CET 2007


Guido van Rossum wrote:
> On Dec 12, 2007 2:45 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 
>>Can you give me a link to that? I wasn't following the
>>discussion that closely.
> 
> http://svn.python.org/view?rev=59469&view=rev

That's not quite what I had in mind -- Pyrex already solves
the problem by wrapping the function in another object.
My suggestion was to make the PyCFunction itself obey the
descriptor protocol so as to create bound methods.

--
Greg


More information about the Python-3000 mailing list