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 xiang.zhang
Recipients ezio.melotti, malin, vstinner, xiang.zhang
Date 2017-04-06.03:23:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The table in wikipedia is somewhat complex. I find and the table in it is same as (except 0x80) but in English. I agree with Ma Lin bytes sequences like b'\x81\x30\xFF\x30' are invalid.

For current implementation, you could see:

>>> invalid = b'\x81\x30\xff\x30'
>>> invalid.decode('gb18030').encode('gb18030') == invalid
Date User Action Args
2017-04-06 03:23:12xiang.zhangsetrecipients: + xiang.zhang, vstinner, ezio.melotti, malin
2017-04-06 03:23:12xiang.zhangsetmessageid: <>
2017-04-06 03:23:12xiang.zhanglinkissue29990 messages
2017-04-06 03:23:12xiang.zhangcreate