This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients barry, chrism, ncoghlan, pitrou, serhiy.storchaka
Date 2013-12-01.01:55:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385862902.21.0.262884725829.issue19837@psf.upfronthosting.co.za>
In-reply-to
Content
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.

If it wasn't for that API convention, the status quo would be substantially less annoying (and confusing) than it currently is.

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".

Backporting as simplejsonb would also work in a straightforward fashion (since one PyPI package can include multiple top level Python modules).

The same approach would also extend to fixing the xmlrpc module to handle the encoding step properly (if anyone was so inclined).
History
Date User Action Args
2013-12-01 01:55:02ncoghlansetrecipients: + ncoghlan, barry, chrism, pitrou, serhiy.storchaka
2013-12-01 01:55:02ncoghlansetmessageid: <1385862902.21.0.262884725829.issue19837@psf.upfronthosting.co.za>
2013-12-01 01:55:02ncoghlanlinkissue19837 messages
2013-12-01 01:55:01ncoghlancreate