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
ebe4c1f4bc
manage to compile on windows
...
Use C++ compiler to build.
2012-06-26 17:27:29 +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
64bdf6bcd6
small optimization.
2012-03-08 16:59:08 +09: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
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
INADA Naoki
56aaed3641
python: Fix typo in docstring. (thanks to Mateusz.)
2011-01-10 05:05:14 +09:00
INADA Naoki
74e7ebea4f
python: Fix another segv.
2011-01-09 23:54:06 +09:00
INADA Naoki
ed3f3899c1
python: Fix segv on unpacking from stream.
2011-01-09 23:40:09 +09:00
INADA Naoki
569729c3c2
python: Make aliases for API compatibility to pickle.
...
``dumps`` is alias of ``packb`` and ``loads`` is alias of ``unpacks``.
2011-01-09 23:17:20 +09:00
INADA Naoki
a09c85ff9c
python: Support old buffer protocol when unpack. (experimental)
2010-11-03 03:11:00 +09:00
INADA Naoki
3d8978417a
Add list_hook option to unpacker.
2010-10-26 02:09:52 +09:00
INADA Naoki
0076d42a0d
Add check for recursion limit and default hook result.
2010-10-26 01:49:00 +09:00
INADA Naoki
3980d381f7
Remove unnecessary refcount manipulation.
2010-10-26 01:32:08 +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
INADA Naoki
9db35d8831
Use PyUnicode_AsUTF8String() instead of o.encode('utf-8').
2010-10-07 03:02:02 +09:00
INADA Naoki
039542ebcb
python: Add test for python3 and fix found problems.
2010-09-02 02:16:28 +09:00
INADA Naoki
1e8eeb8ebe
python: Fix Unpacker.feed doesn't accept bytes on Python3.
2010-09-02 02:02:47 +09:00
INADA Naoki
0dc8938dbf
python: Support Python3.
2010-09-02 01:29:57 +09:00
Keiji Muraishi
a50a83f073
should raise TypeError on find unsupported value
2010-03-31 17:29:07 +09:00
inada-n
658c90f132
Make tuple default.
2009-12-17 15:19:18 +09:00
Naoki INADA
77e3e59620
Add use_tuple
option that returns tuple for array object to Unpacker.
2009-12-17 11:13:47 +09:00
inada-n
bb93f093b6
Fix bug come from previous commit
2009-12-16 22:14:13 +09:00
inada-n
35a4d612c9
Fix stream unpacker broken.
2009-12-16 22:05:31 +09:00
inada-n
dc4e20ed35
Fix: Unpacker.unpack() may raise StopIteration before unpacking large object when deserializing from file.
2009-07-13 15:49:38 +09:00
Naoki INADA
2d885ad22a
Release 0.1.0
2009-07-12 20:02:21 +09:00
Naoki INADA
e963ad55d2
Clean up
2009-07-12 09:29:11 +09:00
Naoki INADA
2f09551573
Fix memory leak. Remove stream packing feature. Add errorcheck in packing.
2009-07-01 20:55:24 +09:00
Naoki INADA
17cbfa66ae
Major speedup on packing.
2009-07-01 00:57:46 +09:00
Naoki INADA
f7b3ef18b0
Some optimization on packing.
2009-06-30 23:03:33 +09:00
Naoki INADA
f46498bcdf
Fix error on packing unsigned long long.
2009-06-29 10:09:04 +09:00
Naoki INADA
3a6f6626eb
Refactor packing code.
2009-06-29 08:23:49 +09:00
Naoki INADA
1374bce15f
Ues more suitable type when packing.
2009-06-28 21:24:02 +09:00
Naoki INADA
1781092bd8
Implement streaming deserializer.
2009-06-26 14:10:20 +09:00