Roundup Robot added the comment:
New changeset d42d3d3f9c41 by Guido van Rossum in branch '3.4':
asyncio: Be careful accessing instance variables in __del__ (closes #21340).
http://hg.python.org/cpython/rev/d42d3d3f9c41
New changeset 0cb436c6f082 by Guido van Rossum in branch 'default':
Merge
STINNER Victor added the comment:
Why not using try/except AttributeError?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21340
___
___
Guido van Rossum added the comment:
Sorry, should have let someone review it. I'm a bit out of practice. :-)
But in this case I think three-arg getattr() is better; less code, less
indentation, and the final question (is the frame not None?) must still be
asked.
--
Guido van Rossum added the comment:
Oh wait, it looks like the assert failed because KeyboardInterrupt hit right at
that point. I ran the program a few times and when I hit ^C I get a traceback
at a different point in the code each time. This is as expected. You must have
hit the rare case
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21340
___
Guido van Rossum added the comment:
Looks like there is a bug in CoroWrapper -- when the assert in __init__ fails,
__del__ gets called imediately after and that triggers this traceback.
However I'm not sure what causes the assert to fail -- it looks like this is
coming from sleep(), which
Changes by Jack Murray j...@murray.cx:
--
title: Possible bug in asyncio - Possible concurrency bug in asyncio,
AttributeError in tasks.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21340