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 ncoghlan
Recipients brett.cannon, lemburg, ncoghlan, pitrou, serhiy.storchaka, vstinner, zach.ware
Date 2014-09-06.22:32:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410042771.35.0.170215154132.issue22166@psf.upfronthosting.co.za>
In-reply-to
Content
Targeted API to forget a particular codec name.

Normally we don't care about the caching (as evidenced by the fact it took 14+ years to want this feature).

The intent with this API is to be able to selective purge a particular codec when we either care about getting the latest version of a specific codec (no current use cases) or to avoid the appearance of leaking references when looking up lots of custom codecs (this case).

I considered dropping the per-test naming scheme, but decided I liked the fact it kept these test instances orthogonal, even though they all use the shared TEST_CODECS registry. The lack of global side effects is also a benefit of just popping the named codec, rather than purging the entire cache.
History
Date User Action Args
2014-09-06 22:32:51ncoghlansetrecipients: + ncoghlan, lemburg, brett.cannon, pitrou, vstinner, zach.ware, serhiy.storchaka
2014-09-06 22:32:51ncoghlansetmessageid: <1410042771.35.0.170215154132.issue22166@psf.upfronthosting.co.za>
2014-09-06 22:32:51ncoghlanlinkissue22166 messages
2014-09-06 22:32:51ncoghlancreate