mirror of
https://github.com/python/cpython
synced 2026-09-26 16:21:04 +03:00
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
2 lines
102 B
ReStructuredText
2 lines
102 B
ReStructuredText
Fix an issue where the type cache can expose a previously accessed attribute
|
|
when a finalizer is run.
|