bpo-1875: Raise SyntaxError in invalid blocks that will be optimized away by pablogsal · Pull Request #13332 · python/cpython
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
…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.
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, 2019This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters