@decorators
Neil Hodgson
nhodgson at bigpond.net.au
Fri Aug 6 10:48:42 EDT 2004
daishi:
> As far as I know, the proposed @decorator syntax will be the first
> time that two logical lines of python with the same indentation will
> not be independent of one another. Previously, when looking at:
>
> some_python(code)
> and_some_more = stuff
>
> there was no need to look at the the first line in order to know what
> the second line meant/did (and vice versa).
Much of the time, consecutive lines with the same indentation are highly
dependent with earlier lines modifying the behaviour of successor lines:
global x
x = 9
Neil
More information about the Python-list
mailing list