[Python-Dev] PEP 383 (again) (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Wed Apr 29 00:46:17 CEST 2009
- Previous message: [Python-Dev] PEP 383 (again)
- Next message: [Python-Dev] PEP 383 (again)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Breuel <tmbdev gmail.com> writes:
And, in fact, Windows Vista happily creates files with malformed UTF-16 encodings, and os.listdir() happily returns them.
The PEP won't change that, so what's the problem exactly?
Under your proposal, passing the output from a correctly implemented file system or other OS function to a correctly written library using unicode strings may crash Python.
That's a very dishonest formulation. It cannot crash Python; it can only crash hypothetical third-party programs or libraries with deficient error checking and unreasonable assumptions about input data.
(and, of course, you haven't even proven those programs or libraries exist)
Antoine.
- Previous message: [Python-Dev] PEP 383 (again)
- Next message: [Python-Dev] PEP 383 (again)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]