Skip to content

Commit 3b980fe

Browse files
committed
improve wording in readme and msgpack.org.md
1 parent 73ab43d commit 3b980fe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Streaming serialization with file-like objects:
6262
>>>
6363
```
6464

65-
Encoding and decoding a raw Ext type:
65+
Serializing and deserializing a raw Ext type:
6666
``` python
6767
>>> # Create an Ext object with type 0x05 and data b"\x01\x02\x03"
6868
... foo = umsgpack.Ext(0x05, b"\x01\x02\x03")
@@ -79,7 +79,7 @@ b'\x01\x02\x03'
7979
>>>
8080
```
8181

82-
Encoding and decoding application-defined types with Ext handlers:
82+
Serializing and deserializing application-defined types with Ext handlers:
8383
``` python
8484
>>> umsgpack.packb([complex(1,2), datetime.datetime.now()],
8585
... ext_handlers = {
@@ -339,7 +339,7 @@ If a non-byte-string argument is passed to `umsgpack.unpackb()`, it will raise a
339339

340340
* `UnhashableKeyException`: Unhashable key encountered during map unpacking. The packed map cannot be unpacked into a Python dictionary.
341341

342-
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.
342+
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.
343343

344344
``` python
345345
# Attempt to unpack { {} : False }
@@ -351,7 +351,7 @@ If a non-byte-string argument is passed to `umsgpack.unpackb()`, it will raise a
351351

352352
* `DuplicateKeyException`: Duplicate key encountered during map unpacking.
353353

354-
Python dictionaries do not support duplicate keys, but MessagePack maps may be encoded with duplicate keys.
354+
Python dictionaries do not support duplicate keys, but MessagePack maps may be serialized with duplicate keys.
355355

356356
``` python
357357
# Attempt to unpack { 1: True, 1: False }

msgpack.org.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Streaming serialization with file-like objects:
6363
>>>
6464
```
6565

66-
Encoding and decoding a raw Ext type:
66+
Serializing and deserializing a raw Ext type:
6767
``` python
6868
>>> # Create an Ext object with type 0x05 and data b"\x01\x02\x03"
6969
... foo = umsgpack.Ext(0x05, b"\x01\x02\x03")
@@ -80,7 +80,7 @@ b'\x01\x02\x03'
8080
>>>
8181
```
8282

83-
Encoding and decoding application-defined types with Ext handlers:
83+
Serializing and deserializing application-defined types with Ext handlers:
8484
``` python
8585
>>> umsgpack.packb([complex(1,2), datetime.datetime.now()],
8686
... ext_handlers = {

0 commit comments

Comments
 (0)