Message323427
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 |
|
Date |
User |
Action |
Args |
2018-08-12 03:41:11 | girtsf | set | recipients:
+ girtsf |
2018-08-12 03:41:11 | girtsf | set | messageid: <1534045271.73.0.56676864532.issue34384@psf.upfronthosting.co.za> |
2018-08-12 03:41:11 | girtsf | link | issue34384 messages |
2018-08-12 03:41:10 | girtsf | create | |
|