]> granicus.if.org Git - python/commit
Issue #12149: Update the method cache after a type's dictionnary gets
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 12 Jul 2011 19:57:15 +0000 (21:57 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 12 Jul 2011 19:57:15 +0000 (21:57 +0200)
commit84f1b1718da7fcbb8b8d255c166ef1ec0e03cd21
tree27212e508563c40f28d06eb7938a1e07c6eca063
parentb3593cada2ee83e1a7a8ee8b0905cbfed8396d3a
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.
Lib/test/test_io.py
Misc/ACKS
Misc/NEWS
Objects/typeobject.c