summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorOren Milman <orenmn@gmail.com>2017-09-27 17:04:37 +0300
committerNick Coghlan <ncoghlan@gmail.com>2017-09-28 00:04:37 +1000
commit5837d0418f47933b2e3c139bdee8a79c248a943c (patch)
treea3b7dfdca108fe5b67d63a878f85c2b829f4fe41 /Python/Python-ast.c
parent236329ed9fee01edb85d698d30682e304439d198 (diff)
downloadcpython-git-5837d0418f47933b2e3c139bdee8a79c248a943c.tar.gz
bpo-31588: Validate return value of __prepare__() methods (GH-3764)
Class execution requires that __prepare__() methods return a proper execution namespace. Check for that immediately after calling __prepare__(), rather than passing it through to the code execution machinery and potentially triggering SystemError (in debug builds) or a cryptic TypeError (in release builds). Patch by Oren Milman.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions