Staging
v0.5.1
https://github.com/python/cpython
Revision 5837d0418f47933b2e3c139bdee8a79c248a943c authored by Oren Milman on 27 September 2017, 14:04:37 UTC, committed by Nick Coghlan on 27 September 2017, 14:04:37 UTC
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.
1 parent 236329e
History
Tip revision: 5837d0418f47933b2e3c139bdee8a79c248a943c authored by Oren Milman on 27 September 2017, 14:04:37 UTC
bpo-31588: Validate return value of __prepare__() methods (GH-3764)
Tip revision: 5837d04
File Mode Size
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
.gitattributes -rw-r--r-- 733 bytes
.gitignore -rw-r--r-- 1.4 KB
.hgeol -rw-r--r-- 1.0 KB
.hgignore -rw-r--r-- 1.3 KB
.hgtags -rw-r--r-- 8.7 KB
.travis.yml -rw-r--r-- 4.3 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 59.2 KB
README.rst -rw-r--r-- 9.1 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.2 KB
config.sub -rwxr-xr-x 35.7 KB
configure -rwxr-xr-x 469.3 KB
configure.ac -rw-r--r-- 154.9 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 40.2 KB
setup.py -rw-r--r-- 97.6 KB

README.rst

back to top