Re: [Python-Dev] Draft proposal: Implicit self in Python 3.0
by Phillip J. Eby other posts by this author
Jan 8 2006 8:27AM messages near this date
Re: [Python-Dev] Draft proposal: Implicit self in Python 3.0
|
Re: [Python-Dev] Draft proposal: Implicit self in Python 3.0
At 08:09 AM 1/8/2006 -0800, Ralf W. Grosse-Kunstleve wrote:
> --- Thomas Wouters <thomas@[...].net> wrote:
>
> > The main difference isn't the lookup of 'self', it's the attribute
> retrieval
> > of 'x' from 'self'.
>
> I see. Thanks!
> If you put 'self' into a special category (with corresponding C code),
> couldn't
> you use the same "indexing" tricks as for local variables and make 'self.x'
> just as fast as 'x'?
It's not nearly that simple. See e.g.:
http://mail.python.org/pipermail/python-dev/2002-February/019854.html
Note, however, that such a speedup is entirely independent of the
syntax. Trying to link the syntax with the performance is completely bogus.
_______________________________________________
Python-Dev mailing list
Python-Dev@[...].org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.c
om
Thread:
Alexander Kozlovsky
Ralf W. Grosse-Kunstleve
Ian Bicking
Thomas Wouters
Tim Peters
Brett Cannon
Fredrik Lundh
Ralf W. Grosse-Kunstleve
Samuele Pedroni
Fredrik Lundh
Ralf W. Grosse-Kunstleve
Thomas Wouters
Ralf W. Grosse-Kunstleve
Phillip J. Eby
Thomas Wouters
Fredrik Lundh
Armin Rigo
Guido van Rossum
Ralf W. Grosse-Kunstleve
"Martin v. Löwis"
"Martin v. Löwis"
Kay Schluehr
Guido van Rossum
Thomas Wouters
Phillip J. Eby
"Martin v. Löwis"
Thomas Wouters
"Martin v. Löwis"
Thomas Wouters
Tim Peters
Ian Bicking
Thomas Wouters
Ian Bicking
Samuele Pedroni
Kay Schluehr
Alexander Kozlovsky
Jim Jewett
Fabien Schwob
Kay Schluehr
Nick Coghlan
Ian Bicking
"Martin v. Löwis"
|