-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-30618: add readlink to pathlib.Path #8285
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 your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. When your account is ready, please add a comment in this pull request Thanks again for your contribution, we look forward to reviewing it! |
I submitted the CLA form, so it will probably take a few days to clear. Also, I wasn't entirely sure if a) this needs any special handling for non-POSIX platforms, and b) if I'm supposed to be modifying the documentation in this pull request too, so any advice would be welcome! |
Take a look at
Documentation should definitely be added since this is a public facing API. Edit: it looks like windows actually does support os.readlink in Py3 so it should be made available there. |
Updated the pull request to include documentation. Also, switched to wrapping the (Also, I submitted the CLA couple weeks ago, not sure if somebody needs to kick the CLA bot or if it will automagically happen?) |
Hmm. So looks like this is failing on windows with:
Is this a bug? The documentation for |
(Something was wacky with my bpo user, perhaps because I registered with google's oauth. I changed my username, it then cleared out my github username. I reset that back, and now https://bugs.python.org/user?@template=clacheck&github_names=girtsf shows |
FYI: filed https://bugs.python.org/issue34384 for the readlink on Windows issue. |
0e29a0d
to
bcd71c9
Compare
Hooray, looks like due to @berkerpeksag 's fixes in #8740, the tests now pass on Windows too! I think this is ready for another looksie. |
@girtsf thanks for the ping! I just added this to my TODO list. |
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.
Please add a note to Doc/whatsnew/3.8.rst
and use the following format:
Your note.
(Contributed by Girts Folkmanis in :issue:`30618`.)
Misc/NEWS.d/next/Library/2018-07-14-13-48-56.bpo-30618.T5AUF6.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 |
@girtsf, please address the code review from @berkerpeksag. Thanks! |
Better later than never? 😬 I'm assuming 3.8 train has sailed, so I added the news to 3.9. I have made the requested changes; please review again. |
Thanks for making the requested changes! @berkerpeksag: please review the changes made to this pull request. |
This adds a "readlink" method to pathlib.Path objects that calls through to os.readlink, and wraps the result in a "Path" object.
09734ac
to
74e7a49
Compare
@gpshead, um, hi! Abusing old connections to see if I can get this reviewed. :) |
the azure pipelines should've completed within half an hour after yesterday's push but appear to have not even run it? odd. i'm closing and reopening to kick the CI systems to rerun. |
@girtsf: Status check is done, and it's a success ✅ . |
This adds a "readlink" method to pathlib.Path objects that calls through to os.readlink. https://bugs.python.org/issue30618 Automerge-Triggered-By: @gpshead
This adds a "readlink" method to pathlib.Path objects that calls through to os.readlink. https://bugs.python.org/issue30618 Automerge-Triggered-By: @gpshead
This adds a "readlink" method to pathlib.Path objects that calls through
to os.readlink.
https://bugs.python.org/issue30618
Automerge-Triggered-By: @gpshead