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.

作者 ncoghlan
收信人 benjamin.peterson, brett.cannon, djmitche, lemburg, martin.panter, ncoghlan, serhiy.storchaka
日期 2015-05-30.13:59:12
SpamBayes Score -1.0
Marked as misclassified
Message-id <1432994353.24.0.920800943297.issue19543@psf.upfronthosting.co.za>
In-reply-to
内容
Serhiy's patch looks to me like it would pragmatically cover all the cases most likely to affect porting efforts: using the standard library bytes<->bytes codecs through the convenience methods.

For a Python 2 backport, I'm slightly more concerned with exposing the argument in the constructor signature, but see value in being consistent with Python 3 if anyone decides to use this to check a custom codec.

The main advantage this approach has over the typecheck based approach is that it can correctly warn about "data".encode("hex"), while a typecheck based approach can't distinguish that from "text".encode("ascii")
历史
日期 用户 动作 参数
2015-05-30 13:59:13ncoghlan修改recipients: + ncoghlan, lemburg, brett.cannon, djmitche, benjamin.peterson, martin.panter, serhiy.storchaka
2015-05-30 13:59:13ncoghlan修改messageid: <1432994353.24.0.920800943297.issue19543@psf.upfronthosting.co.za>
2015-05-30 13:59:13ncoghlan链接issue19543 messages
2015-05-30 13:59:12ncoghlan创建