bpo-1875: Raise SyntaxError in invalid blocks that will be optimized away by pablogsal · Pull Request #13332 · python/cpython

@pablogsal pablogsal changed the title bpo-1875: Raise SyntaxError in blocks that will be optimized away bpo-1875: Raise SyntaxError in invalid blocks that will be optimized away

May 15, 2019

@pablogsal

…away

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.

vstinner

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

May 17, 2019
…away (pythonGH-13332)

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 af8646c)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>

miss-islington added a commit that referenced this pull request

May 17, 2019
…away (GH-13332)

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 af8646c)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>