• Boxiang Sun's avatar
    use PyObject_GetDict instead _PyObject_GetDictPtr · 8d1f1650
    Boxiang Sun authored
    some Pyston class use hidden class to store their attributes,
    instead use PyDictObejct. This can get some speedup. But we can't
    get a writable dict pointer if a class use hidden class.
    
    So if code want to copy the dict, use PyObject_GetDict, if code want
    to add new item to it, use PyObject_SetDict.
    8d1f1650
_ExtensionClass.c 26.8 KB