Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 71299:9618303852da 2.7
Issue #12149: Update the method cache after a type's dictionnary gets
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Tue, 12 Jul 2011 22:04:20 +0200 |
| parents | 916838ace42a |
| children | cd9eca1bf531 |
line wrap: on
line diff
