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
…H-26090) (#26099)

(cherry picked from commit d1560d2)

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

Co-authored-by: Barney Gale <barney.gale@gmail.com>
  • Loading branch information
miss-islington and barneygale authored May 14, 2021
1 parent 3222b25 commit ea14a07
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 ea14a07

Please sign in to comment.