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.
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