mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Add NOTE for changing default value of use_list.
This commit is contained in:
parent
f8d7dea762
commit
dd5c76b955
3 changed files with 16 additions and 3 deletions
|
@ -2,6 +2,12 @@
|
||||||
=====
|
=====
|
||||||
:release date: in development
|
:release date: in development
|
||||||
|
|
||||||
|
Inconpatible Changes
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
* Default value of ``use_list`` is ``True`` for now. (It was ``False`` for 0.2.x)
|
||||||
|
You should pass it explicitly for compatibility to 0.2.x.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
-------
|
-------
|
||||||
* Add ``.skip()`` method to ``Unpacker`` (thanks to jnothman)
|
* Add ``.skip()`` method to ``Unpacker`` (thanks to jnothman)
|
||||||
|
|
11
README.rst
11
README.rst
|
@ -3,8 +3,8 @@ MessagePack Python Binding
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
:author: INADA Naoki
|
:author: INADA Naoki
|
||||||
:version: 0.2.0
|
:version: 0.3.0
|
||||||
:date: 2012-06-27
|
:date: 2012-12-07
|
||||||
|
|
||||||
.. image:: https://secure.travis-ci.org/msgpack/msgpack-python.png
|
.. image:: https://secure.travis-ci.org/msgpack/msgpack-python.png
|
||||||
:target: https://travis-ci.org/#!/msgpack/msgpack-python
|
:target: https://travis-ci.org/#!/msgpack/msgpack-python
|
||||||
|
@ -16,6 +16,13 @@ WHAT IT IS
|
||||||
similar data to JSON. This package provides CPython bindings for reading and
|
similar data to JSON. This package provides CPython bindings for reading and
|
||||||
writing MessagePack data.
|
writing MessagePack data.
|
||||||
|
|
||||||
|
NOTE for msgpack 0.2.x users
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
The default value of ``use_list`` keyword argument is ``True`` from 0.3.x.
|
||||||
|
You should pass the argument explicitly for backward compatibility.
|
||||||
|
|
||||||
|
|
||||||
HOW TO USE
|
HOW TO USE
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|
|
@ -327,7 +327,7 @@ cdef class Unpacker(object):
|
||||||
`read_size` is used as `file_like.read(read_size)`.
|
`read_size` is used as `file_like.read(read_size)`.
|
||||||
(default: min(1024**2, max_buffer_size))
|
(default: min(1024**2, max_buffer_size))
|
||||||
|
|
||||||
If `use_list` is true, msgpack list is deserialized to Python list.
|
If `use_list` is true (default), msgpack list is deserialized to Python list.
|
||||||
Otherwise, it is deserialized to Python tuple.
|
Otherwise, it is deserialized to Python tuple.
|
||||||
|
|
||||||
`object_hook` is same to simplejson. If it is not None, it should be callable
|
`object_hook` is same to simplejson. If it is not None, it should be callable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue