original) (raw)
(On Thu, Apr 30, 2009 at 12:32, "Martin v. L�wis" <martin@v.loewis.de> wrote:
Why didn't you point to that discussion from the PEP 383?� And why didn't you point to Kowalczyk's message on encodings in Mono, Java, etc. from the PEP?� You could have saved us all a lot of time.
> OK, so what's wrong with os.listdir() and similar functions returning aSee http://bugs.python.org/issue3187
> unicode string for strings that correctly encode/decode, and with byte
> strings for strings that are not valid unicode?
in particular msg71655
Why didn't you point to that discussion from the PEP 383?� And why didn't you point to Kowalczyk's message on encodings in Mono, Java, etc. from the PEP?� You could have saved us all a lot of time.
Under the set of constraints that Guido imposes, plus the requirement that round-trip works for illegal encodings, there is no other solution than PEP 383.� That doesn't make PEP 383 right--I still think it's a bad decision--but it makes it pointless to discuss it any further.
Tom