diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-04-01 23:17:57 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-04-01 23:17:57 (GMT) |
commit | 4717e2112b80eae8466bf06e2523042537d54000 (patch) | |
tree | 019e9501ac93f421dfc01e4811399350cffdd4bb /Doc | |
parent | b25e3f9e6a1a8ea292335a23eb7dea9d8174efa1 (diff) | |
parent | ee5f1c13d1ea21c628068fdf142823177f5526c2 (diff) | |
download | cpython-4717e2112b80eae8466bf06e2523042537d54000.zip cpython-4717e2112b80eae8466bf06e2523042537d54000.tar.gz cpython-4717e2112b80eae8466bf06e2523042537d54000.tar.bz2 |
merge 3.2 (#21082)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/os.rst | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 72693f1..d7b9829 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1563,11 +1563,8 @@ features: The default *mode* is ``0o777`` (octal). On some systems, *mode* is ignored. Where it is used, the current umask value is first masked out. - If *exist_ok* is ``False`` (the default), an :exc:`OSError` is raised if - the target directory already exists. If *exist_ok* is ``True`` an - :exc:`OSError` is still raised if the umask-masked *mode* is different from - the existing mode, on systems where the mode is used. :exc:`OSError` will - also be raised if the directory creation fails. + If *exist_ok* is ``False`` (the default), an :exc:`OSError` is raised if the + target directory already exists. .. note:: @@ -1579,6 +1576,13 @@ features: .. versionadded:: 3.2 The *exist_ok* parameter. + .. versionchanged:: 3.3.6 + + Before Python 3.3.6, if *exist_ok* was ``True`` and the directory existed, + :func:`makedirs` would still raise an error if *mode* did not match the + mode of the existing directory. Since this behavior was impossible to + implement safely, it was removed in Python 3.3.6. See :issue:`21082`. + .. function:: mkfifo(path, mode=0o666, *, dir_fd=None) |