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
The _one_shot was recently removed. Is there an another way to disable use of c_make_encoder at runtime?
The only idea I have is it to disable it globally with simplejson.encoder.c_make_encoder = None but then it's always disabled and that is not perfect either.
That option allowed to use generators and stream json output without allocating too much memory.
There's no public interface for this (and there never really has been), but any setting for indent other than None will force the use of the Python implementation. The tests use a private function simplejson._toggle_speedups(False) which disables the C extension globally.
The
_one_shot
was recently removed. Is there an another way to disable use ofc_make_encoder
at runtime?The only idea I have is it to disable it globally with
simplejson.encoder.c_make_encoder = None
but then it's always disabled and that is not perfect either.That option allowed to use generators and stream json output without allocating too much memory.
The text was updated successfully, but these errors were encountered: