Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:

Skip, the json API for 2.7/3.1 includes an object_pairs_hook that allows
an OrderedDict to be generated from a json file.  The OP is pointing out
that the latest C upgrade prevents round-tripping while preserving
order.  Use cases for that were discussed in the thread for the
object_pairs_hook.  While you can't count on order preservation on both
ends, there are tools such as PHP that do preserve order.  Also, when
working with manually type user inputs (such as config files), it is
nice when updates generally keep the file in its original order so that
it is clear what had changed.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6105>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to