New submission from STINNER Victor <victor.stin...@haypocalc.com>: The Python parser stores the filename as a byte string. But it decodes the filename on error because most Python functions now use unicode strings. Instead of decoding the filename at error, which may raise a new error, I propose to decode the filename on the creation of the parser object and only store the filename as unicode.
This issue would prepare the last part of the full unicode support (#3080). ---------- components: Interpreter Core, Unicode files: parse_filename_obj.patch keywords: patch messages: 124755 nosy: haypo priority: normal severity: normal status: open title: parser: store the filename as an unicode object versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file20179/parse_filename_obj.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10785> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com