[Python-Dev] File system path encoding on Windows

Victor Stinner victor.stinner at gmail.com
Tue Aug 30 20:02:25 EDT 2016


I made another quick&dirty test on Django 1.10 (I ran Django test
suite on my modified Python raising exception on bytes path): I didn't
notice any exception related to bytes path.

Django seems to only use Unicode for paths.

I can try to run more tests if you know some other major Python
applications (modules?) working on Windows/Python 3.

Note: About Twisted, I forgot to mention that I'm not really surprised
that Twisted uses bytes. Twisted was created something like 10 years
ago, when bytes was the defacto choice. Using Unicode in Python 2 was
painful when you imagine a module as large as Twisted. Twisted has to
support Python 2 and Python 3, so it's not surprising that it still
uses bytes in some places, instead of Unicode. Moreover, as many
Python applications/modules, Linux is a first citizen, whereas Windows
is more supported as "best effort".

Victor


More information about the Python-Dev mailing list