Skip to content
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

bpo-26978: Implement pathlib.Path.link_to (Using os.link) #12990

Merged
merged 7 commits into from May 4, 2019

Conversation

Projects
None yet
7 participants
@nanjekyejoannah
Copy link
Contributor

commented Apr 28, 2019

I have implemented pathlib.Path.link_to.

https://bugs.python.org/issue26978

@auvipy

auvipy approved these changes Apr 28, 2019

@nanjekyejoannah

This comment has been minimized.

Copy link
Contributor Author

commented Apr 28, 2019

cc @pitrou

@pitrou
Copy link
Member

left a comment

Thanks for submitting this PR. You'll find some comments below.

Show resolved Hide resolved Doc/library/pathlib.rst Outdated
Show resolved Hide resolved Doc/library/pathlib.rst
Show resolved Hide resolved Lib/pathlib.py Outdated
Show resolved Hide resolved Lib/test/test_pathlib.py
@bedevere-bot

This comment has been minimized.

Copy link

commented Apr 29, 2019

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 I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

And if you don't make the requested changes, you will be poked with soft cushions!

@nanjekyejoannah

This comment has been minimized.

Copy link
Contributor Author

commented May 4, 2019

I have made the requested changes; please review again.

@bedevere-bot

This comment has been minimized.

Copy link

commented May 4, 2019

Thanks for making the requested changes!

@pitrou: please review the changes made to this pull request.

Show resolved Hide resolved Doc/whatsnew/3.8.rst Outdated

nanjekyejoannah added some commits May 4, 2019

@pitrou pitrou changed the title bpo-26978: Implement pathlib.Path.link (Using os.link) bpo-26978: Implement pathlib.Path.link_to (Using os.link) May 4, 2019

@pitrou

pitrou approved these changes May 4, 2019

@pitrou

This comment has been minimized.

Copy link
Member

commented May 4, 2019

Thank you @nanjekyejoannah. I will wait for CI to pass and then merge if green.

@@ -334,6 +334,10 @@ pathlib
contain characters unrepresentable at the OS level.
(Contributed by Serhiy Storchaka in :issue:`33721`.)

Added :meth:`pathlib.Path.link_to()` which creates a hard link pointing
to a path.
(Contributed by Joannah Nanjekye in :issue:`26978`)

This comment has been minimized.

Copy link
@ZackerySpytz

ZackerySpytz May 4, 2019

Contributor
Suggested change
(Contributed by Joannah Nanjekye in :issue:`26978`)
(Contributed by Joannah Nanjekye in :issue:`26978`.)

@pitrou pitrou merged commit 6b5b013 into python:master May 4, 2019

5 checks passed

Azure Pipelines PR #20190504.13 succeeded
Details
bedevere/issue-number Issue number 26978 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@nanjekyejoannah nanjekyejoannah deleted the nanjekyejoannah:issue26978 branch May 4, 2019

@@ -0,0 +1,2 @@
`pathlib.path.link_to()` is now implemented. It creates a hard link pointing

This comment has been minimized.

Copy link
@ZackerySpytz

ZackerySpytz May 4, 2019

Contributor

It should be pathlib.Path.link_to(), not pathlib.path.link_to().

Also, double backqoutes should be used here instead of single backquotes (as per https://devguide.python.org/documenting/#inline-markup). The following could also be used:

:meth:`pathlib.Path.link_to()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.