diff options
| author | Joel Nothman <joel.nothman@gmail.com> | 2012-12-06 23:10:25 +1100 |
|---|---|---|
| committer | Joel Nothman <joel.nothman@gmail.com> | 2012-12-06 23:10:25 +1100 |
| commit | c567ad1c5220a9da145d41b4e61f3a411d32ce57 (patch) | |
| tree | 44c4ed8cbf773b0c861a1efe62f64ae33366b2db /README.rst | |
| parent | caecc0098eeb631bb0aeca1fdba397ddd96ca329 (diff) | |
| download | msgpack-python-c567ad1c5220a9da145d41b4e61f3a411d32ce57.tar.gz | |
Describe object_pairs_hook in README
Diffstat (limited to 'README.rst')
| -rw-r--r-- | README.rst | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -90,6 +90,9 @@ Also possible to pack/unpack user's data types. Here is an example for packed_dict = msgpack.packb(useful_dict, default=encode_datetime) this_dict_again = msgpack.unpackb(packed_dict, object_hook=decode_datetime) +``Unpacker``'s ``object_hook`` callback receives a dict; the +``object_pairs_hook`` callback may instead be used to receive a list of +key-value pairs. INSTALL --------- |
