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 martin.panter
Recipients eric.araujo, ezio.melotti, martin.panter, serhiy.storchaka, terry.reedy
Date 2016-04-09.14:03:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460210582.14.0.757451454526.issue17339@psf.upfronthosting.co.za>
In-reply-to
Content
I think this patch is okay.

I would have suggested “Cannot construct bytes from [. . .]” to avoid the problem with “convert”, but this message is produced in places other than the constructor, e.g.

>>> int.from_bytes("str", "little")
TypeError: cannot convert unicode object to bytes
History
Date User Action Args
2016-04-09 14:03:02martin.pantersetrecipients: + martin.panter, terry.reedy, ezio.melotti, eric.araujo, serhiy.storchaka
2016-04-09 14:03:02martin.pantersetmessageid: <1460210582.14.0.757451454526.issue17339@psf.upfronthosting.co.za>
2016-04-09 14:03:02martin.panterlinkissue17339 messages
2016-04-09 14:03:02martin.pantercreate