[issue34972] json dump silently converts int keys to string
My-Tien Nguyen
report at bugs.python.org
Sun Oct 14 07:32:16 EDT 2018
My-Tien Nguyen <my-tien.nguyen at ariadne.ai> added the comment:
Sure, I can do that, but wanted to propose this regardless. I guess this is a disagreement on a language design level.
As a proponent of strong typing I wouldn’t have allowed non-string keys in the first place, and if they are allowed I would warn about conversion. This is also more aligned with the “explicit is better than implicit” principle.
----------
resolution: not a bug ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34972>
_______________________________________
More information about the Python-bugs-list
mailing list