8000 bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (… · coderanger/cpython@d1560d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1560d2

Browse files
authored
bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (pythonGH-26090)
1 parent ab383eb commit d1560d2

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)
0