Message305354
Agreed it's too subtle to change the behavior.
> We may also want to explicitly point out that using os.fsdecode(name) before passing it to open() will ensure that the name attribute is set to a string rather than a bytes object.
Not sure. Are there cases where os.fsdecode() fails even if the binary syscall would succeed? (The docs claim that on Windows it uses 'strict'.)
If it doesn't, maybe we can add a new attribute that gives the name as Text? It could be '' if name is an int. |
|
Date |
User |
Action |
Args |
2017-11-01 03:14:33 | gvanrossum | set | recipients:
+ gvanrossum, ncoghlan, pitrou, vstinner, aronacher, docs@python, serhiy.storchaka |
2017-11-01 03:14:32 | gvanrossum | set | messageid: <1509506072.95.0.213398074469.issue18534@psf.upfronthosting.co.za> |
2017-11-01 03:14:32 | gvanrossum | link | issue18534 messages |
2017-11-01 03:14:31 | gvanrossum | create | |
|