diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-30 05:31:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 05:31:18 (GMT) |
commit | cbfafa3e3625dae96ce392c88c793f8af55167bf (patch) | |
tree | 90ef2b7456bfe0675921c22c8938532a01736245 /Python/hamt.c | |
parent | e06be0820f3304b1ea940cd643214d332ed02ea8 (diff) | |
download | cpython-cbfafa3e3625dae96ce392c88c793f8af55167bf.zip cpython-cbfafa3e3625dae96ce392c88c793f8af55167bf.tar.gz cpython-cbfafa3e3625dae96ce392c88c793f8af55167bf.tar.bz2 |
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.
(cherry picked from commit 226e6e7d4326cf91ef37e13528eb1f62de1bb832)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Diffstat (limited to 'Python/hamt.c')
0 files changed, 0 insertions, 0 deletions