Commit graph

247 commits

Author SHA1 Message Date
Bas Westerbaan
770fed6b7f fallback: Use mmap objects instead of strings to unpack
Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
2013-01-29 03:44:44 +01:00
Bas Westerbaan
d2f549a470 fallback: add actual rollback and add a testcase for it
Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
2013-01-29 02:58:26 +01:00
Bas Westerbaan
fb81f80d14 fallback: bugfix in next() 2013-01-29 02:47:41 +01:00
Bas Westerbaan
94925acb12 fallback: do not use dynamic format strings for struct.(un)pack
Increases performance on PyPy.
2013-01-29 02:15:29 +01:00
Bas Westerbaan
af9c9ca2c9 fallback: performance: write(a+b) -> write(a); write(b) 2013-01-29 02:01:34 +01:00
Bas Westerbaan
b940802032 fallback: two fixes for raising ExtraData 2013-01-28 22:29:23 +01:00
Bas Westerbaan
69ba3c9bf9 fallback: use __pypy__.builders.StringBuilder when available
This increases performance *a lot* on PyPy.

Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
2013-01-28 13:43:39 +01:00
Bas Westerbaan
6a28b28c63 Add pure Python fallback module
Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
2013-01-28 12:27:24 +01: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
72416e403c Fix unpacker doesn't raise exception for invalid input. 2012-12-29 01:39:59 +09:00
INADA Naoki
9dc299bd8d 0.2.4 2012-12-22 17:11:30 +09:00
INADA Naoki
833b85f173 Merge branch '0.2-maint' (fix #39) 2012-12-22 13:08:46 +09:00
INADA Naoki
ce2c5b22ef Check return value of _end functions. 2012-12-22 12:42:36 +09:00
INADA Naoki
79e44f86c9 Add NULL check. 2012-12-22 12:14:05 +09:00
INADA Naoki
b79e5ba4e5 Split _msgpack.pyx 2012-12-11 22:15:21 +09:00
INADA Naoki
280d56eb9b rename _msgpack.pyx => _packer.pyx 2012-12-11 22:05:00 +09:00
INADA Naoki
4a20700e20 prepare 0.2.3 2012-12-11 02:56:20 +09:00
INADA Naoki
3478406537 Fix tests. 2012-12-11 02:46:13 +09:00
INADA Naoki
4adc6f194d Add autoreset option to Packer. 2012-12-10 21:47:18 +09:00
INADA Naoki
537a2ab3f2 Add Packer.pack_pairs. 2012-12-10 21:26:41 +09:00
INADA Naoki
0c7ab7c344 refactoring: remove pack_define.h 2012-12-10 20:17:18 +09:00
INADA Naoki
1c0fe10a2f Remove unused UnpackException. 2012-12-10 20:12:38 +09:00
INADA Naoki
30025c7ea0 Improve docstring. 2012-12-10 20:06:00 +09:00
INADA Naoki
ed40c671da pack raise MemoryError when realloc is failed. 2012-12-10 01:42:38 +09:00
INADA Naoki
4480227e06 Improve docstrings. 2012-12-10 00:39:04 +09:00
INADA Naoki
219d47503c Split exceptions. 2012-12-10 00:31:19 +09:00
INADA Naoki
dd5c76b955 Add NOTE for changing default value of use_list. 2012-12-07 11:35:16 +09:00
INADA Naoki
c1d15df87a Add Unpacker.read_bytes().
It reads from inner buffer without unpacking.

Merge remote-tracking branch 'jnothman/patch-2'

Conflicts:
	msgpack/_msgpack.pyx
2012-12-06 22:13:28 +09:00
INADA Naoki
54916f79a5 Merge pull request #23 from jnothman/write_bytes
Allow packed data to be captured while executing skip(), etc.
2012-12-06 01:49:58 -08:00
INADA Naoki
ec655b9f2c Fix segmentation fault. 2012-11-07 02:23:57 +09:00
INADA Naoki
0ef52869e3 Fix unpack error on Python 3.2.
ctx.user.encoding and ctx.user.unicode_errors may refer to deallocated string.
2012-11-07 02:00:08 +09:00
Alexei Romanoff
cf89f18be7 segfault fixed when data is unpacked using list_hook,
this bug is a twin to #28.
Unit-test is also attached.
2012-10-12 13:19:53 +03:00
Alexei Romanoff
89ce16df39 A segfault fixed in the issue https://github.com/msgpack/msgpack-python/issues/28 2012-10-12 12:32:32 +03:00
Joel Nothman
df4f23779d Merge commit 'd5f9995' into read_bytes
Conflicts:
	msgpack/_msgpack.pyx
2012-10-04 11:31:40 +10:00
Joel Nothman
87f292cbf9 Allow packed data to be captured while executing skip(), etc. 2012-10-04 11:26:29 +10:00
INADA Naoki
e016b3dca0 Merge remote-tracking branch 'jnothman/read_size_cpp'
Conflicts:
	msgpack/_msgpack.pyx
	setup.py
2012-10-01 01:31:58 +09:00
Joel Nothman
9d9c3eecb8 Packer.pack_array/map_header to correspond to read functions 2012-09-25 01:19:10 +10:00
Joel Nothman
0431a766f4 read_array/map_header functionality 2012-09-25 01:19:07 +10:00
Joel Nothman
d56e2b2c8a Use C++ function templating for skip()/construct() 2012-09-25 00:30:15 +10:00
INADA Naoki
1526316a08 Merge branch '0.2-maint'
Conflicts:
	msgpack/_msgpack.pyx
2012-09-24 03:10:37 +09:00
INADA Naoki
e381032641 Support object_pairs_hook
Merge remote-tracking branch 'jnothman/object_pairs_hook' into 0.2-maint
Conflicts:
	msgpack/_msgpack.pyx
	test/test_pack.py
	test/test_sequnpack.py
2012-09-24 03:05:39 +09:00
INADA Naoki
d13f10c02e Start 0.3.0dev1 2012-09-24 02:46:34 +09:00
INADA Naoki
ac403ef68d Start 0.2.3dev 2012-09-24 02:45:37 +09:00
INADA Naoki
15a46eb143 use_list=1 is default 2012-09-24 02:42:38 +09:00
INADA Naoki
d503788e95 Warn when use_list is not specified.
Conflicts:
	test/test_sequnpack.py
2012-09-24 02:38:54 +09:00
INADA Naoki
60df5eadaf Warn when use_list is not specified. 2012-09-24 02:12:55 +09:00
Joel Nothman
e7c51d9089 Cleaner read_bytes and a test case
No longer reads via buffer for unbuffered bytes
2012-09-23 20:46:49 +10:00
Joel Nothman
77942514db Implement object_pairs_hook 2012-09-23 19:37:28 +10:00
Joel Nothman
b06ed8eb75 Factor context initialisation from unpackb and Unpacker 2012-09-23 19:36:27 +10:00
INADA Naoki
96ed236c1d Merge branch '0.2-maint' 2012-09-23 11:22:13 +09:00