Georg Brandl wrote:
> We've made class.function return a function, but the unbound method machinery
> is still alive. For example, you can still create unbound methods with
> new.instancemethod and PyMethod_New, and there's bits of code in classobject.c
> that refers to unbound methods.

Removing unbound methods also removes an obscure way to rebind internal
C functions to classes:

class Example:
   pass

Example.id = new.instancemethod(id, None, Example)

Now Example().id() has the same effect as:

class Example:
   def id(self):
       return id(self)

Do we need this feature?

Christian

_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to