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/050696.html below:

[Python-Dev] Let's get rid of unbound methods

[Python-Dev] Let's get rid of unbound methods [Python-Dev] Let's get rid of unbound methodsJim Fulton jim at zope.com
Wed Jan 5 18:53:19 CET 2005
Armin Rigo wrote:
> Hi Jim,
> 
> On Tue, Jan 04, 2005 at 02:44:43PM -0500, Jim Fulton wrote:
> 
>>>Actually, unbound builtin methods are a different type than bound
>>>builtin methods:
>>
>>Of course, but conceptually they are similar.  You would still
>>encounter the concept if you got an unbound builtin method.
> 
> 
> There are no such things as unbound builtin methods:
> 
> 
>>>>list.append is list.__dict__['append']
> 
> True
> 
> In other words 'list.append' just returns exactly the same object as stored in
> the list type's dict.  Guido's proposal is to make Python methods behave in
> the same way.

OK, interesting.

I'm sold then.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org
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