Jeroen Ruigrok van der Werven wrote: > -On [20090430 07:18], "Martin v. Löwis" ([email protected]) 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 _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
