• Kevin Modzelewski's avatar
    Call PyType_Modified() in add_operators · 9efb4351
    Kevin Modzelewski authored
    Sometimes we started filling in the method-cache before calling add_operators.
    add_operators directly modifies the class objects, so it needs to signal that
    the cache is now invalid.
    
    I think CPython avoids needing this since they never call add_operators
    after doing any type lookups, but we are a bit more flexible with our initialization.
    9efb4351
typeobject.cpp 133 KB