Commit graph

277 commits

Author SHA1 Message Date
folz
0ec2e3534f fix problems associated with packing memoryviews
fix wrong length when packing multibyte memoryviews in fallback
add tests for memoryviews of different types and sizes and check contents of packed data
2016-05-03 16:55:14 +02:00
INADA Naoki
ceb9635a3f Use AppVeyor to build windows wheel (#188)
* Add AppVeyor support to build windows wheel
* Fix test_limits on 32bit environments
* Ignore Python35-x64 test fail for now
  Should be fixed in next version.
2016-05-03 11:58:28 +09:00
INADA Naoki
6b113a6fb3 Use Python's memory API (#185) 2016-04-30 17:07:14 +09:00
INADA Naoki
b2a8ce6cbd Deprecate more useless exceptions 2016-02-14 14:32:11 +09:00
INADA Naoki
3dad39811d Deprecate PackExceptions 2016-02-14 14:29:34 +09:00
INADA Naoki
d90008d4f5 ExtraData should be UnpackValueError 2016-02-14 11:46:28 +09:00
palaviv
e15085db03 removed MsgpackBaseException 2016-02-12 15:39:50 +02:00
palaviv
1183eff688 reraising ValueError from unpack.h as UnpackValueError 2016-02-12 15:37:39 +02:00
palaviv
d44063119b changed more ValueErrors to PackValueError 2016-02-12 15:36:48 +02:00
palaviv
7d2d46effc msgpack pack and unpack throws only exception that inherit from MsgpackBaseException. cython and fallback throws same exceptions 2016-02-12 11:00:39 +02:00
folz
31adc5a3c0 Support packing memoryview objects 2016-01-25 13:25:10 +01:00
INADA Naoki
8036cb4e0e Merge pull request #158 from methane/feature/strict-typecheck
Packer: check type strictly
2016-01-25 11:37:07 +09:00
INADA Naoki
1f8240eaf6 0.4.7 2016-01-25 01:10:50 +09:00
Sadayuki Furuhashi
83424bd7b3 Fix wrong 'dict is too large' on unicode string 2016-01-11 13:57:33 -08:00
INADA Naoki
b6e962d0a6 Merge pull request #163 from ThomasWaldmann/master
fix typos
2015-12-10 17:42:15 +09:00
Thomas Waldmann
9c6584ee10 fix typos 2015-12-09 13:53:42 +01:00
INADA Naoki
628c519187 strict type check for ext type 2015-11-10 03:41:09 +09:00
INADA Naoki
9b673279d3 strict_types should be last argument 2015-11-10 03:37:54 +09:00
INADA Naoki
1032ef9bf2 fallback unpacker: precise => strict 2015-11-10 03:33:50 +09:00
INADA Naoki
cbdf3c339a s/precise_mode/strict_types/ 2015-11-10 03:30:11 +09:00
INADA Naoki
e9a47cbd35 Merge branch 'master' of https://github.com/faerot/msgpack-python into pramukta-default_function_on_int_overflow 2015-11-10 01:52:52 +09:00
INADA Naoki
a1317b604f refactor 2015-11-09 02:34:17 +09:00
INADA Naoki
ca87a7e539 Merge pull request #135 from pramukta/default_function_on_int_overflow
Default function on int overflow
2015-11-09 02:23:22 +09:00
INADA Naoki
7d900371c8 Fix compile error 2015-11-09 02:09:39 +09:00
INADA Naoki
f7d3715f2c Add missing params to unpack() 2015-11-09 02:00:48 +09:00
INADA Naoki
de3c2b99f7 refactor C code
fixes #137
2015-11-09 01:52:37 +09:00
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
Pramukta Kumar
6f02d252e1 corresponding change to cython implementation 2015-03-17 15:16:17 -04:00
Pramukta Kumar
10cd2d2ebf calling the default function upon integer overflow in the fallback routine 2015-03-17 15:05:04 -04: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