]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (GH-26090)
authorBarney Gale <barney.gale@gmail.com>
Thu, 13 May 2021 12:14:45 +0000 (13:14 +0100)
committerGitHub <noreply@github.com>
Thu, 13 May 2021 12:14:45 +0000 (13:14 +0100)
Doc/whatsnew/3.10.rst

index cdb15a06e9e3c54e64f4e6a7387c989d18a8bf6d..f42b830fa78706f083653d330639a43c04b06532 100644 (file)
@@ -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
 -------