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-13.06:44:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468392275.7.0.989121761799.issue27492@psf.upfronthosting.co.za>
In-reply-to
Content
Hi, Serhiy. I've tried one version factoring the common parts out. I make them one function but it seems not very elegant. I also think about passing the object and use it to get the type and then determine how to get the string, what the pre/postfix are, and the exception message, but that seems not elegant either. And I don't figure out what the two function's advantage. Let me know your considerations.

BTW, I am still not sure repr could be put into bytes_methods.c. The functions in it are all tp->methods.
History
Date User Action Args
2016-07-13 06:44:35xiang.zhangsetrecipients: + xiang.zhang, serhiy.storchaka
2016-07-13 06:44:35xiang.zhangsetmessageid: <1468392275.7.0.989121761799.issue27492@psf.upfronthosting.co.za>
2016-07-13 06:44:35xiang.zhanglinkissue27492 messages
2016-07-13 06:44:35xiang.zhangcreate