[Python-checkins] documentation: clarification about the function remove in os library (GH-19024) (GH-25618)

orsenthil webhook-mailer at python.org
Mon Apr 26 00:24:07 EDT 2021


https://github.com/python/cpython/commit/c5ce186e975c17470dfe234a2222c1f12ecc81e4
commit: c5ce186e975c17470dfe234a2222c1f12ecc81e4
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: orsenthil <skumaran at gatech.edu>
date: 2021-04-25T21:24:03-07:00
summary:

documentation: clarification about the function remove in os library (GH-19024) (GH-25618)

(cherry picked from commit b6daab2f676de1773d8f35fb362fe4c57449301d)

Co-authored-by: Etienne Gautier <etienne.gautier at outlook.com>

files:
M Doc/library/os.rst

diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index c80a3210d7d39..719ea5b588f49 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2106,6 +2106,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