[issue14370] list.extend() called on an iterator of the list itself leads to an infinite loop
Petri Lehtinen
report at bugs.python.org
Tue Mar 20 09:32:33 CET 2012
Petri Lehtinen <petri at 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 <report at bugs.python.org>
<http://bugs.python.org/issue14370>
_______________________________________
More information about the Python-bugs-list
mailing list