At 08:09 AM 1/8/2006 -0800, Ralf W. Grosse-Kunstleve wrote: >--- Thomas Wouters <[EMAIL PROTECTED]> 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@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com