[Python-checkins] documentation: clarification about the function remove in os library (GH-19024)
orsenthil
webhook-mailer at python.org
Mon Apr 26 00:21:54 EDT 2021
https://github.com/python/cpython/commit/b6daab2f676de1773d8f35fb362fe4c57449301d
commit: b6daab2f676de1773d8f35fb362fe4c57449301d
branch: master
author: Etienne Gautier <etienne.gautier at outlook.com>
committer: orsenthil <skumaran at gatech.edu>
date: 2021-04-25T21:21:50-07:00
summary:
documentation: clarification about the function remove in os library (GH-19024)
files:
M Doc/library/os.rst
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 574aa2e6471ae..b4c2ca9d4f660 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2247,6 +2247,7 @@ features:
Remove (delete) the file *path*. If *path* is a directory, an
:exc:`IsADirectoryError` is raised. Use :func:`rmdir` to remove directories.
+ If the file does not exist, a :exc:`FileNotFoundError` is raised.
This function can support :ref:`paths relative to directory descriptors
<dir_fd>`.
More information about the Python-checkins
mailing list