[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

Nick Coghlan report at bugs.python.org
Mon Jan 29 01:38:53 EST 2018


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Ah, and in my REPL example, the NameError was pending when the internal result storage was getting set back to None.

I'm not sure I even knew the "Don't complain when an exception is pending" check existed, so it would have taken me a long time to find that.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32703>
_______________________________________


More information about the Python-bugs-list mailing list