Commit graph

37 commits

Author SHA1 Message Date
Victor Stinner
849c806381
Use PyFloat_Pack8() on Python 3.11a7 (#499)
Python 3.11a7 adds public functions:

* PyFloat_Pack4(), PyFloat_Pack8()
* PyFloat_Unpack4(), PyFloat_Unpack8()

https://bugs.python.org/issue46906
2022-03-14 11:23:11 +09:00
INADA Naoki
f46523b1af
use _PyFloat APIs to (de)serialize (#340) 2019-01-07 21:10:40 +09:00
INADA Naoki
44254dd35e
Add StackError and FormatError (#331) 2018-11-20 13:12:49 +09:00
INADA Naoki
99341035f2
fix zero length raw can't be decoded. (#236)
fix #234
2017-12-21 20:46:14 +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
INADA Naoki
0d5c58bd51 cleanup 2013-10-20 23:06:02 +09:00
INADA Naoki
822cce823c Support unpacking new types. 2013-10-20 22:59:27 +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
c9b97f0788 implement unpacking of ext 8,16,32 2013-10-19 18:04:30 +02:00
Antonio Cuni
56dd1650a4 implement unpacking for all the fixtext formats 2013-10-19 17:27:16 +02:00
INADA Naoki
da12e177a3 Add bin type support. 2013-10-17 08:35:08 +09:00
INADA Naoki
c9b6e5b65d s/\t/ /g 2013-02-27 21:24:25 +09:00
INADA Naoki
c49489cd37 remove some macros. 2013-02-27 21:12:20 +09:00
INADA Naoki
38a9ad98c9 Revert skipping reserved byte. 2013-02-23 18:11:46 +09:00
INADA Naoki
a6859791a2 Revert "Skip reserved byte"
This reverts commit ff3342aeed.
2013-02-23 18:01:43 +09:00
INADA Naoki
ff3342aeed Skip reserved byte 2013-02-21 16:02:33 +09:00
INADA Naoki
9524033194 skip reserved byte. 2013-02-21 14:01:12 +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
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
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
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
Joel Nothman
77942514db Implement object_pairs_hook 2012-09-23 19:37:28 +10:00
INADA Naoki
eaf9891b42 clean some cython code. 2012-09-23 10:00:18 +09:00
Joel Nothman
28058fb53d A first implementation of Unpacker.skip() 2012-09-22 22:57:00 +10:00
INADA Naoki
188da01777 Fix new version of msgpack. 2012-06-26 15:19:59 +09:00
INADA Naoki
812c8bcff4 Update msgpack version. 2012-06-26 13:21:10 +09:00
INADA Naoki
b553754edf Fix compile error on MSVC. (davidgaleano) 2011-12-25 12:54:19 +09:00
INADA Naoki
3d8978417a Add list_hook option to unpacker. 2010-10-26 02:09:52 +09:00
INADA Naoki
fa157082ac Add object_hook option to unpack and default option to pack.
(see simplejson for how to use).
2010-10-26 01:26:06 +09:00
Naoki INADA
af7c4d2a60 Update new headers. 2009-12-17 10:43:22 +09:00
Naoki INADA
de6afa5285 Reduce memory footprint. 2009-06-24 01:54:47 +09:00
Naoki INADA
d32b48f98f Remove duplicated values. 2009-06-24 01:38:48 +09:00