variable declaration

Fredrik Lundh fredrik at pythonware.com
Mon Jan 31 18:02:14 CET 2005


Michael Tobis wrote:

>> that's a nice theory, but since the decorator line is executed by the
>> interpreter, it's a little weak.
>
> Well, uh, who else would process it?

the compiler.

from __future__ is a declaration.  @expression is an executable statement.

</F> 






More information about the Python-list mailing list