Codebase list python-msgpack / fc09da9
fallback: Update docstring. INADA Naoki 6 years ago
2 changed file(s) with 12 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
0 version = (0, 5, 0)
0 version = (0, 5, 1)
159159 If it is None (default), msgpack raw is deserialized to Python bytes.
160160
161161 :param str unicode_errors:
162 Used for decoding msgpack raw with *encoding*.
162 (deprecated) Used for decoding msgpack raw with *encoding*.
163163 (default: `'strict'`)
164164
165165 :param int max_buffer_size:
655655 :param callable default:
656656 Convert user type to builtin type that Packer supports.
657657 See also simplejson's document.
658 :param str encoding:
659 Convert unicode to bytes with this encoding. (default: 'utf-8')
660 :param str unicode_errors:
661 Error handler for encoding unicode. (default: 'strict')
658
662659 :param bool use_single_float:
663660 Use single precision float type for float. (default: False)
661
664662 :param bool autoreset:
665663 Reset buffer after each pack and return its content as `bytes`. (default: True).
666664 If set this to false, use `bytes()` to get content and `.reset()` to clear buffer.
665
667666 :param bool use_bin_type:
668667 Use bin type introduced in msgpack spec 2.0 for bytes.
669668 It also enables str8 type for unicode.
669
670670 :param bool strict_types:
671671 If set to true, types will be checked to be exact. Derived classes
672672 from serializeable types will not be serialized and will be
674674 Additionally tuples will not be serialized as lists.
675675 This is useful when trying to implement accurate serialization
676676 for python types.
677
678 :param str encoding:
679 (deprecated) Convert unicode to bytes with this encoding. (default: 'utf-8')
680
681 :param str unicode_errors:
682 (deprecated) Error handler for encoding unicode. (default: 'strict')
677683 """
678684 def __init__(self, default=None, encoding='utf-8', unicode_errors='strict',
679685 use_single_float=False, autoreset=True, use_bin_type=False,