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 rhettinger
Recipients lehmannro, rhettinger, skip.montanaro, wangchun
Date 2009-05-26.21:40:25
SpamBayes Score 0.0010020258
Marked as misclassified No
Message-id <1243374027.89.0.710762939889.issue6105@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-05-26 21:40:28rhettingersetrecipients: + rhettinger, skip.montanaro, lehmannro, wangchun
2009-05-26 21:40:27rhettingersetmessageid: <1243374027.89.0.710762939889.issue6105@psf.upfronthosting.co.za>
2009-05-26 21:40:26rhettingerlinkissue6105 messages
2009-05-26 21:40:25rhettingercreate