Commit graph

74 commits

Author SHA1 Message Date
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
985d4c1496 add a test for unpacking extended types 2013-10-19 11:34:28 +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
Antonio Cuni
5467515065 implement Packer.pack_extended_type also in the cython version of the code 2013-10-18 17:33:54 +02:00
Antonio Cuni
c727440ba5 automatically find the best format to encode extended types 2013-10-18 15:45:50 +02:00
Antonio Cuni
522c4bfc79 slightly change to API 2013-10-18 15:03:58 +02:00
Antonio Cuni
5529dfe596 kill some duplicate code from unpack/unpackb and move the logic to Unpacker.unpack_one. By doing this we no longer need to make the module-level pack/unpack parametric on the class, because they contain no logic at all 2013-10-18 14:38:52 +02:00
INADA Naoki
f162bf6f79 Add tests for str8 and bin types. 2013-10-17 09:37:20 +09:00
Antonio Cuni
d61097511a add support for extended types: you can now pack/unpack custom python objects by subclassing Packer and Unpacker 2013-10-15 16:59:43 +02:00
YAMAMOTO Takashi
e250b89920 more tests 2013-06-03 13:54:00 +09:00
INADA Naoki
a6859791a2 Revert "Skip reserved byte"
This reverts commit ff3342aeed.
2013-02-23 18:01:43 +09:00
INADA Naoki
5c51203d14 Revert "Fix test for Python 3."
This reverts commit 43dd224d52.
2013-02-23 18:00:54 +09:00
INADA Naoki
43dd224d52 Fix test for Python 3. 2013-02-21 16:04:58 +09:00
INADA Naoki
ff3342aeed Skip reserved byte 2013-02-21 16:02:33 +09:00
INADA Naoki
22920baae6 Fix minor bugs and tuning unpacking dict. 2013-02-03 00:20:00 +09:00
Bas Westerbaan
b9e9199eea fallback: python3 bugfix for new testcase of d2f549a4
Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
2013-01-29 03:03:13 +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
INADA Naoki
593c832ab0 Use py.test instead of nosetests. 2012-12-29 11:24:25 +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
72416e403c Fix unpacker doesn't raise exception for invalid input. 2012-12-29 01:39:59 +09:00
INADA Naoki
d796d696d1 revert unwanted changes. 2012-12-22 13:09:35 +09:00
INADA Naoki
833b85f173 Merge branch '0.2-maint' (fix #39) 2012-12-22 13:08:46 +09:00
INADA Naoki
0fa8c102d7 Add test reproducing SEGV 2012-12-22 12:12:32 +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
219d47503c Split exceptions. 2012-12-10 00:31:19 +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
6b78223231 Fix test failuar. 2012-12-06 19:15:04 +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
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
4ea952f39d Added unit-test for issue https://github.com/msgpack/msgpack-python/issues/28 2012-10-12 12:34:18 +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
d5f99959cc Fix some test failure. 2012-10-01 01:34:58 +09: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
INADA Naoki
477d3b152f Fix warnings. 2012-09-24 03:08:13 +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
c280e58988 Fix warnings in tests. 2012-09-24 02:39:02 +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
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
INADA Naoki
48d693c1b9 Add test for .skip() 2012-09-23 10:09:51 +09:00
INADA Naoki
4d643894a1 Support packing subclass of dict. 2012-09-23 02:13:32 +09:00
INADA Naoki
51335bbee4 packb supports use_single_float option. 2012-09-21 14:15:30 +09:00
INADA Naoki
e5462ff72f Add test for max_buffer_size. 2012-07-20 02:02:37 +09:00