Message195159
We can just remove "if typ is str:" case at all. A general case works for strings.
But for performance (this will slowdown Antoine's tests by 15-20%) we should left it and may be even extend it to other builtin types:
builtin_type = (str, int, float, NoneType, list, tuple, dict, set, bytes): # or may be use a set?
...
if typ in builtin_type:
return repr(object), True, False |
|
Date |
User |
Action |
Args |
2013-08-14 13:48:25 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, mvyskocil |
2013-08-14 13:48:25 | serhiy.storchaka | set | messageid: <1376488105.75.0.431524230903.issue18682@psf.upfronthosting.co.za> |
2013-08-14 13:48:25 | serhiy.storchaka | link | issue18682 messages |
2013-08-14 13:48:25 | serhiy.storchaka | create | |
|