Message296402
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. |
|
Date |
User |
Action |
Args |
2017-06-20 05:38:31 | ncoghlan | set | recipients:
+ ncoghlan, docs@python, yselivanov, Damien George |
2017-06-20 05:38:31 | ncoghlan | set | messageid: <1497937111.75.0.984028127297.issue30707@psf.upfronthosting.co.za> |
2017-06-20 05:38:31 | ncoghlan | link | issue30707 messages |
2017-06-20 05:38:31 | ncoghlan | create | |
|