INADA Naoki
bd73742552
(python) Change error message for unicode is passed but no encoding is
...
specified.
2011-05-31 14:10:46 +09:00
tailhook
8cb5ccad99
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
182624895f
python: Remove UnpackIterator. Unpacker is iterator of itself.
2011-01-30 10:45:39 +09:00
INADA Naoki
548de3739c
python: Disable gc while deserializing.
2011-01-29 23:23:56 +09:00
INADA Naoki
718a3efd64
python: Fix segmentation fault when default returns it's argument.
2011-01-29 23:22:41 +09:00
INADA Naoki
9c9b2c25ea
python: refactoring.
2011-01-29 07:27:10 +09:00
INADA Naoki
e89cd81022
Add use_list option to unpack and unpackb
2011-01-28 18:59:05 +09:00
INADA Naoki
fe26df5355
python: Add memory error check.
2011-01-10 20:47:23 +09:00
INADA Naoki
85778494e4
python: Check if (m|re)alloc's return value is NULL. (Thanks to Mateusz)
2011-01-10 05:07:07 +09:00
INADA Naoki
a94ce3c715
python: Fix typo in docstring. (thanks to Mateusz.)
2011-01-10 05:05:14 +09:00
INADA Naoki
3e2bd25e4e
python: Fix another segv.
2011-01-09 23:54:06 +09:00
INADA Naoki
ffd0c2f624
python: Fix segv on unpacking from stream.
2011-01-09 23:40:09 +09:00
INADA Naoki
5a12ab98c4
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
4688252bd4
python: Support old buffer protocol when unpack. (experimental)
2010-11-03 03:11:00 +09:00
INADA Naoki
e1711ffcf2
Add list_hook option to unpacker.
2010-10-26 02:09:52 +09:00
INADA Naoki
063d51c662
Add check for recursion limit and default hook result.
2010-10-26 01:49:00 +09:00
INADA Naoki
d8e3575a46
Remove unnecessary refcount manipulation.
2010-10-26 01:32:08 +09:00
INADA Naoki
70982e204c
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
90da951a6f
Use PyUnicode_AsUTF8String() instead of o.encode('utf-8').
2010-10-07 03:02:02 +09:00
INADA Naoki
8d0d2bd3fc
python: Add test for python3 and fix found problems.
2010-09-02 02:16:28 +09:00
INADA Naoki
2146f5f623
python: Fix Unpacker.feed doesn't accept bytes on Python3.
2010-09-02 02:02:47 +09:00
INADA Naoki
4a15d8b6d2
python: Support Python3.
2010-09-02 01:29:57 +09:00
Keiji Muraishi
6c6df1adaf
should raise TypeError on find unsupported value
2010-03-31 17:29:07 +09:00
inada-n
b9f78821d4
Make tuple default.
2009-12-17 15:19:18 +09:00
Naoki INADA
f4c5b15cc6
Add use_tuple option that returns tuple for array object to Unpacker.
2009-12-17 11:13:47 +09:00
inada-n
5ff2c6be74
Fix bug come from previous commit
2009-12-16 22:14:13 +09:00
inada-n
dd18402737
Fix stream unpacker broken.
2009-12-16 22:05:31 +09:00
inada-n
0db5e0439d
Fix: Unpacker.unpack() may raise StopIteration before unpacking large object when deserializing from file.
2009-07-13 15:49:38 +09:00
Naoki INADA
e5c49dae13
Release 0.1.0
2009-07-12 20:02:21 +09:00
Naoki INADA
900785e1aa
Clean up
2009-07-12 09:29:11 +09:00
Naoki INADA
78db826a75
Fix memory leak. Remove stream packing feature. Add errorcheck in packing.
2009-07-01 20:55:24 +09:00
Naoki INADA
03942a1b90
Major speedup on packing.
2009-07-01 00:57:46 +09:00
Naoki INADA
d4317fdc85
Some optimization on packing.
2009-06-30 23:03:33 +09:00
Naoki INADA
9015bd4ecf
Fix error on packing unsigned long long.
2009-06-29 10:09:04 +09:00
Naoki INADA
257270c1eb
Refactor packing code.
2009-06-29 08:23:49 +09:00
Naoki INADA
1b07b61c04
Ues more suitable type when packing.
2009-06-28 21:24:02 +09:00
Naoki INADA
3c3df3133c
Implement streaming deserializer.
2009-06-26 14:10:20 +09:00
Naoki INADA
9a77ab57f6
merge document fix.
2009-06-22 14:55:46 +09:00
Naoki INADA
20a7ff0be8
Make msgpack package instead of module. and using Cython in setup script.
2009-06-22 14:38:36 +09:00
Naoki INADA
e814986b4e
Fix document miss.
2009-06-10 13:33:42 +09:00
Naoki INADA
3a9f74e79c
Make msgpack package instead of module.
2009-06-10 10:58:09 +09:00