[Python-Dev] Patch for an initial support of bytes filename in Python3 (original) (raw)

Victor Stinner victor.stinner at haypocalc.com
Tue Sep 30 02:47:20 CEST 2008


Hi,

See attached patch: python3_bytes_filename.patch

Using the patch, you will get:

Mixing bytes and str is invalid. Examples raising a TypeError:

$ diffstat ~/python3_bytes_filename.patch Lib/fnmatch.py | 7 +++- Lib/glob.py | 15 ++++++--- Lib/io.py | 2 - Lib/posixpath.py | 20 ++++++++---- Modules/posixmodule.c | 83 ++++++++++++++++++-------------------------------- 5 files changed, 62 insertions(+), 65 deletions(-)

TODO:

-- Victor Stinner aka haypo http://www.haypocalc.com/blog/ -------------- next part -------------- A non-text attachment was scrubbed... Name: python3_bytes_filename.patch Type: text/x-diff Size: 6732 bytes Desc: not available URL: <http://mail.python.org/pipermail/python-dev/attachments/20080930/e8998338/attachment.patch>



More information about the Python-Dev mailing list