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. Thanks, -- Marc-Andre Lemburg eGenix.com ---------- nosy: +lemburg _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22166> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com