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 girtsf
Recipients girtsf
Date 2018-08-12.03:41:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1534045271.73.0.56676864532.issue34384@psf.upfronthosting.co.za>
In-reply-to
Content
Documentation for os.readlink says "Changed in version 3.6: Accepts a path-like object.". This works fine on macOS, but blows up on Windows:

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import pathlib
>>> os.readlink(pathlib.Path('foo'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: readlink() argument 1 must be str, not WindowsPath
History
Date User Action Args
2018-08-12 03:41:11girtsfsetrecipients: + girtsf
2018-08-12 03:41:11girtsfsetmessageid: <1534045271.73.0.56676864532.issue34384@psf.upfronthosting.co.za>
2018-08-12 03:41:11girtsflinkissue34384 messages
2018-08-12 03:41:10girtsfcreate