summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2021-05-13 12:14:45 (GMT)
committerGitHub <noreply@github.com>2021-05-13 12:14:45 (GMT)
commitd1560d2429dff8e7d397801786e966dd33bb1bd7 (patch)
tree9acb5db9709d180722e40e918861c61124f9780f /Doc/whatsnew
parentab383eb6f03896b0ef6634ee3d776344fcb9e5b8 (diff)
downloadcpython-d1560d2429dff8e7d397801786e966dd33bb1bd7.zip
cpython-d1560d2429dff8e7d397801786e966dd33bb1bd7.tar.gz
cpython-d1560d2429dff8e7d397801786e966dd33bb1bd7.tar.bz2
bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (GH-26090)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.10.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index cdb15a0..f42b830 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -1089,6 +1089,14 @@ Add :data:`~os.O_EVTONLY`, :data:`~os.O_FSYNC`, :data:`~os.O_SYMLINK`
and :data:`~os.O_NOFOLLOW_ANY` for macOS.
(Contributed by Dong-hee Na in :issue:`43106`.)
+os.path
+-------
+
+:func:`os.path.realpath` now accepts a *strict* keyword-only argument. When set
+to ``True``, :exc:`OSError` is raised if a path doesn't exist or a symlink loop
+is encountered.
+(Contributed by Barney Gale in :issue:`43757`.)
+
pathlib
-------