Martin v. Löwis <mar...@v.loewis.de> added the comment: > Only Mac OS X and the HFS+ filesystem normalize filenames (to a variant > of NFD). But such normalization is a good thing! I mean that I don't > think that we have anything to do for that.
That may well be - I don't have a case where this would cause problems, either. > We should at least document this surprising behaviour in the import > documentation. There are also are better ways to support the user than mere documentation. For example,, the exception message could be more helpful, and IDLE could warn the user when saving the file in the first place. > << WARNING: Non-ASCII characters in module names are normalized to NFKC > by the Python parser ([PEP 3131]). For example, import µTorrent (µ: U > +00B5) is normalized to import μTorrent (μ: U+03BC): Python will try to > open "\u03BCTorrent.py" (or "\u03BCTorrent/__init__.py"), and not > "\xB5Torrent.py" (or "\xB5Torrent/__init__.py"). >> I can't believe this is a real problem. I'd defer warning about made-up problems until real users report them as a real problem. > I disagree. If you disagree strongly, please write a PEP. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10952> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com