[issue34384] os.readlink does not accept pathlib.Path on Windows
Steve Dower
report at bugs.python.org
Mon Aug 13 12:32:30 EDT 2018
Steve Dower <steve.dower at python.org> added the comment:
Serhiy is exactly right, but to emphasise, the best way to do paths now is to use argument clinic with its path_t type. On Windows, .narrow is a flag that indicates whether you should PyUnicode_FSEncode() any results before returning them, and .wide is always initialized correctly.
Do not use any *A APIs - only *W from now on :)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34384>
_______________________________________
More information about the Python-bugs-list
mailing list