aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGéry Ogam <gery.ogam@gmail.com>2020-01-14 12:58:29 +0100
committerNick Coghlan <ncoghlan@gmail.com>2020-01-14 21:58:29 +1000
commit1d1b97ae643dd8b22d87785ed7bd2599c6c8dc8d (patch)
tree1cecc3868d762cd3e1c2414520d954dfe05aea17 /Doc/reference
parentbpo-39156: Break up COMPARE_OP into four logically distinct opcodes. (GH-17754) (diff)
downloadcpython-1d1b97ae643dd8b22d87785ed7bd2599c6c8dc8d.tar.gz
cpython-1d1b97ae643dd8b22d87785ed7bd2599c6c8dc8d.tar.bz2
cpython-1d1b97ae643dd8b22d87785ed7bd2599c6c8dc8d.zip
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
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/compound_stmts.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 564d6cc4213..e2f44a55b18 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -844,8 +844,8 @@ The following code::
is semantically equivalent to::
manager = (EXPRESSION)
- aexit = type(manager).__aexit__
aenter = type(manager).__aenter__
+ aexit = type(manager).__aexit__
value = await aenter(manager)
hit_except = False