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 serhiy.storchaka, xiang.zhang
Date 2016-07-09.17:42:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468086159.4.0.976753811511.issue27474@psf.upfronthosting.co.za>
In-reply-to
Content
Now, `sys.maxsize+1 in b'foo'` raises "TypeError: 'int' does not support the buffer interface" which seems weird. In such case, I don't think there is any difference between sys.maxsize+1 and 256. So I suggest make it emits the same exceptions as `256 in b'foo'`, "ValueError: byte must be in range(0, 256)".
History
Date User Action Args
2016-07-09 17:42:39xiang.zhangsetrecipients: + xiang.zhang, serhiy.storchaka
2016-07-09 17:42:39xiang.zhangsetmessageid: <1468086159.4.0.976753811511.issue27474@psf.upfronthosting.co.za>
2016-07-09 17:42:39xiang.zhanglinkissue27474 messages
2016-07-09 17:42:39xiang.zhangcreate