[Python-ideas] Introduce some obvious way to encode and decode filenames from Python code
Victor Stinner
victor.stinner at gmail.com
Mon Jul 16 19:23:59 CEST 2012
>> Well, how about os.fsencode() and os.fsdecode()?
>>
>> http://docs.python.org/dev/library/os.html#os.fsencode
>
> Oh, great, there they are! I think these functions should be
> mentioned in these sections to make them easier to find:
>
> [1]: http://docs.python.org/dev/library/os.html#file-names-command-line-arguments-and-environment-variables
> [2]: http://docs.python.org/dev/library/sys.html#sys.getfilesystemencoding
> [3]: http://docs.python.org/dev/howto/unicode.html#unicode-filenames
>
> I'll post an issue on the issue tracker.
Hi,
I wrote these functions when I worked in this topic for Python 3. Yes,
it would be great if you write a patch to mention these functions in
the doc.
Someone also complained that the surrogateescape error handler is not
mentionned in any FS related function.
Victor
More information about the Python-ideas
mailing list