mirror of
https://github.com/python/cpython.git
synced 2026-05-08 13:40:46 -04:00
5a1618a2c8
Add _PyType_LookupRef and use incref before setting attribute on type Makes setting an attribute on a class and signaling type modified atomic Avoid adding re-entrancy exposing the type cache in an inconsistent state by decrefing after type is updated