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 serhiy.storchaka
Recipients mvyskocil, pitrou, serhiy.storchaka
Date 2013-08-14.13:48:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:25serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, mvyskocil
2013-08-14 13:48:25serhiy.storchakasetmessageid: <>
2013-08-14 13:48:25serhiy.storchakalinkissue18682 messages
2013-08-14 13:48:25serhiy.storchakacreate