INADA Naoki
6d80569b9b
Unpacker: maintain refcnt ( fix #67 ).
2014-02-13 09:58:38 +09:00
INADA Naoki
9d61f24387
Feed data from file before _unpack()
2014-02-13 03:10:51 +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
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
Antonio Cuni
56dd1650a4
implement unpacking for all the fixtext formats
2013-10-19 17:27:16 +02:00
Antonio Cuni
ff858387d3
implement unpack_one also for the cython version, and add a test for it
2013-10-19 01:49:03 +02:00
INADA Naoki
85eaff344b
Add bin type support for fallback Unpacker.
2013-10-17 09:15:19 +09:00
YAMAMOTO Takashi
3dbb2d1e7e
fix compilation errors
2013-06-03 13:53:43 +09:00
INADA Naoki
956f55ecdf
Stop using const_void_ptr typedef.
...
New Cython supports const natively.
2013-05-19 12:32:33 +09:00
INADA Naoki
bbe86e7a92
Revert "Use new buffer interface."
...
This reverts commit 085db7f8dc
.
Conflicts:
msgpack/_unpacker.pyx
2013-05-19 12:30:23 +09:00
YAMAMOTO Takashi
63b9fa5843
fix a compilation error
...
msgpack/_unpacker.pyx: In function 'PyObject* __pyx_pf_7msgpack_9_unpacker_unpac
kb(PyObject*, PyObject*, PyObject*, PyObject*, int, PyObject*, PyObject*, PyObje
ct*)':
msgpack/_unpacker.pyx:111:70: error: invalid cast from type 'Py_buffer' to type 'char*'
2013-05-16 12:58:00 +09:00
INADA Naoki
085db7f8dc
Use new buffer interface.
2013-04-08 10:57:21 +09:00
INADA Naoki
18215b01bb
Unpacker.feed() uses new buffer interface.
2013-04-08 10:52:11 +09:00
INADA Naoki
0faa1bb558
Remove unnecessary type declaration.
2013-04-08 01:57:37 +09:00
INADA Naoki
c49489cd37
remove some macros.
2013-02-27 21:12:20 +09:00
INADA Naoki
5176e92d99
Fix typeerror.
2013-02-26 09:55:13 +09:00
INADA Naoki
8e13598a36
docs: better unpacker docstring.
2013-02-26 09:49:25 +09:00
INADA Naoki
f0fd90a759
Fix exception incompatibility.
2013-02-22 17:41:52 +09:00
INADA Naoki
d57e369258
Fix unpacker doesn't raise exception for invalid input (Merge branch '0.2'
...
Fixes #40
Conflicts:
ChangeLog.rst
msgpack/_unpacker.pyx
msgpack/_version.py
2012-12-29 01:43:16 +09:00
INADA Naoki
b79e5ba4e5
Split _msgpack.pyx
2012-12-11 22:15:21 +09:00