Message326221
I think this a known limitation as per https://bugs.python.org/issue23637#msg239361 where non-ASCII characters would require byte string. I couldn't find the relevant documentation for it though.
$ ./python.exe
Python 2.7.15+ (remotes/upstream/2.7:69d0bc1430, Sep 24 2018, 16:02:09)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import warnings
>>>
>>> warnings.warn(b'blé')
__main__:1: UserWarning: blé
>>> warnings.warn(u'blé')
>>>
Thanks |
|
Date |
User |
Action |
Args |
2018-09-24 11:14:17 | xtreak | set | recipients:
+ xtreak, nparslow |
2018-09-24 11:14:17 | xtreak | set | messageid: <1537787657.11.0.956365154283.issue34752@psf.upfronthosting.co.za> |
2018-09-24 11:14:17 | xtreak | link | issue34752 messages |
2018-09-24 11:14:17 | xtreak | create | |
|