[Python-Dev] Let's get rid of unbound methods (original) (raw)

Jim Fulton jim at zope.com
Tue Jan 4 20:12:39 CET 2005


Phillip J. Eby wrote:

At 10:28 AM 1/4/05 -0800, Guido van Rossum wrote:

Of course, more changes would be needed: docs, the test suite, and some simplifications to the instance method object implementation in classobject.c.

Does anyone think this is a bad idea? Code that currently does 'aClass.aMethod.imfunc' in order to access the function object would break, as would code that inspects 'imself' to determine whether a method is a class or instance method. (Although code of the latter sort would already break with static methods, I suppose.)

Code of the latter sort wouldn't break with the change. We'd still have bound methods.

Jim

-- Jim Fulton mailto:jim at zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org



More information about the Python-Dev mailing list