Message270298
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. |
|
Date |
User |
Action |
Args |
2016-07-13 06:44:35 | xiang.zhang | set | recipients:
+ xiang.zhang, serhiy.storchaka |
2016-07-13 06:44:35 | xiang.zhang | set | messageid: <1468392275.7.0.989121761799.issue27492@psf.upfronthosting.co.za> |
2016-07-13 06:44:35 | xiang.zhang | link | issue27492 messages |
2016-07-13 06:44:35 | xiang.zhang | create | |
|