On 04/07/2013 20:50, Benjamin Peterson wrote:
2013/7/4 Eric Snow <ericsnowcurren...@gmail.com>:

You could always monkeypatch builtins.__build_class__ to add an attribute to
every "unbound method" pointing to the class.

I would not reccomend that. __build_class__ is very internal and it's
contract may change between versions.

Right, not to mention the fact that there's no way a library can ensure it monkeypatches that before the users of the library have created any classes.

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
           - http://www.simplistix.co.uk
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to