[Python-Dev] a suggestion ... Re: PEP 383 (again) (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Thu Apr 30 08:41:28 CEST 2009
- Previous message: [Python-Dev] a suggestion ... Re: PEP 383 (again)
- Next message: [Python-Dev] a suggestion ... Re: PEP 383 (again)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jeroen Ruigrok van der Werven wrote:
-On [20090430 07:18], "Martin v. Löwis" (martin at v.loewis.de) wrote:
Suppose I create a new directory, and run the following script in 3.x:
py> open("x","w").close() py> open(b"\xff","w").close() py> os.listdir(".") ['x'] That is actually a regression in 3.x:
Correct - and precisely the issue that this PEP wants to address.
For comparison, do os.listdir(u"."), though:
py> os.listdir(u".") [u'x', '\xff']
Regards, Martin
- Previous message: [Python-Dev] a suggestion ... Re: PEP 383 (again)
- Next message: [Python-Dev] a suggestion ... Re: PEP 383 (again)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]