-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-110543: Fix CodeType.replace in presence of comprehensions #110586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
is it planned at 3.12.1? the only problem for pyinstaller + scipy user |
I would like it to be but someone has to review it. |
Thanks @JelleZijlstra! I am back from vacation and looking at this issue/PR. |
Thanks! This solution works but I'm not really happy with it; if you have a better idea, that'd be great. |
I think the solution that would be most in-line with the current design of code objects would be to add a I think this is better because it places full control into the hands of callers of The main unpleasant consequence here would be the need to add a new But adding to the signature of So maybe we should take my suggested approach only for 3.13, and use your PR for 3.12? What do you think? |
That does seem like a better long-term solution, but I'm also hesitant to make that sort of change in the 3.12 branch at this point. So I agree with your suggestion to apply this PR's solution to 3.12 and add new arguments to the constructor for 3.13. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the most straightforward way to implement the plan discussed above is to go ahead and land this PR in main, backport it to 3.12, and then I will prepare a separate PR for main to switch to a new constructor/replace argument.
Thank you for putting together this fix!
Thanks @JelleZijlstra for the PR, and @carljm for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…ythonGH-110586) (cherry picked from commit 0b718e6) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
GH-111866 is a backport of this pull request to the 3.12 branch. |
Uh oh!
There was an error while loading. Please reload this page.