msgpack/msgpack-python — pull request #1 by stephenpascoe (2011-10-23 21:32:39+00:00)
Title: Canonicalising pack

I'd like to make canonicalised pack data to make suitable for hashing. I've noticed msgpack-perl already supports this. Would you consider this patch to allow sorting of dictionary keys during packing?

The code preserves the original logic as much as possible at the expense of repeating a for loop. This could be made more concise.

Also has a test. Although I can't get the tests running because "msgpack.packs" doesn't exist.