From b1e6c88b489f1c491b472af58399f4d87d388bfc Mon Sep 17 00:00:00 2001 From: barneygale Date: Thu, 13 May 2021 02:09:01 +0100 Subject: [PATCH] bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. --- Doc/whatsnew/3.10.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index cdb15a06e9e3c5..f42b830fa78706 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 -------