Skip to content

Commit c567ad1

Browse files
committed
Describe object_pairs_hook in README
1 parent caecc00 commit c567ad1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ Also possible to pack/unpack user's data types. Here is an example for
9090
packed_dict = msgpack.packb(useful_dict, default=encode_datetime)
9191
this_dict_again = msgpack.unpackb(packed_dict, object_hook=decode_datetime)
9292

93+
``Unpacker``'s ``object_hook`` callback receives a dict; the
94+
``object_pairs_hook`` callback may instead be used to receive a list of
95+
key-value pairs.
9396

9497
INSTALL
9598
---------

0 commit comments

Comments
 (0)