[issue1587] instancemethod wrapper for PyCFunctions

2019-04-04 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > I'm tempted to call YAGNI on this. Indeed. See https://bugs.python.org/issue36525 -- nosy: +jdemeyer ___ Python tracker ___ ___

[issue1587] instancemethod wrapper for PyCFunctions

2007-12-11 Thread Christian Heimes
Christian Heimes added the comment: Applied in r59469 The PyInstanceMethod_Type is not exposed to Python programs. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue1587] instancemethod wrapper for PyCFunctions

2007-12-11 Thread Guido van Rossum
Guido van Rossum added the comment: OK, you've convinced me. Let's just make it a C API for now. On Dec 11, 2007 10:56 AM, Christian Heimes <[EMAIL PROTECTED]> wrote: > > Christian Heimes added the comment: > > The wrapper is useful for C code which used PyMethod_New(func, NULL, > type) in 2.5.

[issue1587] instancemethod wrapper for PyCFunctions

2007-12-11 Thread Christian Heimes
Christian Heimes added the comment: The wrapper is useful for C code which used PyMethod_New(func, NULL, type) in 2.5. W/o a wrapper people may have to rewrite and redesign their code base. For example see http://bugs.python.org/issue1505 and r59215. I had to rewrite a good bunch of code just to

[issue1587] instancemethod wrapper for PyCFunctions

2007-12-11 Thread Guido van Rossum
Guido van Rossum added the comment: I'm tempted to call YAGNI on this. -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-li

[issue1587] instancemethod wrapper for PyCFunctions

2007-12-11 Thread Christian Heimes
New submission from Christian Heimes: The patch implements the instancemethod wrapper as discussed on the py3k mailing list. The patch is roughly based on Marcin Kowalczyk patch but it contains more fancy slots like repr, call etc. The rest is mostly based on PyMethod_Type. -- components