Petri Lehtinen <pe...@digip.org> added the comment: This has the same effect:
a = list(range(5)) a.extend(iter(a)) So the problem is not in enumerate but in list.extend() ---------- nosy: +petri.lehtinen title: enumerate() lead to system crashes -> list.extend() called on an iterator of the list itself leads to an infinite loop _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14370> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com