• Tim Peters's avatar
    Merge rev 38114 from trunk. · 72795b10
    Tim Peters authored
    Collector 1873.
    
    update_from_seq():  If PySequence_Check(seq) returns true,
    go on to check for the existence of "iteritems" when deciding
    whether the input is or is not "a sequence".  Alas,
    PySequence_Check() does return true for PersistentMapping and
    PersistentDict instances, so that they couldn't be used as
    arguments to BTree/Bucket construction or update().
    
    This is nasty type-sniffing, but it was before too.  There's
    no way to make such stuff bulletproof, so I'm settling for
    incremental improvement.
    72795b10
testBTrees.py 49.2 KB