Skip to content

Commit ea14a07

Browse files
bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (GH-26090) (#26099)
(cherry picked from commit d1560d2) Co-authored-by: Barney Gale <[email protected]> Co-authored-by: Barney Gale <[email protected]>
1 parent 3222b25 commit ea14a07

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,14 @@ Add :data:`~os.O_EVTONLY`, :data:`~os.O_FSYNC`, :data:`~os.O_SYMLINK`
10891089
and :data:`~os.O_NOFOLLOW_ANY` for macOS.
10901090
(Contributed by Dong-hee Na in :issue:`43106`.)
10911091
1092+
os.path
1093+
-------
1094+
1095+
:func:`os.path.realpath` now accepts a *strict* keyword-only argument. When set
1096+
to ``True``, :exc:`OSError` is raised if a path doesn't exist or a symlink loop
1097+
is encountered.
1098+
(Contributed by Barney Gale in :issue:`43757`.)
1099+
10921100
pathlib
10931101
-------
10941102

0 commit comments

Comments
 (0)