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

Barry Warsaw barry at python.org
Wed Jan 5 04:42:43 CET 2005


On Tue, 2005-01-04 at 18:01, Jack Jansen wrote:

But I'm more worried about losing the other information in an unbound method, specifically imclass. I would guess that info is useful to class browsers and such, or are there other ways to get at that?

That would be my worry too. OTOH, we have function attributes now, so why couldn't we just stuff the class on the function's im_class attribute? Who'd be the wiser? (Could the same be done for im_self and im_func for backwards compatibility?)

quack-quack-ly y'rs, -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/20050104/70559f60/attachment.pgp



More information about the Python-Dev mailing list