[issue26494] Double deallocation on iterator exhausting

Filipp Andjelo report at bugs.python.org
Wed Mar 9 07:29:14 EST 2016


Filipp Andjelo added the comment:

Hi Serhiy,

I tried the short example you gave, but it doesn't crash. I'm getting:

Exception ignored in: <bound method A.__del__ of []>
Traceback (most recent call last):
  File "./test.py", line 5, in __del__
    next(it)
StopIteration
Exception ignored in: <bound method A.__del__ of []>
Traceback (most recent call last):
  File "./test.py", line 5, in __del__
    next(it)
StopIteration
Traceback (most recent call last):
  File "./test.py", line 8, in <module>
    next(it)
StopIteration

Am I missing something?

----------
nosy: +scorp

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


More information about the Python-bugs-list mailing list