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-12.07:09:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468307381.71.0.764408700488.issue27492@psf.upfronthosting.co.za>
In-reply-to
Content
Right now bytearray_repr's implementation mimics old string_repr, but it has a drawback: It arbitrarily checks overflow using four times the bytearray object's length, but the representation length of the value can range from 1 to 4. I think we can use bytes_repr's logic which calculates the actual output length.
History
Date User Action Args
2016-07-12 07:09:41xiang.zhangsetrecipients: + xiang.zhang, serhiy.storchaka
2016-07-12 07:09:41xiang.zhangsetmessageid: <1468307381.71.0.764408700488.issue27492@psf.upfronthosting.co.za>
2016-07-12 07:09:41xiang.zhanglinkissue27492 messages
2016-07-12 07:09:41xiang.zhangcreate