Scope rule pecularities

Andrew Bennetts andrew-pythonlist at puzzling.org
Fri May 7 04:15:46 EDT 2004


I wrote:
[...]
>
> You can't do the operation in-place with immutable values such as numbers
> and tuples, though.  So to make "x += 1" work (where is is some integer),
                                                       ^^
                                   Obviously I meant to say "x" here.

-Andrew.





More information about the Python-list mailing list