Skip to content

Commit 4799082

Browse files
authored
Merge branch 'main' into gh-162822-bytearray-list-race
2 parents 3c04d9d + 9d6fa5d commit 4799082

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎Doc/library/os.rst‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,9 +2851,10 @@ features:
28512851
This function can support :ref:`paths relative to directory descriptors
28522852
<dir_fd>`.
28532853

2854-
On Windows, attempting to remove a file that is in use causes an exception to
2855-
be raised; on Unix, the directory entry is removed but the storage allocated
2856-
to the file is not made available until the original file is no longer in use.
2854+
On Windows, attempting to remove a file that is in use may raise
2855+
:exc:`PermissionError`; on Unix, the directory entry is removed but the
2856+
storage allocated to the file is not made available until the original file
2857+
is no longer in use.
28572858

28582859
This function is semantically identical to :func:`unlink`.
28592860

0 commit comments

Comments
 (0)