[issue38808] weird bug while using a for loop and array

Mark Dickinson report at bugs.python.org
Fri Nov 15 03:25:52 EST 2019


Mark Dickinson <dickinsm at gmail.com> added the comment:

This isn't a bug: it's the way that Python's assignment model works.

This is explained in various places (including the official Python documentation), but you may find this excellent presentation by Ned Batchelder useful: https://nedbatchelder.com/text/names1.html

----------
nosy: +mark.dickinson
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38808>
_______________________________________


More information about the Python-bugs-list mailing list