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

willingc webhook-mailer at python.org
Fri May 14 01:24:21 EDT 2021


https://github.com/python/cpython/commit/ea14a0749a4f19b29236fc0acc4b556d9243bc6f
commit: ea14a0749a4f19b29236fc0acc4b556d9243bc6f
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: willingc <carolcode at willingconsulting.com>
date: 2021-05-13T22:24:13-07:00
summary:

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

(cherry picked from commit d1560d2429dff8e7d397801786e966dd33bb1bd7)

Co-authored-by: Barney Gale <barney.gale at gmail.com>

Co-authored-by: Barney Gale <barney.gale at gmail.com>

files:
M Doc/whatsnew/3.10.rst

diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 8fd64f86b3a2f..9394ee7d6223b 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