Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
miss-islington merged 1 commit into
python:3.7python/cpython:3.7from
miss-islington:backport-af8646c-3.7miss-islington/cpython:backport-af8646c-3.7Copy head branch name to clipboard
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 into
python:3.7python/cpython:3.7from
miss-islington:backport-af8646c-3.7miss-islington/cpython:backport-af8646c-3.7Copy head branch name to clipboard

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.