A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-July/127193.html below:

[Python-Dev] lament for the demise of unbound methods

[Python-Dev] lament for the demise of unbound methods [Python-Dev] lament for the demise of unbound methodsChris 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4