[docs] [issue30707] Incorrect description of "async with" in PEP492 and documentation

Nick Coghlan report at bugs.python.org
Tue Jun 20 01:38:31 EDT 2017


Nick Coghlan added the comment:

The specific issue is that early exits from an "async with" statement are actually defined the same way they for synchronous with statements: exiting early via return, break, or continue, is the same as reaching the end of the try block.

However, that's not what the documentation currently says: it describes "async with" in terms of try/except/else, which isn't correct.

----------
nosy: +ncoghlan, yselivanov

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


More information about the docs mailing list