[issue3187] os.listdir can return byte strings

Guido van Rossum report at bugs.python.org
Sat Sep 27 03:15:46 CEST 2008


Guido van Rossum <guido at python.org> added the comment:

On Fri, Sep 26, 2008 at 5:47 PM, Benjamin Peterson
<report at bugs.python.org> wrote:
> Ok. Here's another possibility. It adds another optional parameter to
> listdir. If False, bytes strings can be returned. Otherwise, the
> UnicodeDecodeError is reraised.

I don't see the advantage over the existing rule bytes in -> bytes out...

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


More information about the Python-bugs-list mailing list