[issue23637] Warnings error with non-ascii chars.

STINNER Victor report at bugs.python.org
Fri Mar 27 00:04:40 CET 2015


STINNER Victor added the comment:

> Only thing required to make this work is add "u" in front of the message so it is unicode.

The warnings module works with non-ASCII characters if you only use bytes strings. I'm not sure that we should enhance it to support the unicode type in some fields, and bytes fields in other fields.

This issue was already fixed in Python 3 with the global switch to Unicode by default for all strings.

I would prefer to not fix this issue.

Since it looks to a new feature, it's also not a good practice to add new features in minor python versions (2.7.x).

----------
nosy: +haypo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23637>
_______________________________________


More information about the Python-bugs-list mailing list