[Python-Dev] Draft proposal: Implicit self in Python 3.0 (original) (raw)
Phillip J. Eby pje at telecommunity.com
Sun Jan 8 17:27:16 CET 2006
- Previous message: [Python-Dev] Draft proposal: Implicit self in Python 3.0
- Next message: [Python-Dev] [Buildbot-devel] Re: buildbot
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 08:09 AM 1/8/2006 -0800, Ralf W. Grosse-Kunstleve wrote:
--- Thomas Wouters <thomas at xs4all.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.
- Previous message: [Python-Dev] Draft proposal: Implicit self in Python 3.0
- Next message: [Python-Dev] [Buildbot-devel] Re: buildbot
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]