Re: [Python-3000] Method descriptors

2007-12-12 Thread Greg Ewing
Guido van Rossum wrote: > On Dec 12, 2007 2:45 PM, Greg Ewing <[EMAIL PROTECTED]> 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

Re: [Python-3000] Method descriptors

2007-12-12 Thread Guido van Rossum
On Dec 12, 2007 3:06 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > On Dec 12, 2007 2:45 PM, Greg Ewing <[EMAIL PROTECTED]> 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=r

Re: [Python-3000] Method descriptors

2007-12-12 Thread Christian Heimes
Greg Ewing wrote: > I put forward a possible reason recently -- so that > Pyrex-defined functions could be used as methods > without requiring any special trickery. http://svn.python.org/view?rev=59469&view=rev PyObject *wrapped = PyInstanceMethod_New(PyObject *callable); The API isn't exposed t

Re: [Python-3000] Method descriptors

2007-12-12 Thread Guido van Rossum
On Dec 12, 2007 2:45 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > On Dec 11, 2007 6:10 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > > > >>I put forward a possible reason recently -- so that > >>Pyrex-defined functions could be used as methods > >>without requiring any spec

Re: [Python-3000] Method descriptors

2007-12-12 Thread Greg Ewing
Guido van Rossum wrote: > On Dec 11, 2007 6:10 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > >>I put forward a possible reason recently -- so that >>Pyrex-defined functions could be used as methods >>without requiring any special trickery. > > > Would the new API that Christian just checked in hel

Re: [Python-3000] Method descriptors

2007-12-12 Thread Marcin ‘Qrczak’ Kowalczyk
Dnia 12-12-2007, Śr o godzinie 15:10 +1300, Greg Ewing pisze: > > > CFunction does not define descr_get - why? > > > > I don't see why we should bother. > > I put forward a possible reason recently -- so that > Pyrex-defined functions could be used as methods > without requiring any special tric