unintuitive for-loop behavior

Marko Rauhamaa marko at pacujo.net
Sun Oct 2 03:52:25 EDT 2016


Jussi Piitulainen <jussi.piitulainen at helsinki.fi>:
> 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.


Marko



More information about the Python-list mailing list