Skip to content

[3.8] bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071)#14072

Merged
miss-islington merged 1 commit intopython:3.8from
miss-islington:backport-05f8318-3.8
Jun 14, 2019
Merged

[3.8] bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071)#14072
miss-islington merged 1 commit intopython:3.8from
miss-islington:backport-05f8318-3.8

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 14, 2019

Fix a regression introduced by af8646c that was causing code of the form:

if True and False:
do_something()

to be optimized incorrectly, eliminating the block.
(cherry picked from commit 05f8318)

Co-authored-by: Pablo Galindo [email protected]

https://bugs.python.org/issue37269

…thonGH-14071)

Fix a regression introduced by af8646c that was causing code of the form:

if True and False:
   do_something()

to be optimized incorrectly, eliminating the block.
(cherry picked from commit 05f8318)

Co-authored-by: Pablo Galindo <[email protected]>
@miss-islington
Copy link
Contributor Author

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

@miss-islington miss-islington merged commit 7cd581a into python:3.8 Jun 14, 2019
@miss-islington miss-islington deleted the backport-05f8318-3.8 branch June 14, 2019 06:13
@miss-islington
Copy link
Contributor Author

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

1 similar comment
@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