Message256909
| Author |
eryksun |
| Recipients |
SilentGhost, benhoyt, eryksun, ideasman42, mont29, paul.moore, serhiy.storchaka, steve.dower, tim.golden, vstinner, zach.ware |
| Date |
2015年12月23日.13:14:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1450876487.73.0.12758327368.issue25911@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|