summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2018-01-10 02:58:55 +0900
committerINADA Naoki <songofacandy@gmail.com>2018-01-10 02:58:55 +0900
commitfc09da997ca323cb1a545478e9c1563d8db37ab1 (patch)
tree655318e459b55c8f47c6ed397d6bfa0b53a926c5
parent0112957bcff8e16dddd6cbc474bfe8a49f418fad (diff)
downloadmsgpack-python-fc09da997ca323cb1a545478e9c1563d8db37ab1.tar.gz
fallback: Update docstring.
-rw-r--r--msgpack/_version.py2
-rw-r--r--msgpack/fallback.py16
2 files changed, 12 insertions, 6 deletions
diff --git a/msgpack/_version.py b/msgpack/_version.py
index f90cdc1..ecba3d8 100644
--- a/msgpack/_version.py
+++ b/msgpack/_version.py
@@ -1 +1 @@
-version = (0, 5, 0)
+version = (0, 5, 1)
diff --git a/msgpack/fallback.py b/msgpack/fallback.py
index 3c9c3b8..5447b53 100644
--- a/msgpack/fallback.py
+++ b/msgpack/fallback.py
@@ -160,7 +160,7 @@ class Unpacker(object):
If it is None (default), msgpack raw is deserialized to Python bytes.
:param str unicode_errors:
- Used for decoding msgpack raw with *encoding*.
+ (deprecated) Used for decoding msgpack raw with *encoding*.
(default: `'strict'`)
:param int max_buffer_size:
@@ -656,18 +656,18 @@ class Packer(object):
:param callable default:
Convert user type to builtin type that Packer supports.
See also simplejson's document.
- :param str encoding:
- Convert unicode to bytes with this encoding. (default: 'utf-8')
- :param str unicode_errors:
- Error handler for encoding unicode. (default: 'strict')
+
:param bool use_single_float:
Use single precision float type for float. (default: False)
+
:param bool autoreset:
Reset buffer after each pack and return its content as `bytes`. (default: True).
If set this to false, use `bytes()` to get content and `.reset()` to clear buffer.
+
:param bool use_bin_type:
Use bin type introduced in msgpack spec 2.0 for bytes.
It also enables str8 type for unicode.
+
:param bool strict_types:
If set to true, types will be checked to be exact. Derived classes
from serializeable types will not be serialized and will be
@@ -675,6 +675,12 @@ class Packer(object):
Additionally tuples will not be serialized as lists.
This is useful when trying to implement accurate serialization
for python types.
+
+ :param str encoding:
+ (deprecated) Convert unicode to bytes with this encoding. (default: 'utf-8')
+
+ :param str unicode_errors:
+ (deprecated) Error handler for encoding unicode. (default: 'strict')
"""
def __init__(self, default=None, encoding='utf-8', unicode_errors='strict',
use_single_float=False, autoreset=True, use_bin_type=False,