[Python-Dev] File system path encoding on Windows (original) (raw)
Victor Stinner victor.stinner at gmail.com
Tue Aug 30 20:02:25 EDT 2016
- Previous message (by thread): [Python-Dev] File system path encoding on Windows
- Next message (by thread): [Python-Dev] File system path encoding on Windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] File system path encoding on Windows
- Next message (by thread): [Python-Dev] File system path encoding on Windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]