Sept. 14, 2020
1:58 a.m.
On Mon, Sep 14, 2020 at 10:52 AM David Mertz <mertz@gnosis.cx> wrote:
Yes, that is a design flaw in the stdlib. There ought to be an opt-in switch for accepting/producing those special values, not the current opt-out for strictness... And the misnamed parameter is 'allow_nan' whereas it also configures 'Infinity'.
In case of encoding, we deprecated and ignored it in json.loads since Python 3.1, and removed in 3.9. Users still can load/save JSON with legacy encodings with open() + dump/load. -- Inada Naoki <songofacandy@gmail.com>