[New-bugs-announce] [issue10785] parser: store the filename as an unicode object
report at bugs.python.org
Tue Dec 28 03:40:22 CET 2010
New submission from STINNER Victor <victor.stinner at 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
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 <report at bugs.python.org>
More information about the New-bugs-announce