• Kevin Modzelewski's avatar
    Convert several classes to tp_richcompare · 9cb2b9f1
    Kevin Modzelewski authored
    int, long, str, tuple, type
    
    int and long are implemented using tp_compare in CPython,
    which is the old-style comparison method.  I don't really understand
    its semantics which rely on type coercion, and we don't have the
    methods it needs, so just implement it as tp_richcompare for now.
    I think this is still an overall compatibility improvement.
    
    str_richcompare is very odd where we have to do some weird things
    to convince the compiler to produce the best code it can.
    9cb2b9f1
tuple.cpp 14.8 KB