-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Add pathlib.Path.hardlink_to() #84131
Comments
Per bpo-39291, the argument order for This ticket covers adding a new Discussion on python-dev: https://mail.python.org/archives/list/[email protected]/thread/7QPLYW36ZK6QTW4SV4FI6C343KYWCPAT/ |
A question: For my patch, I need to include a Python version where
Can anyone suggest in which version of Python this function should be removed? Thanks. |
Maybe we could have the correct |
Makes sense to me. Should I leave the documentation for |
For me, and as you've pointed out, the current doc of The doc uses the expression "Create a hard link pointing to a path named target." And the doc of Based on that foundation, we could finally continue to implement the correct "Path.hardlink_to". We can refer to how people retained |
I've logged bpo-42999 to cover fixing the existing |
The changes have introduced deprecation warnings in tests. It seems cpython/Lib/test/test_pathlib.py Line 1937 in ad106c6
./python -Wall -m test test_pathlib == Tests result: SUCCESS == 1 test OK. Total duration: 2.9 sec Also it will be nice to point to the line causing deprecation instead of the library soruce code that will help users identify the deprecated usage. Using stacklevel=2 might help here https://docs.python.org/3/library/warnings.html#warnings.warn ./python -Wall -m test test_pathlib == Tests result: SUCCESS == 1 test OK. Total duration: 4.3 sec |
Co-authored-by: Barney Gale <[email protected]>
pathlib.Path.hardlink_to()
method that supersedeslink_to()
#18909pathlib.Path.link_to()
#26155pathlib.Path.link_to()
(GH-26155) #26158pathlib.Path.link_to()
(GH-26155) #26178Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: