This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author andrei.avk
Recipients Zeturic, andrei.avk, bob.ippolito, corona10
Date 2021-11-12.00:14:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636676095.16.0.839917691625.issue45054@roundup.psfhosted.org>
In-reply-to
Content
In general this sounds reasonable; - but a couple of thoughts / comments:

- If you have a dict with mixed numbers in str format and in number format (i.e. ints as numbers and ints as strings in your case), you are creating problems in many potential places. The core of the problem is logically inconsistent keys rather than the step of conversion to JSON. So the most useful place for warning would be when adding a new key, but that wouldn't be practical.

- Even if something is to be done at conversion to JSON, it's not clear if it should be a warning (would that be enough when the conversion is a logical bug?), or it should be some kind of strict=True mode that raises a ValueError?
History
Date User Action Args
2021-11-12 00:14:55andrei.avksetrecipients: + andrei.avk, bob.ippolito, corona10, Zeturic
2021-11-12 00:14:55andrei.avksetmessageid: <1636676095.16.0.839917691625.issue45054@roundup.psfhosted.org>
2021-11-12 00:14:55andrei.avklinkissue45054 messages
2021-11-12 00:14:54andrei.avkcreate