]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39048: Look up __aenter__ before __aexit__ in async with (GH-17609)
authorGéry Ogam <gery.ogam@gmail.com>
Tue, 14 Jan 2020 11:58:29 +0000 (12:58 +0100)
committerNick Coghlan <ncoghlan@gmail.com>
Tue, 14 Jan 2020 11:58:29 +0000 (21:58 +1000)
commit1d1b97ae643dd8b22d87785ed7bd2599c6c8dc8d
tree1cecc3868d762cd3e1c2414520d954dfe05aea17
parent9af0e47b1705457bb6b327c197f2ec5737a1d8f6
bpo-39048: Look up __aenter__ before __aexit__ in async with (GH-17609)

* Reorder the __aenter__ and __aexit__ checks for async with
* Add assertions for async with body being skipped
* Swap __aexit__ and __aenter__ loading in the documentation
Doc/reference/compound_stmts.rst
Lib/test/test_coroutines.py
Misc/ACKS
Misc/NEWS.d/next/Core and Builtins/2020-01-13-14-45-22.bpo-39048.iPsj81.rst [new file with mode: 0644]
Python/ceval.c