From 3b980fe162782d6e2f43d266ce6077df5c2fd13b Mon Sep 17 00:00:00 2001 From: "Vanya A. Sergeev" Date: Wed, 19 Oct 2016 05:51:48 -0700 Subject: [PATCH] improve wording in readme and msgpack.org.md --- README.md | 8 ++++---- msgpack.org.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f446c12..f05149c 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Streaming serialization with file-like objects: >>> ``` -Encoding and decoding a raw Ext type: +Serializing and deserializing a raw Ext type: ``` python >>> # Create an Ext object with type 0x05 and data b"\x01\x02\x03" ... foo = umsgpack.Ext(0x05, b"\x01\x02\x03") @@ -79,7 +79,7 @@ b'\x01\x02\x03' >>> ``` -Encoding and decoding application-defined types with Ext handlers: +Serializing and deserializing application-defined types with Ext handlers: ``` python >>> umsgpack.packb([complex(1,2), datetime.datetime.now()], ... ext_handlers = { @@ -339,7 +339,7 @@ If a non-byte-string argument is passed to `umsgpack.unpackb()`, it will raise a * `UnhashableKeyException`: Unhashable key encountered during map unpacking. The packed map cannot be unpacked into a Python dictionary. - Python dictionaries only support keys that are instances of `collections.Hashable`, so while the map `{ { u'abc': True } : 5 }` has a MessagePack encoding, it cannot be unpacked into a valid Python dictionary. + Python dictionaries only support keys that are instances of `collections.Hashable`, so while the map `{ { u'abc': True } : 5 }` has a MessagePack serialization, it cannot be unpacked into a valid Python dictionary. ``` python # Attempt to unpack { {} : False } @@ -351,7 +351,7 @@ If a non-byte-string argument is passed to `umsgpack.unpackb()`, it will raise a * `DuplicateKeyException`: Duplicate key encountered during map unpacking. - Python dictionaries do not support duplicate keys, but MessagePack maps may be encoded with duplicate keys. + Python dictionaries do not support duplicate keys, but MessagePack maps may be serialized with duplicate keys. ``` python # Attempt to unpack { 1: True, 1: False } diff --git a/msgpack.org.md b/msgpack.org.md index c03a35b..c94d371 100644 --- a/msgpack.org.md +++ b/msgpack.org.md @@ -63,7 +63,7 @@ Streaming serialization with file-like objects: >>> ``` -Encoding and decoding a raw Ext type: +Serializing and deserializing a raw Ext type: ``` python >>> # Create an Ext object with type 0x05 and data b"\x01\x02\x03" ... foo = umsgpack.Ext(0x05, b"\x01\x02\x03") @@ -80,7 +80,7 @@ b'\x01\x02\x03' >>> ``` -Encoding and decoding application-defined types with Ext handlers: +Serializing and deserializing application-defined types with Ext handlers: ``` python >>> umsgpack.packb([complex(1,2), datetime.datetime.now()], ... ext_handlers = {