Marc-Andre Lemburg added the comment:

On 06.09.2014 15:03, Nick Coghlan wrote:
> A "codecs._forget_codec" helper in the C module would be all that was needed 
> to handle it. Other implementations could then also use that to clear their 
> own internal cache (if they have one).

If you want to take that approach, please call that function
codecs._clear_lookup_cache() and also add a new C API
_PyCodecRegistry_ClearLookupCache() to Python/codecs.c.

Marc-Andre Lemburg

nosy: +lemburg

Python tracker <>
Python-bugs-list mailing list

Reply via email to