[issue22767] `separators` argument to json.dumps() behaves unexpectedly across 2.x vs 3.x

R. David Murray report at bugs.python.org
Thu Oct 30 20:49:58 CET 2014


R. David Murray added the comment:

No, it is introducing the unicode that is the problem.  Your first example is entirely binary.  It is only when you *mix* binary and unicode that you have encoding problems (because python doesn't know the encoding of the binary data...well, more precisely it doesn't have one).

This confusion is a large part of why python3 exists :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22767>
_______________________________________


More information about the Python-bugs-list mailing list