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 <rep...@bugs.python.org> <http://bugs.python.org/issue23637> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com