[issue16333] Trailing whitespace in json dump when using indent
Ezio Melotti
report at bugs.python.org
Wed Nov 28 20:49:54 CET 2012
Ezio Melotti added the comment:
> There is no promise of binary compatibility for pretty-printed data.
This was the reason that made me consider backporting this on the other branches. After all I expect this feature to be used from the terminal, while printing JSON in a human-friendly format and in other situations were trailing spaces would have little or no importance.
OTOH people might be used pretty-printed JSON in tests to get a better a diff for example, and changing that in a debug release might be annoying.
IOW the annoyance of having trailing spaces if it doesn't get fixed evens out the annoyance of having a possibly unwanted change of behavior if it does get fixed.
Serhiy patches look good to me (modulo a couple of minor typos), so I will probably apply them as soon as I get a chance.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16333>
_______________________________________
More information about the Python-bugs-list
mailing list