Staging
v0.5.1
https://github.com/python/cpython
Revision 85ed1712e428f93408f56fc684816f9a85b0ebc0 authored by Miss Islington (bot) on 17 May 2019, 10:59:48 UTC, committed by GitHub on 17 May 2019, 10:59:48 UTC

Move the check for dead conditionals (if 0) to the peephole optimizer
and make sure that the code block is still compiled to report any
existing syntax errors within.
(cherry picked from commit af8646c8054d0f4180a2013383039b6a472f9698)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent 9470404
History
Tip revision: 85ed1712e428f93408f56fc684816f9a85b0ebc0 authored by Miss Islington (bot) on 17 May 2019, 10:59:48 UTC
bpo-1875: Raise SyntaxError in invalid blocks that will be optimised away (GH-13332)
Tip revision: 85ed171
File Mode Size
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
m4
.gitattributes -rw-r--r-- 1.6 KB
.gitignore -rw-r--r-- 1.5 KB
.travis.yml -rw-r--r-- 6.1 KB
CODE_OF_CONDUCT.rst -rw-r--r-- 631 bytes
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 62.2 KB
README.rst -rw-r--r-- 9.9 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 491.6 KB
configure.ac -rw-r--r-- 163.7 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 42.2 KB
setup.py -rw-r--r-- 99.7 KB

README.rst

back to top