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

2017-06-19 Thread Nick Coghlan
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 wha

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

2017-06-19 Thread Damien George
New submission from Damien George: The behaviour of the "async with" statement in CPython does not match the description of it in PEP492, nor the language documentation. The implementation uses a try/except/finally block, while the PEP and documentation describe the behaviour using a try/exce

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

2017-06-19 Thread Damien George
Changes by Damien George : -- assignee: docs@python components: Documentation nosy: Damien George, docs@python priority: normal severity: normal status: open title: Incorrect description of "async with" in PEP492 and documentation type: behavior versions: Python 3.5, Python 3.6, Python 3