New submission from Christian Heimes <[EMAIL PROTECTED]>: A long time ago I added the PyInstanceMethod_Type in r59469. It's a wrapper that turns every function including PyCFunctions into a bindable function.
class Example: id = instancemethod(id) Example().id() Without instancemethod the builtin function is not called with 'self' as first argument. The code is in the core for a long time but it has neither been used and unit tested nor was it exposed yet. The feature was requested by the Pyrex and Cython developers. The feature should either be removed or exposed somehow. I know it's very late in the release cycle but I feel uncomfortable with code that has no tests. If you don't want to expose it to the user but only to C extension writers I'll come up with another plan. For example I could add the type to the testcapi module and test it there. ---------- assignee: barry components: Interpreter Core files: instancemethod_public.patch keywords: needs review, patch, patch messages: 72619 nosy: barry, christian.heimes, gvanrossum priority: release blocker severity: normal status: open title: Make PyInstanceMethod_Type available or remove it versions: Python 3.1 Added file: http://bugs.python.org/file11395/instancemethod_public.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3787> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com