Skip to content

[3.7] bpo-1875: Raise SyntaxError in invalid blocks that will be optimised away (GH-13332)#13382

Merged
miss-islington merged 1 commit intopython:3.7from
miss-islington:backport-af8646c-3.7
May 17, 2019
Merged

[3.7] bpo-1875: Raise SyntaxError in invalid blocks that will be optimised away (GH-13332)#13382
miss-islington merged 1 commit intopython:3.7from
miss-islington:backport-af8646c-3.7

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 17, 2019

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

https://bugs.python.org/issue1875

…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
Copy link
Contributor Author

@pablogsal: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 85ed171 into python:3.7 May 17, 2019
@miss-islington miss-islington deleted the backport-af8646c-3.7 branch May 17, 2019 10:59
@miss-islington
Copy link
Contributor Author

@pablogsal: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants