|
|
|
|
|
by pfalcon
1957 days ago
|
|
If you have automatic block-level scoping, then you have the opposite problem - you need to do extra leg-work to communicate a value to the surrounding scope. Anyway, anyone agrees that block-level scoping is useful. Interested in block-level scoping in Python? Please post on the python-ideas mailing list. Thanks. |
|
In the general case, you just declare the variable in the surrounding scope and then affect it in the lower one, no?