[Python-3000] New proposition for Python3 bytes filename issue
Steven Bethard
steven.bethard at gmail.com
Mon Sep 29 17:16:47 CEST 2008
On Mon, Sep 29, 2008 at 6:07 AM, Victor Stinner
<victor.stinner at haypocalc.com> wrote:
> The default behaviour should be to use unicode and raise an error if
> conversion to unicode fails. It should also be possible to use bytes using
> bytes arguments and optional arguments (for getcwd).
>
> - listdir(unicode) -> unicode and raise an error on invalid filename
> - listdir(bytes) -> bytes
> - getcwd() -> unicode
> - getcwd(bytes=True) -> bytes
Please let's not introduce boolean flags like this. How about
``getcwdb`` in parallel with the old ``getcwdu``?
Steve
--
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
--- Bucky Katt, Get Fuzzy
More information about the Python-3000
mailing list