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/2005-January/051178.html below:

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

[Python-Dev] Getting rid of unbound methods: patch available [Python-Dev] Getting rid of unbound methods: patch availableGuido van Rossum gvanrossum at gmail.com
Tue Jan 18 18:17:48 CET 2005
[Timothy Delaney]
> If im_func were set to the class where the function was defined, I could
> definitely avoid the second part of the trawling (not sure about the
> first yet, since I need to get at the function object).

Instead of waiting for unbound methods to change their functionality,
just create a metaclass that sticks the attribute you want on the
function objects.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
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