summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorJoel Nothman <joel.nothman@gmail.com>2012-12-06 23:10:25 +1100
committerJoel Nothman <joel.nothman@gmail.com>2012-12-06 23:10:25 +1100
commitc567ad1c5220a9da145d41b4e61f3a411d32ce57 (patch)
tree44c4ed8cbf773b0c861a1efe62f64ae33366b2db /README.rst
parentcaecc0098eeb631bb0aeca1fdba397ddd96ca329 (diff)
downloadmsgpack-python-c567ad1c5220a9da145d41b4e61f3a411d32ce57.tar.gz
Describe object_pairs_hook in README
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 8154098..f3779f1 100644
--- a/README.rst
+++ b/README.rst
@@ -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
---------