variable declaration
Just
just at xs4all.nl
Tue Feb 8 04:33:26 EST 2005
In article <mailman.2152.1107854937.22381.python-list at python.org>,
Nick Coghlan <ncoghlan at iinet.net.au> wrote:
> Antoon Pardon wrote:ons already existing.
> > The compilor might generate a RESTORE instruction.
>
> Whether it is done as a LOAD/STORE or a RESTORE, it has to perform the same
> work
> - check the name exists in the local namespace, and throw an exception if it
> doesn't. If it the name does exist, perform a normal store operation.
But the compiler would _know_ in which scope the variable was defined,
no?
Just
More information about the Python-list
mailing list