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/2006-January/059505.html below:

[Python-Dev] Draft proposal: Implicit self in Python 3.0

[Python-Dev] Draft proposal: Implicit self in Python 3.0 [Python-Dev] Draft proposal: Implicit self in Python 3.0Fredrik Lundh fredrik at pythonware.com
Sun Jan 8 16:49:36 CET 2006
Ralf W. Grosse-Kunstleve wrote:

> > what dictionary lookup ?
>
> IIUC, "self" is first looked up in the local dictionary.

no, self is a local variable.  self.x means that "x" is looked up in the in-
stance dictionary, though.

> Please try the code below to see the performance impact.

oh, please.  do you seriously think that if you don't have to type "self"
yourself, Python will suddenly be able to turn all instance variables into
local function variables without any performance overhead ?

</F>



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