Berker Peksag <[email protected]> added the comment:
Steve and/or Eryk, I was adding some tests for os.readlink() in PR 8740 and I
noticed that os.readlink() always returns str on Windows. However, the
documentation for os.readlink() says:
If the path is a bytes object (direct or indirectly), the result will
be a bytes object.
The question is, should I add support for bytes as part of PR 8740? And what is
the best way to implement it? (e.g. use CreateFileA() if
PyUnicode_Check(path.object) returns false?)
----------
nosy: +eryksun
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34384>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com