• Rudi Chen's avatar
    Handle edge case with C extension metaclasses. · d751470d
    Rudi Chen authored
    If both a metaclass and an instance of it are defined in C extensions,
    the metaclass doesn't have attrs_offset != 0 or tp_dictoffset != 0
    which causes the call to PyType_Ready on the instance to fail.
    d751470d
typeobject.cpp 122 KB