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

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Sun Jan 8 17:09:22 CET 2006


--- 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'?

Cheers,
        Ralf



		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



More information about the Python-Dev mailing list