Skip to content

Commit e506cae

Browse files
committed
Add info to "What's New" document
1 parent e323969 commit e506cae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,11 @@ Added negative indexing support to :attr:`PurePath.parents
812812
<pathlib.PurePath.parents>`.
813813
(Contributed by Yaroslav Pankovych in :issue:`21041`)
814814
815+
Added :meth:`Path.hardlink_to <pathlib.Path.hardlink_to>` method that
816+
supersedes :meth:`~pathlib.Path.link_to`. The new method has the same argument
817+
order as :meth:`~pathlib.Path.symlink_to`.
818+
(Contributed by Barney Gale in :issue:`39950`.)
819+
815820
platform
816821
--------
817822
@@ -1150,6 +1155,10 @@ Deprecated
11501155
11511156
(Contributed by Jelle Zijlstra in :issue:`21574`.)
11521157
1158+
* :meth:`pathlib.Path.link_to` is deprecated and slated for removal in
1159+
Python 3.12. Use :meth:`pathlib.Path.hardlink_to` instead.
1160+
(Contributed by Barney Gale in :issue:`39950`.)
1161+
11531162
11541163
Removed
11551164
=======

0 commit comments

Comments
 (0)