[issue19837] Wire protocol encoding for the JSON module
Antoine Pitrou
report at bugs.python.org
Sun Dec 1 11:36:17 CET 2013
Antoine Pitrou added the comment:
> The problem with adding new APIs with different names to the JSON
> module is that it breaks symmetry with other wire protocols. The
> quartet of module level load, loads, dump and dumps functions has
> become a de facto standard API for wire protocols.
Breaking symmetry is terribly less silly than having a second module
doing almost the same thing, though.
> The advantage of a separate "jsonb" module is that it becomes easy to
> say "json is the text transform that dumps and loads from a Unicode
> string, jsonb is the wire protocol that dumps and loads a UTF encoded
> byte sequence".
This is a terribly lousy design.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19837>
_______________________________________
More information about the Python-bugs-list
mailing list