Commit graph

284 commits

Author SHA1 Message Date
INADA Naoki
e9c42fa523 fallback: simplify write_bytes callback implementation 2016-05-22 13:31:01 +09:00
INADA Naoki
3322a76989 Remove _fb_ prefix 2016-05-22 11:08:20 +09:00
INADA Naoki
f421f59a28 fallback: Rewrite buffer from array of bytes to bytearray 2016-05-20 21:56:10 +09:00
INADA Naoki
c6c4e59f4c s/realloc/PyMem_Realloc/ (#193) 2016-05-08 16:31:52 +09:00
INADA Naoki
a5c8bafad4 Remove unused import (#190) 2016-05-05 02:46:10 +09:00
INADA Naoki
63e23d37f9 travis: Use docker to test 32bit environment (#189)
* travis: testing matrix.include feature to use docker
* Add test script for 32bit
* Fix OverflowError in 32bit Environment
2016-05-05 02:07:46 +09:00
folz
5860af953a refactor header packing for str and bin types 2016-05-04 11:01:27 +02:00
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