[issue27998] Add support of bytes paths in os.scandir()

2016-09-07 Thread Steve Dower
Steve Dower added the comment: Guido just said that we should make sure that os.scandir() continues to not support bytes, even after the patch for issue27781 goes in, so I'm reopening this. -- dependencies: +Change sys.getfilesystemencoding() on Windows to UTF-8 nosy: +gvanrossum resol

[issue27998] Add support of bytes paths in os.scandir()

2016-09-07 Thread Steve Dower
Steve Dower added the comment: Heh, totally by accident as well. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue27998] Add support of bytes paths in os.scandir()

2016-09-07 Thread Eryk Sun
Eryk Sun added the comment: This is implemented in Steve's latest patch in issue 27781. For example: >>> sys.platform 'win32' >>> os.mkdir('test') >>> f = open('test/\U0001.txt', 'w') >>> next(os.scandir(b'test')).name b'\xf0\x90\x80\x80.txt' >>> next(os.scandir(b

[issue27998] Add support of bytes paths in os.scandir()

2016-09-07 Thread Paul Moore
Paul Moore added the comment: In the light of Steve Dower's work to "un-deprecate" bytes paths, I agree this should be added. -- ___ Python tracker ___ _

[issue27998] Add support of bytes paths in os.scandir()

2016-09-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Add support of butes paths in os.scandir() -> Add support of bytes paths in os.scandir() ___ Python tracker ___ _