This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients nparslow, xtreak
Date 2018-09-24.11:14:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537787657.11.0.956365154283.issue34752@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-09-24 11:14:17xtreaksetrecipients: + xtreak, nparslow
2018-09-24 11:14:17xtreaksetmessageid: <1537787657.11.0.956365154283.issue34752@psf.upfronthosting.co.za>
2018-09-24 11:14:17xtreaklinkissue34752 messages
2018-09-24 11:14:17xtreakcreate