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 berker.peksag
Recipients berker.peksag, eryksun, girtsf, paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware
Date 2018-08-13.05:10:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
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?)
History
Date User Action Args
2018-08-13 05:10:21berker.peksagsetrecipients: + berker.peksag, paul.moore, tim.golden, zach.ware, serhiy.storchaka, eryksun, steve.dower, girtsf
2018-08-13 05:10:20berker.peksagsetmessageid: <[email protected]>
2018-08-13 05:10:20berker.peksaglinkissue34384 messages
2018-08-13 05:10:20berker.peksagcreate