Commit graph

247 commits

Author SHA1 Message Date
INADA Naoki
c3da845868 Add docstring about raising ValueError when there are extra bytes. 2012-09-23 11:16:59 +09:00
INADA Naoki
48d693c1b9 Add test for .skip() 2012-09-23 10:09:51 +09:00
INADA Naoki
eaf9891b42 clean some cython code. 2012-09-23 10:00:18 +09:00
INADA Naoki
65f582345c Merge branch 'skip' of git://github.com/jnothman/msgpack-python into skip 2012-09-23 09:08:21 +09:00
INADA Naoki
8b2959bc0a pack and packb raises ValueError when extra data passed. 2012-09-23 03:39:14 +09:00
INADA Naoki
4d643894a1 Support packing subclass of dict. 2012-09-23 02:13:32 +09:00
Joel Nothman
032df6f2d9 Merge remote-tracking branch 'origin/master' into skip 2012-09-22 22:58:46 +10:00
Joel Nothman
28058fb53d A first implementation of Unpacker.skip() 2012-09-22 22:57:00 +10:00
jnothman
ffec10dff3 Expose packed stream with Unpacker.read_bytes()
At present, Unpacker buffers reading from the stream, meaning the stream can no longer be read directly. Unpacker.read_bytes(n) provides access to the underlying data, allowing content of known size to be read without unpacking.
2012-09-21 16:03:41 +10:00
INADA Naoki
5b66edaa15 0.2.2 (again) 2012-09-21 14:17:34 +09:00
INADA Naoki
51335bbee4 packb supports use_single_float option. 2012-09-21 14:15:30 +09:00
INADA Naoki
397d772e11 Rename use_float to use_single_float. 2012-09-21 14:08:34 +09:00
INADA Naoki
3b45a51d61 Merge branch 'master' of github.com:msgpack/msgpack-python 2012-09-21 13:59:35 +09:00
INADA Naoki
0297b36bda Fix reading more than read_size. 2012-09-21 13:58:56 +09:00
INADA Naoki
f14d926e1d Merge pull request #11 from TobiasSimon/float_ext
added float serialization support
2012-08-28 04:02:17 -07:00
INADA Naoki
235b928be7 Stop disable/enable gc.
json and pickle modules don't stop gc. It's a very dirty hack.
2012-08-24 09:53:18 +09:00
TobiasSimon
e63a943753 added float serialization support 2012-08-20 21:56:55 +02:00
INADA Naoki
f74ce3caaa 0.2.1 2012-08-20 00:11:38 +09:00
INADA Naoki
814c42c291 Change the way to manage version number. 2012-08-19 04:17:56 +09:00
INADA Naoki
59c8b51e5b Default value of read_size is min(1024**2, max_buffer_size) 2012-07-20 02:05:43 +09:00
INADA Naoki
53ca2bb648 raise ValueError when read_size > max_buffer_size. 2012-07-20 02:02:54 +09:00
INADA Naoki
7b1167044b Add max_buffer_size to Unpacker. 2012-07-13 21:28:16 +09:00
INADA Naoki
dd5b1e265a remove deprecated api. 2012-06-27 18:07:02 +09:00
INADA Naoki
ebe4c1f4bc manage to compile on windows
Use C++ compiler to build.
2012-06-26 17:27:29 +09: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
Steeve Morin
07506667c9 Make sure objects inherited from Dict are properly casted (or else Cython will complain and crash). 2012-06-16 13:56:46 +03:00
INADA Naoki
91a1abb737 Merge branch 'master' of github.com:msgpack/msgpack-python 2012-03-08 16:59:56 +09:00
INADA Naoki
64bdf6bcd6 small optimization. 2012-03-08 16:59:08 +09:00
Steeve Morin
a5bc6b7385 Better prototypes. 2012-02-28 15:41:44 +01:00
Steeve Morin
31b7fda17b Fix massive memory leak with object_hook and list_hook when unpacking. 2012-02-28 15:36:58 +01:00
Steeve Morin
5b878b6038 Be greedier when checking for tuples or lists. 2012-02-16 17:15:04 +01:00
David Wolever
b764169775 Correcting 'utf-8' to 'unicode'. 2012-02-10 15:08:49 -05:00
INADA Naoki
ac713705eb 0.1.12: re-enable packs()/unpacks() aliases. 2011-12-27 21:34:40 +09:00
INADA Naoki
b553754edf Fix compile error on MSVC. (davidgaleano) 2011-12-25 12:54:19 +09:00
INADA Naoki
d72bd0c5d4 Remove unnecessary semicolon. 2011-09-02 16:22:21 +09:00
INADA Naoki
938a124973 Use cython's embedsignature directive and enhance some docstrings. 2011-08-26 04:45:05 +09:00
INADA Naoki
5ed2288fed Add signature to docstring. 2011-08-22 03:41:24 +09:00
INADA Naoki
8361fd8da6 Remove extra alias. 2011-08-22 03:38:16 +09:00
tailhook
8c3c8a250b Fixed encoding argument for unpacker in Python 2011-08-22 01:52:45 +09:00
INADA Naoki
3ffc75928b Revert "(python) Change error message for unicode is passed but no encoding is"
This reverts commit bd73742552.
2011-05-31 15:40:11 +09:00
INADA Naoki
36b0c2de41 (python) Change error message for unicode is passed but no encoding is
specified.
2011-05-31 14:10:46 +09:00
tailhook
752e3d1b78 Implemented encoding for strings
* Packer by default uses `utf-8` encoding by default
* Unpacker uses `None` by default, so no decoding is done
* Both pack and unpack has `encoding` and `unicode_errors` arguments,
  if `encoding` is `None` no encoding/decoding is done, otherwise
  it is python codec. `unicode_errors` is supplied as `errors`
  parameter to codec
2011-04-15 18:39:17 +03:00
INADA Naoki
af7113bb31 python: Remove UnpackIterator. Unpacker is iterator of itself. 2011-01-30 10:45:39 +09:00
INADA Naoki
60d3ce3a18 python: Disable gc while deserializing. 2011-01-29 23:23:56 +09:00
INADA Naoki
3aaf5f5a7a python: Fix segmentation fault when default returns it's argument. 2011-01-29 23:22:41 +09:00
INADA Naoki
d0de96cacd python: refactoring. 2011-01-29 07:27:10 +09:00
INADA Naoki
77a97b9c16 Add use_list option to unpack and unpackb 2011-01-28 18:59:05 +09:00
INADA Naoki
b453385d92 python: Add memory error check. 2011-01-10 20:47:23 +09:00
INADA Naoki
47b0c273bb python: Check if (m|re)alloc's return value is NULL. (Thanks to Mateusz) 2011-01-10 05:07:07 +09:00