This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author smheidrich
Recipients smheidrich
Date 2017-06-09.23:55:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Is there any reason why there is no equivalent of os.readlink in pathlib.Path? Note that Path.resolve does *not* fit the bill, as it always produces an absolute path, whereas readlink just spits out the symlink target exactly the way it is stored, which may be relative to the symlink itself:

>>> import pathlib, os
>>> p = pathlib.Path("/lib64/")
>>> p.resolve()
>>> os.readlink(str(p))
Date User Action Args
2017-06-09 23:55:59smheidrichsetrecipients: + smheidrich
2017-06-09 23:55:59smheidrichsetmessageid: <>
2017-06-09 23:55:59smheidrichlinkissue30618 messages
2017-06-09 23:55:59smheidrichcreate