diff options
author | Girts <girtsf@users.noreply.github.com> | 2019-10-23 21:18:40 (GMT) |
---|---|---|
committer | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-23 21:18:40 (GMT) |
commit | a01ba333affcc0677146dc8af57179bdb808d608 (patch) | |
tree | 5b3c67ab51bc2c5074b19828c24de7a3d2eac119 /Doc/whatsnew | |
parent | 01659ca62c4508518478a74615ac91c0009427ad (diff) | |
download | cpython-a01ba333affcc0677146dc8af57179bdb808d608.zip cpython-a01ba333affcc0677146dc8af57179bdb808d608.tar.gz cpython-a01ba333affcc0677146dc8af57179bdb808d608.tar.bz2 |
bpo-30618: add readlink to pathlib.Path (GH-8285)
This adds a "readlink" method to pathlib.Path objects that calls through
to os.readlink.
https://bugs.python.org/issue30618
Automerge-Triggered-By: @gpshead
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.9.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index f203930..b95b099 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -150,6 +150,13 @@ customization consistently by always using the value specified by case), and one used ``__VENV_NAME__`` instead. (Contributed by Brett Cannon in :issue:`37663`.) +pathlib +------- + +Added :meth:`~pathlib.Path.readlink()` which acts similar to +:func:`~os.readlink`. +(Contributed by Girts Folkmanis in :issue:`30618`) + pprint ------ |