Mark Shannon <m...@hotpy.org> added the comment:

What's happening is that the cycle GC calls type_clear to clear the type, but 
the method-cache is not invalidated.
I have added a call to PyType_Modified in type_clear (as well as type_set_name 
and type_set_qualname, which also modify the type).

Patch is attached.

----------
Added file: http://bugs.python.org/file23964/patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12149>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to