[issue15214] Warn against removing elements from a list (or seq) while iterating

Éric Araujo report at bugs.python.org
Mon Jul 2 21:41:42 CEST 2012


Éric Araujo <merwok at netwok.org> added the comment:

Maybe there is a section in the documentation that could be enhanced to make readers expect this behavior?  (reference for list or tutorial)

----------
nosy: +eric.araujo
title: list.startswith() and list.remove() fails to catch consecutive items in a list. -> Warn against removing elements from a list (or seq) while iterating

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


More information about the Python-bugs-list mailing list