Commit graph

830 commits

Author SHA1 Message Date
INADA Naoki
9d61f24387 Feed data from file before _unpack() 2014-02-13 03:10:51 +09:00
INADA Naoki
d2fc801034 Fix warning on 64bit environment. 2014-02-13 01:57:34 +09:00
INADA Naoki
f322ed4e1b Merge pull request #84 from wbolster/exception-type-cleanups
Always raise TypeError for wrong argument types
2014-02-13 01:19:33 +09:00
INADA Naoki
7973cce554 Merge pull request #85 from wbolster/fix-cython-warnings
Cosmetic changes to fix Cython warnings
2014-02-13 00:46:02 +09:00
Wouter Bolsterlee
dd65341e0d Cosmetic changes to fix Cython warnings
Put declarations on separate line to avoid warnings like this:

  Non-trivial type declarators in shared declaration (e.g. mix
  of pointers and values). Each pointer declaration should be
  on its own line.
2014-02-11 21:05:15 +01:00
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
Sergey Zhuravlev
48ca2d700d Added support of bytearrays to msgpack/fallback.py 2013-12-15 16:22:39 +00:00
INADA Naoki
d5436c2819 Update ChangeLog 2013-10-21 02:33:58 +09:00
INADA Naoki
f31a4403a1 Document update. 2013-10-21 01:47:54 +09:00
INADA Naoki
1d0096b998 0.4.0 2013-10-21 01:20:13 +09:00
INADA Naoki
e802abebf1 Merge pull request #79 from msgpack/newspec
[WIP] Newspec stage 2.
2013-10-20 09:18:50 -07:00
INADA Naoki
d84a403bc0 fix bugs. 2013-10-21 01:12:57 +09:00
INADA Naoki
e3fee4db5f fallback: support packing ExtType 2013-10-21 00:59:22 +09:00
INADA Naoki
37c2ad63af Add tests and bugfix. 2013-10-21 00:29:05 +09:00
INADA Naoki
cb78959678 Update README. 2013-10-21 00:01:47 +09:00
INADA Naoki
84dc99c894 Add ext_type example to README. 2013-10-20 23:27:32 +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
96bcd76f49 Packing ExtType and some cleanup 2013-10-20 20:28:32 +09:00
INADA Naoki
aa68c9b833 fallback: Support pack_ext_type. 2013-10-20 15:40:20 +09:00
INADA Naoki
ec0691fb2c Merge pull request #77 from msgpack/newspec
[WIP] Support new spec.
2013-10-19 23:11:34 -07: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
INADA Naoki
7123341ca8 code refactoring. 2013-10-20 14:34:36 +09:00
Antonio Cuni
6386481024 add a note in the README 2013-10-19 18:43:16 +02: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
Antonio Cuni
985d4c1496 add a test for unpacking extended types 2013-10-19 11:34:28 +02:00
Antonio Cuni
ff858387d3 implement unpack_one also for the cython version, and add a test for it 2013-10-19 01:49:03 +02:00
Antonio Cuni
a7485eccb2 add the hook for unknown types also to the cython Packer 2013-10-18 17:46:42 +02:00
Antonio Cuni
5467515065 implement Packer.pack_extended_type also in the cython version of the code 2013-10-18 17:33:54 +02:00
Antonio Cuni
afa28fb205 add support to unpack all ext formats 2013-10-18 15:54:12 +02:00
Antonio Cuni
c727440ba5 automatically find the best format to encode extended types 2013-10-18 15:45:50 +02:00
Antonio Cuni
522c4bfc79 slightly change to API 2013-10-18 15:03:58 +02:00
Antonio Cuni
5529dfe596 kill some duplicate code from unpack/unpackb and move the logic to Unpacker.unpack_one. By doing this we no longer need to make the module-level pack/unpack parametric on the class, because they contain no logic at all 2013-10-18 14:38:52 +02:00
INADA Naoki
d9439204c7 Add ext type support to fallback.Unpacker. 2013-10-17 11:29:36 +09:00
INADA Naoki
f162bf6f79 Add tests for str8 and bin types. 2013-10-17 09:37:20 +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
INADA Naoki
da12e177a3 Add bin type support. 2013-10-17 08:35:08 +09:00
Antonio Cuni
d61097511a add support for extended types: you can now pack/unpack custom python objects by subclassing Packer and Unpacker 2013-10-15 16:59:43 +02:00
INADA Naoki
f45d7b4e2d Merge pull request #72 from lgov/master
* msgpack/exceptions.py: Fix typo in error message.
2013-09-13 05:15:36 -07:00
Lieven Govaerts
12f87147b5 * msgpack/exceptions.py: Fix typo in error message. 2013-09-13 13:47:13 +02:00
INADA Naoki
2f6061cb4f Merge pull request #66 from yamt/fixes
some fixes and tests
2013-06-04 23:31:46 -07:00
YAMAMOTO Takashi
e250b89920 more tests 2013-06-03 13:54:00 +09:00
YAMAMOTO Takashi
d1b9ecbc8e fix long vs long long bugs
these bugs were introduced by "fix long/int confusions in pyx version of
unpack" commit.
2013-06-03 13:53:47 +09:00
YAMAMOTO Takashi
3dbb2d1e7e fix compilation errors 2013-06-03 13:53:43 +09:00
INADA Naoki
d4bb86c0c8 Merge pull request #65 from msgpack/old-buffer
Stop using new style buffer API.
2013-05-18 20:43:27 -07:00
INADA Naoki
956f55ecdf Stop using const_void_ptr typedef.
New Cython supports const natively.
2013-05-19 12:32:33 +09:00
INADA Naoki
bbe86e7a92 Revert "Use new buffer interface."
This reverts commit 085db7f8dc.

Conflicts:
	msgpack/_unpacker.pyx
2013-05-19 12:30:23 +09:00