This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon, Trundle, amaury.forgeotdarc, benjamin.peterson, davide.rizzo, ezio.melotti, orsenthil, pitrou, python-dev, vstinner
Date 2011-12-15.11:36:20
SpamBayes Score 3.073133e-07
Marked as misclassified No
Message-id <1323948980.89.0.483432108732.issue12149@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-12-15 11:36:20Mark.Shannonsetrecipients: + Mark.Shannon, amaury.forgeotdarc, orsenthil, pitrou, vstinner, benjamin.peterson, ezio.melotti, Trundle, davide.rizzo, python-dev
2011-12-15 11:36:20Mark.Shannonsetmessageid: <1323948980.89.0.483432108732.issue12149@psf.upfronthosting.co.za>
2011-12-15 11:36:20Mark.Shannonlinkissue12149 messages
2011-12-15 11:36:20Mark.Shannoncreate