[Python-3000] Method descriptors

Guido van Rossum guido at python.org
Thu Dec 13 00:13:55 CET 2007


On Dec 12, 2007 3:06 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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.

As I explained earlier, that would break a fair amount of existing code.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list