[Python-checkins] bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (GH-26090)

zooba webhook-mailer at python.org
Thu May 13 08:15:09 EDT 2021


https://github.com/python/cpython/commit/d1560d2429dff8e7d397801786e966dd33bb1bd7
commit: d1560d2429dff8e7d397801786e966dd33bb1bd7
branch: main
author: Barney Gale <barney.gale at gmail.com>
committer: zooba <steve.dower at microsoft.com>
date: 2021-05-13T13:14:45+01:00
summary:

bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (GH-26090)

files:
M Doc/whatsnew/3.10.rst

diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index cdb15a06e9e3c..f42b830fa7870 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
 -------
 



More information about the Python-checkins mailing list