You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had asked Marc-Andre Lemburg(author of codec module in python) whether you can override an inbuilt codec, and his reply:
It's not really supported to override builtin codecs via a search
function. The only way is to monkey patch the encodings package
module implementing the codec and then only if you manage to
implement this patching before the codec gets used for the first
time, since the codec subsystem uses a cache for codecs to improve
performance.
Note that the codec search function registry is mainly meant to
*add* new codecs, not to override existing ones.
This was via email.
We should re-architect based on this new info.
The text was updated successfully, but these errors were encountered:
see:
naz/tests/test_codec.py
Lines 177 to 232 in 8b1ec3d
I had asked
Marc-Andre Lemburg
(author of codec module in python) whether you can override an inbuilt codec, and his reply:This was via email.
We should re-architect based on this new info.
The text was updated successfully, but these errors were encountered: