summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorGéry Ogam <gery.ogam@gmail.com>2019-12-30 05:24:51 +0000
committerNick Coghlan <ncoghlan@gmail.com>2019-12-30 15:24:51 +1000
commit226e6e7d4326cf91ef37e13528eb1f62de1bb832 (patch)
treebb6922c83957c18b7080579a0165e1c261184847 /Python/compile.c
parent32a12aed6da41f49a5ca05e6de34f5f93ea1dc33 (diff)
downloadcpython-git-226e6e7d4326cf91ef37e13528eb1f62de1bb832.tar.gz
bpo-39037: Fix lookup order of magic methods in with statement documentation (GH-17608)
* __enter__ is now looked up before __exit__ to give a more intuitive error message * add pseudo-code equivalent for the with statement * fix pseudo-code for the async with statement to use a finally clause * use SUITE rather than BLOCK for consistency with the language grammar Patch by Géry Ogam.
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions