[issue46095] Warning about iterate/modify has unwarranted detail

2021-12-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this note can be removed. The tutorial now has coverage of mutating while iterating. That is the correct place for discussion of looping techniques. The part about the "internal counter" needs to be rewritten and moved to stdtypes.rst section

[issue46095] Warning about iterate/modify has unwarranted detail

2021-12-17 Thread Éric Araujo
Éric Araujo added the comment: The note does say it’s about mutable sequences like lists. -- nosy: +eric.araujo ___ Python tracker ___

[issue46095] Warning about iterate/modify has unwarranted detail

2021-12-16 Thread Ture Pålsson
New submission from Ture Pålsson : The language reference about the 'for' statement (https://docs.python.org/3/reference/compound_stmts.html#the-for-statement) has a "Note" box that states that the for statement uses an "internal counter" which is "incremented", and goes into detail about