• Kevin Modzelewski's avatar
    Change exceptions to hcattrs · 527b1694
    Kevin Modzelewski authored
    The rest of our builtin types use our "hc attrs" (hidden-class-based attribute
    storage), but we use the CPython implementation of exceptions which ask for
    dict attributes.  So, expose our hcattrs via the C API and change the exceptions
    classes to use it.
    
    Hopefully we can eventually find some more general way of providing this feature
    (ex for all string-keyed dicts) without needing these changes.
    527b1694
exceptions_basic.py 1.79 KB