Skip to content

Commit

Permalink
bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. (G…
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale authored May 13, 2021
1 parent ab383eb commit d1560d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------
Expand Down

0 comments on commit d1560d2

Please sign in to comment.