Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
bpo-39682: makepathlib.Path immutable by removing (undocumented) support for "closing" a path by using it as a context manager#18846
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
the-knights-who-say-ni commentedMar 8, 2020
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 thePSF 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 followthe 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 cancheck yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
pitrou left a comment
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.
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedMar 8, 2020
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 |
626c970 toc89a62dComparebarneygale commentedMar 8, 2020
I have made the requested changes; please review again. Thank you! |
bedevere-bot commentedMar 8, 2020
Thanks for making the requested changes! @pitrou: please review the changes made to this pull request. |
pitrou left a comment
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.
+1. Have you signed the CLA?
barneygale commentedMar 8, 2020
I have! I think it's just making its way through the system currently. |
pitrou commentedMar 8, 2020
Cool, thank you. I'll wait for the bot to notice, then :-) |
brettcannon left a comment
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.
Quick request to document in the code why this change is being made, else someone else in the future may be wondering why it's a no-op.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2020-03-08-11-00-01.bpo-39682.AxXZNz.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedMar 9, 2020
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 |
19bea17 tob260194Comparebarneygale commentedMar 10, 2020
Thank you Brett. I have made the requested changes; please review again. Hope the comment isn't too long. |
bedevere-bot commentedMar 10, 2020
Thanks for making the requested changes! @brettcannon,@pitrou: please review the changes made to this pull request. |
bedevere-bot commentedMar 10, 2020
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 |
86cf4dc toca3acfdComparebarneygale commentedMar 21, 2020
I have made the requested changes; please review again. |
bedevere-bot commentedMar 21, 2020
Thanks for making the requested changes! @pitrou,@brettcannon: please review the changes made to this pull request. |
Uh oh!
There was an error while loading.Please reload this page.
pitrou left a comment
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.
+1 for this, thank you@barneygale .
I'll leave this open a day or two in case people hold strong opinions about deprecating this silent behaviour.
pitrou commentedMar 28, 2020
@barneygale Can you rebase/merge from master to re-run CI on this? |
…upport for "closing" a path by using it as a context manager.Support for using a path as a context manager remains, and is now a no-op.Co-Authored-By: Brett Cannon <54418+brettcannon@users.noreply.github.com>
ca3acfd to31c116aComparebarneygale commentedMar 29, 2020
Rebased on master. Thanks@pitrou and@brettcannon for helping get this through :) |
Misc/NEWS.d/next/Library/2020-03-08-11-00-01.bpo-39682.AxXZNz.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
aeros left a comment
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.
Thanks@barneygale; LGTM.
brettcannon commentedMar 30, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I have an opinion about deprecation, but it isn't strong. 😄 Basically I'm worried someone out there is relying on this functionality and is going to be caught off-guard that it suddenly stopped working. But as I said, I'm +0 on the deprecation so I won't hold up the PR if people disagree. |
barneygale commentedApr 3, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Just noting that I have a follow-up PR -#19342 - that removes the |
Uh oh!
There was an error while loading.Please reload this page.
This implements@pitrou's suggestion of retaining support for using a
Pathobject as a context manager, but making it a no-op.https://bugs.python.org/issue39682