• Tim Peters's avatar
    SF bug 433228: repr(list) woes when len(list) big. · a7259597
    Tim Peters yazdı
    Gave Python linear-time repr() implementations for dicts, lists, strings.
    This means, e.g., that repr(range(50000)) is no longer 50x slower than
    pprint.pprint() in 2.2 <wink>.
    
    I don't consider this a bugfix candidate, as it's a performance boost.
    
    Added _PyString_Join() to the internal string API.  If we want that in the
    public API, fine, but then it requires runtime error checks instead of
    asserts.
    a7259597
stringobject.h 5.77 KB