-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
8000 [3.9] bpo-34480: fix bug where match variable is used prior to being defined (GH-17643) #32256
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
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
CLA is now signed. Can take up to 1 business day. |
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 added a couple of comments that point to the original issue and removed some exrta whitespace.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
@ezio-melotti thank you! I have to leave a comment per bot suggestion, to unblock this PR. Do you want me to add some notes to the NEWS.d/ folder? If so, can you please point me to the right file? I assume this bugfix will land in 3.9.13. |
I have made the requested changes; please review again |
Thanks for making the requested changes! @ezio-melotti: please review the changes made to this pull request. |
Yes, a NEWS entry should be added. See https://devguide.python.org/committing/#updating-news-and-what-s-new-in-python |
Alright @ezio-melotti, I've just added a new entry in the NEWS.d folder. Please review and let me know if it looks good to you or if there's anything else that I need to do to get this bugfix merged in. |
I have made the requested changes; please review again |
Thanks for making the requested changes! @ezio-melotti: please review the changes made to this pull request. |
Misc/NEWS.d/next/Library/2022-04-09-11-28-49.bpo-34480.Pw-GJ6.rst
Outdated
Show resolved
Hide resolved
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
We're releasing the last bugfix release of 3.9 today and this PR's been stale for a while on the NEWS entry alone. I'll commandeer the changes to the NEWS entry to land this. |
Thanks @mareksuscak for the PR and @ambv for fixing the news entry and merging it -- I missed that this PR was waiting for my review! |
…defined (pythonGH-17643) (pythonGH-32256) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This is technically not a backport of the referenced PR because the original PR was superseded by another one and as such was not accepted. I was asked to base this change on the original one because the one that superseded it and was implemented in Python 3.10 was larger in scope and technically considered a breaking change.
This PR fixes bpo-34480. I'm adding two unit tests, one of which is based on a test case included in one of the comments and I want to give full credit for writing it to the original author Karthikeyan Singaravelan (xtreak).
https://bugs.python.org/issue34480