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

Serhiy Storchaka report at bugs.python.org
Wed Sep 7 04:21:10 EDT 2016


New submission from Serhiy Storchaka:

Bytes paths are deprecated on Windows and their support was not added in os.scandir() for purpose. But this makes harder converting filesystem walking functions to use os.scandir(). We have to add a special case for bytes paths on Windows in every such function (os.walk(), glob.iglob()). This is cumbersome inefficient and errorprone code that slows down common case due to additional checks for special case. It would be better to add a support of bytes paths directly in os.scandir().

----------
components: Extension Modules, Windows
messages: 274778
nosy: benhoyt, haypo, paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Add support of butes paths in os.scandir()
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27998>
_______________________________________


More information about the Python-bugs-list mailing list