Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0503917

Browse files
committed
Issue #25930: Document that os.unlink and os.remove are *semantically* identical.
Saying that the functions were identical confused some users who were upset when the functions were no longer simply the same function under different names. Thanks to Anthony Sottile for the bug report and Swati Jaiswal for the initial patch.
1 parent 838629a commit 0503917

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/os.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ features:
17891789
be raised; on Unix, the directory entry is removed but the storage allocated
17901790
to the file is not made available until the original file is no longer in use.
17911791

1792-
This function is identical to :func:`unlink`.
1792+
This function is semantically identical to :func:`unlink`.
17931793

17941794
.. versionadded:: 3.3
17951795
The *dir_fd* argument.
@@ -2452,10 +2452,10 @@ features:
24522452

24532453
.. function:: unlink(path, *, dir_fd=None)
24542454

2455-
Remove (delete) the file *path*. This function is identical to
2456-
:func:`remove`; the ``unlink`` name is its traditional Unix
2457-
name. Please see the documentation for :func:`remove` for
2458-
further information.
2455+
Remove (delete) the file *path*. This function is semantically
2456+
identical to :func:`remove`; the ``unlink`` name is its
2457+
traditional Unix name. Please see the documentation for
2458+
:func:`remove` for further information.
24592459

24602460
.. versionadded:: 3.3
24612461
The *dir_fd* parameter.

0 commit comments

Comments
 (0)