[Python-Dev] a suggestion ... Re: PEP 383 (again) (original) (raw)

Thomas Breuel tmbdev at gmail.com
Thu Apr 30 11:44:40 CEST 2009


> Since both have had to deal with this, have you looked at what they > actually do before proposing PEP 383? What did you find? See http://mail.python.org/pipermail/python-3000/2007-September/010450.html

Thanks, that's very useful.

> Why did you choose an incompatible approach for PEP 383?

Because in Python, we want to be able to access all files on disk. Neither Java nor Mono are capable of doing that.

OK, so what's wrong with os.listdir() and similar functions returning a unicode string for strings that correctly encode/decode, and with byte strings for strings that are not valid unicode?

The file I/O functions already seem to deal with byte strings correctly, you never get byte strings on platforms that are fully unicode, and they are well supported.

Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20090430/d3296ed7/attachment-0001.htm>



More information about the Python-Dev mailing list