fallback: Update docstring.
INADA Naoki
6 years ago
159 | 159 | If it is None (default), msgpack raw is deserialized to Python bytes. |
160 | 160 | |
161 | 161 | :param str unicode_errors: |
162 | Used for decoding msgpack raw with *encoding*. | |
162 | (deprecated) Used for decoding msgpack raw with *encoding*. | |
163 | 163 | (default: `'strict'`) |
164 | 164 | |
165 | 165 | :param int max_buffer_size: |
655 | 655 | :param callable default: |
656 | 656 | Convert user type to builtin type that Packer supports. |
657 | 657 | 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 | ||
662 | 659 | :param bool use_single_float: |
663 | 660 | Use single precision float type for float. (default: False) |
661 | ||
664 | 662 | :param bool autoreset: |
665 | 663 | Reset buffer after each pack and return its content as `bytes`. (default: True). |
666 | 664 | If set this to false, use `bytes()` to get content and `.reset()` to clear buffer. |
665 | ||
667 | 666 | :param bool use_bin_type: |
668 | 667 | Use bin type introduced in msgpack spec 2.0 for bytes. |
669 | 668 | It also enables str8 type for unicode. |
669 | ||
670 | 670 | :param bool strict_types: |
671 | 671 | If set to true, types will be checked to be exact. Derived classes |
672 | 672 | from serializeable types will not be serialized and will be |
674 | 674 | Additionally tuples will not be serialized as lists. |
675 | 675 | This is useful when trying to implement accurate serialization |
676 | 676 | 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') | |
677 | 683 | """ |
678 | 684 | def __init__(self, default=None, encoding='utf-8', unicode_errors='strict', |
679 | 685 | use_single_float=False, autoreset=True, use_bin_type=False, |