| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…e same part of a boolean expression
There was a problem hiding this comment.
Very nice.
One suggestion for a comment, otherwise lgtm.
Sorry, something went wrong.
|
@ncoghlan on the issue suggested we could do this in the AST optimizer without changing the eval loop. Is that approach worth considering? It would involve transforming a and b or c into (b or c) if a else c. |
Sorry, something went wrong.
I'm not sure I see what the general solution is, but I'm all for trying it. |
Sorry, something went wrong.
|
I'll merge this though - we can easily replace this with the alternative idea. The "sequence" pseudo-ops change is worth having anyway. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #124285.
📚 Documentation preview 📚: https://cpython-previews--124394.org.readthedocs.build/