[Python-checkins] [3.9] bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) (GH-31878)

miss-islington webhook-mailer at python.org
Mon Mar 14 16:52:17 EDT 2022


https://github.com/python/cpython/commit/b4fd91b4d931dd97ceaf76750d227dd042c236f8
commit: b4fd91b4d931dd97ceaf76750d227dd042c236f8
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022年03月14日T13:52:07-07:00
summary:
[3.9] bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) (GH-31878)
(cherry picked from commit 879fbd9472753149b627f32add3ddca90ac47ab7)
Co-authored-by: slateny <46876382+slateny at users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
files:
M Doc/library/os.rst
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index d70f403e8cf1f..2f7b37019e4a4 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1909,7 +1909,8 @@ features:
 
 Create a directory named *path* with numeric mode *mode*.
 
- If the directory already exists, :exc:`FileExistsError` is raised.
+ If the directory already exists, :exc:`FileExistsError` is raised. If a parent
+ directory in the path does not exist, :exc:`FileNotFoundError` is raised.
 
 .. _mkdir_modebits:
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /