[issue30826] More details in reference 'Looping through a list in Python and modifying it'

Raymond Hettinger report at bugs.python.org
Sun Jul 2 08:37:06 EDT 2017


Raymond Hettinger added the comment:

The example would be more clear if we replaced the opaque idiom "words[:]" with the more explicit alternative "words.copy()".

----------
assignee: docs at python -> rhettinger
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30826>
_______________________________________


More information about the Python-bugs-list mailing list