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

Terry J. Reedy report at bugs.python.org
Fri Jul 7 22:47:20 EDT 2017


Terry J. Reedy added the comment:

Are you looking for something like:

Let it = iter(words).  When next(it) returns 'defenestrate', insertion at the beginning moves the original 'defenestrate' over so that next(words) returns 'defenestrate' again.
?

----------
nosy: +terry.reedy

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


More information about the docs mailing list