Message256909
Considering there's no plan to implement bytes paths for scandir on Windows, then the following line in the os docs needs to be modified: "All functions accepting path or file names accept both bytes and string objects, and result in an object of the same type, if a path or file name is returned." It should be changed to acknowledge that some functions on Windows do not support bytes paths, and that existing support is deprecated and may be removed in a future release.
Also, the docs for listdir should warn that using bytes returns invalid results on Windows when filenames contain characters that aren't mapped in the system locale codepage. |
|
Date |
User |
Action |
Args |
2015-12-23 13:14:47 | eryksun | set | recipients:
+ eryksun, paul.moore, vstinner, tim.golden, ideasman42, SilentGhost, benhoyt, zach.ware, serhiy.storchaka, steve.dower, mont29 |
2015-12-23 13:14:47 | eryksun | set | messageid: <1450876487.73.0.12758327368.issue25911@psf.upfronthosting.co.za> |
2015-12-23 13:14:47 | eryksun | link | issue25911 messages |
2015-12-23 13:14:47 | eryksun | create | |
|