unintuitive for-loop behavior

Jussi Piitulainen jussi.piitulainen at helsinki.fi
Sun Oct 2 04:40:51 EDT 2016


Marko Rauhamaa writes:

> Jussi Piitulainen wrote:
>> I could have just posted that yes, it *could* be done, there's
>> nothing so special about variables and scope in Python. But I pretty
>> much know that the response to *that* would have been yet another
>> round of "You don't understand that Python variables are different,
>> they are not boxes in fixes locations but name bindings, and no, it
>> cannot be done."
>
> Your valiant effort to get a point across has been noted.

Thank you. It's nice to be heard.



More information about the Python-list mailing list