Message 176570 - Python tracker (original) (raw)
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.