INADA Naoki
35a69ac9c2
Decrease refcnt when error happend while unpacking
...
Fixes #152
2015-11-08 12:43:54 +09:00
INADA Naoki
e9ab4d8824
Fix warnings
...
fixes #146
2015-11-07 16:52:58 +09:00
Johannes Dollinger
4eb4c7a994
Accept ext_hook for unpack()
2015-07-27 20:29:43 +02:00
INADA Naoki
9fe19cc408
0.4.6
2015-03-13 03:51:14 +09:00
INADA Naoki
4576b94b6c
fallback: Add some comment to Unpacker members.
2015-01-27 14:04:32 +09:00
Bas Westerbaan
a71a24d86a
Fix #124
...
When using Unpacker as an iterator, after each yield, the internal
buffer (_fb_buffer) was compacted by reallocation (done by _fb_consume).
When dealing with a lot of small objects, this is very ineffecient.
Thus in commit 7eb371f827
the pure python
fallback only reallocated the complete buffer when the iteration stops.
When halfway there happens to be data missing in the buffer, we rollback
the buffer to the state before this failed call, and raise an OutOfData.
This rollback, done by _fb_rollback, did not consider the possibility
that the buffer was *not* reallocated. This commit corrects that.
2015-01-26 20:34:31 +01:00
INADA Naoki
630c046bf2
0.4.5
2015-01-26 00:38:36 +09:00
INADA Naoki
2985f4d865
Fix error when use unicode_literal in Python 2
2015-01-25 02:35:57 +09:00
INADA Naoki
75ce78dd15
Add max_<type>_len option to unpacker. ( fixes #97 ).
...
Fix build error on 32bit environment (fixes #102 ).
2015-01-25 01:41:21 +09:00
INADA Naoki
deb8094e1d
0.4.4
2015-01-09 09:53:44 +09:00
INADA Naoki
ee0e435535
Fix compile error.
2015-01-09 04:10:25 +09:00
INADA Naoki
868d149efc
Merge branch 'master' of github.com:msgpack/msgpack-python
2015-01-07 16:09:39 +09:00
INADA Naoki
5bc685973d
0.4.3
2015-01-07 15:59:35 +09:00
INADA Naoki
9624a2aca3
Fix build failuer for Python 2.7 on Windows.
...
Remove int8_t usage.
2015-01-07 12:10:42 +09:00
Xiaojie Lin
d5e9ac9316
add support for pypy3
2014-11-14 14:47:54 +11:00
INADA Naoki
d6c773dc4d
Fix build and tests.
2014-08-31 02:29:05 +09:00
Bas Westerbaan
0532ea87fb
fallback: fix BufferFull with sloppy consume
2014-06-15 22:45:30 +02:00
Bas Westerbaan
b334d441c3
fallback: _fb_read: do a big read, when we need a big read
2014-06-14 18:42:02 +02:00
Bas Westerbaan
952eb9fc53
fallback: add some comments to _fb_read
2014-06-14 18:34:17 +02:00
Bas Westerbaan
7eb371f827
fallback: do not reset the buffer completely in between of iterations
2014-06-14 18:30:38 +02:00
Bas Westerbaan
ba8cf1c402
fallback: _fb_consume: improve performance with pypy
2014-06-14 18:26:30 +02:00
Bas Westerbaan
56cf384159
fallback: set default read_size to 4096
2014-06-14 18:25:57 +02:00
Bas Westerbaan
67391fd60e
fallback: add missing update of _fb_buf_n
2014-06-14 18:25:34 +02:00
INADA Naoki
7f623c0906
Fix unpacking uint32 on 32bit or LLP64.
2014-05-26 01:17:53 +09:00
INADA Naoki
61bac2f586
0.4.2
2014-03-26 17:20:51 +09:00
INADA Naoki
3a9dc1d7ea
Merge pull request #94 from msgpack/strict-input-check
...
Add tests for limits.
2014-03-26 15:37:29 +09:00
INADA Naoki
ef5d93d4ea
Fix size limit on pack_array_header and pack_map_header.
2014-03-26 11:05:53 +09:00
INADA Naoki
c60ab28ee7
Add check for format limits.
2014-03-26 03:03:18 +09:00
Alexey Popravka
d850e56dd0
Unpacker's ext_hook fixed + tests
2014-03-24 15:31:06 +02:00
INADA Naoki
1ca3c27a81
0.4.1
2014-02-17 10:03:36 +09:00
INADA Naoki
eb3537ab50
Merge branch 'pr/82'
2014-02-17 04:07:16 +09:00
INADA Naoki
7effb4aac6
fix
2014-02-17 04:05:04 +09:00
INADA Naoki
6d80569b9b
Unpacker: maintain refcnt ( fix #67 ).
2014-02-13 09:58:38 +09:00
Sergey Zhuravlev
11a3b1561a
fixed support of python3
2014-02-12 23:09:23 +04:00
INADA Naoki
9d61f24387
Feed data from file before _unpack()
2014-02-13 03:10:51 +09:00
INADA Naoki
d2fc801034
Fix warning on 64bit environment.
2014-02-13 01:57:34 +09:00
INADA Naoki
f322ed4e1b
Merge pull request #84 from wbolster/exception-type-cleanups
...
Always raise TypeError for wrong argument types
2014-02-13 01:19:33 +09:00
Wouter Bolsterlee
dd65341e0d
Cosmetic changes to fix Cython warnings
...
Put declarations on separate line to avoid warnings like this:
Non-trivial type declarators in shared declaration (e.g. mix
of pointers and values). Each pointer declaration should be
on its own line.
2014-02-11 21:05:15 +01:00
Wouter Bolsterlee
77046b839d
Always raise TypeError for wrong argument types
...
The code that checks whether hooks are callable() (and some other type
checks) should always raise TypeError on failure. Before this change,
both ValueError and TypeError were used in an inconsistent way (C
extension and Python implementation were not the same).
2014-02-11 20:42:58 +01:00
Sergey Zhuravlev
48ca2d700d
Added support of bytearrays to msgpack/fallback.py
2013-12-15 16:22:39 +00:00
INADA Naoki
f31a4403a1
Document update.
2013-10-21 01:47:54 +09:00
INADA Naoki
1d0096b998
0.4.0
2013-10-21 01:20:13 +09:00
INADA Naoki
d84a403bc0
fix bugs.
2013-10-21 01:12:57 +09:00
INADA Naoki
e3fee4db5f
fallback: support packing ExtType
2013-10-21 00:59:22 +09:00
INADA Naoki
37c2ad63af
Add tests and bugfix.
2013-10-21 00:29:05 +09:00
INADA Naoki
0d5c58bd51
cleanup
2013-10-20 23:06:02 +09:00
INADA Naoki
822cce823c
Support unpacking new types.
2013-10-20 22:59:27 +09:00
INADA Naoki
96bcd76f49
Packing ExtType and some cleanup
2013-10-20 20:28:32 +09:00
INADA Naoki
aa68c9b833
fallback: Support pack_ext_type.
2013-10-20 15:40:20 +09:00
INADA Naoki
27f0cba8a5
Merge branch 'master' of https://github.com/antocuni/msgpack-python into newspec
...
Conflicts:
msgpack/fallback.py
msgpack/unpack.h
msgpack/unpack_define.h
msgpack/unpack_template.h
2013-10-20 15:08:31 +09:00