@@ -160,7 +160,7 @@ class Unpacker(object):
160
160
If it is None (default), msgpack raw is deserialized to Python bytes.
161
161
162
162
:param str unicode_errors:
163
- Used for decoding msgpack raw with *encoding*.
163
+ (deprecated) Used for decoding msgpack raw with *encoding*.
164
164
(default: `'strict'`)
165
165
166
166
:param int max_buffer_size:
@@ -656,25 +656,31 @@ class Packer(object):
656
656
:param callable default:
657
657
Convert user type to builtin type that Packer supports.
658
658
See also simplejson's document.
659
- :param str encoding:
660
- Convert unicode to bytes with this encoding. (default: 'utf-8')
661
- :param str unicode_errors:
662
- Error handler for encoding unicode. (default: 'strict')
659
+
663
660
:param bool use_single_float:
664
661
Use single precision float type for float. (default: False)
662
+
665
663
:param bool autoreset:
666
664
Reset buffer after each pack and return its content as `bytes`. (default: True).
667
665
If set this to false, use `bytes()` to get content and `.reset()` to clear buffer.
666
+
668
667
:param bool use_bin_type:
669
668
Use bin type introduced in msgpack spec 2.0 for bytes.
670
669
It also enables str8 type for unicode.
670
+
671
671
:param bool strict_types:
672
672
If set to true, types will be checked to be exact. Derived classes
673
673
from serializeable types will not be serialized and will be
674
674
treated as unsupported type and forwarded to default.
675
675
Additionally tuples will not be serialized as lists.
676
676
This is useful when trying to implement accurate serialization
677
677
for python types.
678
+
679
+ :param str encoding:
680
+ (deprecated) Convert unicode to bytes with this encoding. (default: 'utf-8')
681
+
682
+ :param str unicode_errors:
683
+ (deprecated) Error handler for encoding unicode. (default: 'strict')
678
684
"""
679
685
def __init__ (self , default = None , encoding = 'utf-8' , unicode_errors = 'strict' ,
680
686
use_single_float = False , autoreset = True , use_bin_type = False ,
0 commit comments