PEP 277 (unicode filenames): please review

Martin v. Löwis loewis at informatik.hu-berlin.de
Mon Aug 12 14:01:06 CEST 2002


http://www.python.org/peps/pep-0277.html

The PEP describes a Windows-only change to Unicode in file names: On
Windows NT/2k/XP, Python would allow arbitrary Unicode strings as file
names and pass them to the OS, instead of converting them to CP_ACP
first. This applies to open() and all os functions that accept
filenames.

In addition, os.listdir() would return Unicode filenames if the
argument is Unicode.

Please comment on the PEP. There is an updated patch on
http://python.org/sf/594001; please comment on the patch as well.

Regards,
Martin



More information about the Python-list mailing list