[Python-Dev] Getting rid of unbound methods: patch available

Barry Warsaw barry at python.org
Tue Jan 18 01:29:35 CET 2005


On Mon, 2005-01-17 at 17:58, M.-A. Lemburg wrote:

> If you want to make methods look more like functions,
> the method object should become a subclass of the function
> object (function + added im_* attributes).

I have no personal use cases, but it does make me vaguely uncomfortable
to lose im_class.  Isn't it possible to preserve this attribute?

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20050117/ac818a02/attachment.pgp


More information about the Python-Dev mailing list