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 <1376488105.75.0.431524230903.issue18682@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-08-14 13:48:25serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, mvyskocil
2013-08-14 13:48:25serhiy.storchakasetmessageid: <1376488105.75.0.431524230903.issue18682@psf.upfronthosting.co.za>
2013-08-14 13:48:25serhiy.storchakalinkissue18682 messages
2013-08-14 13:48:25serhiy.storchakacreate