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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30707>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to