Wouter Bolsterlee
77046b839d
Always raise TypeError for wrong argument types
...
The code that checks whether hooks are callable() (and some other type
checks) should always raise TypeError on failure. Before this change,
both ValueError and TypeError were used in an inconsistent way (C
extension and Python implementation were not the same).
2014-02-11 20:42:58 +01:00
INADA Naoki
e3fee4db5f
fallback: support packing ExtType
2013-10-21 00:59:22 +09:00
INADA Naoki
aa68c9b833
fallback: Support pack_ext_type.
2013-10-20 15:40:20 +09:00
INADA Naoki
7123341ca8
code refactoring.
2013-10-20 14:34:36 +09:00
INADA Naoki
d9439204c7
Add ext type support to fallback.Unpacker.
2013-10-17 11:29:36 +09:00
INADA Naoki
85eaff344b
Add bin type support for fallback Unpacker.
2013-10-17 09:15:19 +09:00
INADA Naoki
84f6b10019
Add bin type support to pure Python packer.
2013-10-17 08:52:59 +09:00
INADA Naoki
171c538113
refactoring.
2013-10-17 08:44:25 +09:00
YAMAMOTO Takashi
56dbf7f9be
fix more comment typos
2013-05-07 13:56:39 +09:00
YAMAMOTO Takashi
0c3fecf91b
fix a typo in a comment
2013-05-01 12:15:12 +09:00
INADA Naoki
3ce005cf37
better packer docstring
2013-02-26 09:20:44 +09:00
INADA Naoki
1e38bfa123
fallback: refactor
2013-02-25 18:23:42 +09:00
INADA Naoki
38a9ad98c9
Revert skipping reserved byte.
2013-02-23 18:11:46 +09:00
INADA Naoki
f0fd90a759
Fix exception incompatibility.
2013-02-22 17:41:52 +09:00
INADA Naoki
d766820421
Fix easy bug.
2013-02-21 16:55:42 +09:00
INADA Naoki
9524033194
skip reserved byte.
2013-02-21 14:01:12 +09:00
Alex Gaynor
3f12846d40
On PyPy, preallocate lists
...
When deserealizing arrays, preallocate the resulting list at the correct size.
2013-02-16 12:08:14 -08:00
INADA Naoki
a865f8f7e9
Use _private names for non public data members. ( fix #44 )
2013-02-04 15:14:30 +09:00
INADA Naoki
22920baae6
Fix minor bugs and tuning unpacking dict.
2013-02-03 00:20:00 +09:00
INADA Naoki
8d6a387dff
fallback: Support Python 3.
2013-01-29 15:10:22 +09:00
INADA Naoki
328369e52e
pep8 friendly.
2013-01-29 14:33:37 +09:00
Bas Westerbaan
4cde7f080c
fallback: _fb_read: add fast-path
2013-01-29 03:46:07 +01:00
Bas Westerbaan
d91a0d3d68
Revert "fallback: Use mmap objects instead of strings to unpack"
...
See next commit.
This reverts commit 770fed6b7f
.
2013-01-29 03:45:17 +01:00
Bas Westerbaan
770fed6b7f
fallback: Use mmap objects instead of strings to unpack
...
Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
2013-01-29 03:44:44 +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
Bas Westerbaan
fb81f80d14
fallback: bugfix in next()
2013-01-29 02:47:41 +01:00
Bas Westerbaan
94925acb12
fallback: do not use dynamic format strings for struct.(un)pack
...
Increases performance on PyPy.
2013-01-29 02:15:29 +01:00
Bas Westerbaan
af9c9ca2c9
fallback: performance: write(a+b) -> write(a); write(b)
2013-01-29 02:01:34 +01:00
Bas Westerbaan
b940802032
fallback: two fixes for raising ExtraData
2013-01-28 22:29:23 +01:00
Bas Westerbaan
69ba3c9bf9
fallback: use __pypy__.builders.StringBuilder when available
...
This increases performance *a lot* on PyPy.
Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
2013-01-28 13:43:39 +01:00
Bas Westerbaan
6a28b28c63
Add pure Python fallback module
...
Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
2013-01-28 12:27:24 +01:00