New submission from Anmol Gupta: Documentation section: https://docs.python.org/3/reference/compound_stmts.html#for
The documentation does not explain at all why is there an infinite loop when not using a copy of the list. It leaves the reader in a confused state. Even there are questions concerning the same on stackoverlflow: https://stackoverflow.com/questions/44633798/loop-through-a-list-in-python-and-modify-it ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30826> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com