[Python-Dev] lament for the demise of unbound methods
Chris Withers
chris at simplistix.co.uk
Thu Jul 4 21:59:03 CEST 2013
On 04/07/2013 20:50, Benjamin Peterson wrote:
> 2013/7/4 Eric Snow <ericsnowcurrently at 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
More information about the Python-Dev
mailing list