8000 Add NOTE for changing default value of use_list. · xunzhang/msgpack-python@dd5c76b · GitHub
[go: up one dir, main page]

Skip to content

Commit dd5c76b

Browse files
committed
Add NOTE for changing default value of use_list.
1 parent f8d7dea commit dd5c76b

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

ChangeLog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
=====
33
:release date: in development
44

5+
Inconpatible Changes
6+
--------------------
7+
8+
* Default value of ``use_list`` is ``True`` for now. (It was ``False`` for 0.2.x)
9+
You should pass it explicitly for compatibility to 0.2.x.
10+
511
Changes
612
-------
713
* Add ``.skip()`` method to ``Unpacker`` (thanks to jnothman)

README.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
33
===========================
44

55
:author: INADA Naoki
6-
:version: 0.2.0
7-
:date: 2012-06-27
6+
:version: 0.3.0
7+
:date: 2012-12-07
88

99
.. image:: https://secure.travis-ci.org/msgpack/msgpack-python.png
1010
:target: https://travis-ci.org/#!/msgpack/msgpack-python
@@ -16,6 +16,13 @@ WHAT IT IS
1616
similar data to JSON. This package provides CPython bindings for reading and
1717
writing MessagePack data.
1818

19+
NOTE for msgpack 0.2.x users
20+
----------------------------
21+
22+
The default value of ``use_list`` keyword argument is ``True`` from 0.3.x.
23+
You should pass the argument explicitly for backward compatibility.
24+
25+
1926
HOW TO USE
2027
-----------
2128

msgpack/_msgpack.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ cdef class Unpacker(object):
327327
`read_size` is used as `file_like.read(read_size)`.
328328
(default: min(1024**2, max_buffer_size))
329329
330-
If `use_list` is true, msgpack list is deserialized to Python list.
330+
If `use_list` is true (default), msgpack list is deserialized to Python list.
331331
Otherwise, it is deserialized to Python tuple.
332332
333333
`object_hook` is same to simplejson. If it is not None, it should be callable

0 commit comments

Comments
 (0)
0