Commit graph

378 commits

Author SHA1 Message Date
INADA Naoki
f6f9597249 Merge extension module
There were `_packer.so` and `_unpacker.so`.
But single module is simpler than double module.

Merge extension module into single `_msgpack.so`.
2018-11-08 20:27:35 +09:00
INADA Naoki
205f7d39b2
Start 0.6 development 2018-10-03 21:06:20 +09:00
Raymond E Ferguson
70b5f21b34 Alternate fixes for jython and legacy CPython (#310)
Python 3.4 is not supported officially.
But keep running test for a while, to know when msgpack-python
stop working on Python 3.4 actually.

The current patches did not work under jython-2.7.1 where implicit
casting of buffer or memoryview doesn't work. It may also be the
jython is a little pickier about string casting non string bytes
due to the underlying strong typing of java.

See issues #303 & #304.
2018-10-02 20:20:06 +09:00
Inada Naoki
5f684aed82 fallback: Fix error on Jython
Fixes #303
2018-06-27 01:27:31 +09:00
Alex Gaynor
b10cf78f54 Fix TypeError in fallback.unpack() on <Python 2.7.6 2018-04-16 12:18:35 +09:00
INADA Naoki
d4675bee6c 0.5.6 2018-02-23 15:45:34 +09:00
INADA Naoki
ae3a6ba0b0
Deprecate implementation module's unpack() (#290) 2018-02-23 15:41:21 +09:00
INADA Naoki
f38c1a3674
Fix Unpacker.feed() drops unused data in buffer. (#289)
Fixes #287
2018-02-23 11:52:48 +09:00
INADA Naoki
fbaa1360be Fix #285 again 2018-02-23 11:35:09 +09:00
INADA Naoki
3ca8eff31d
Revert "Move unpack() from each implementation to __init__." (#288)
This reverts commit da902f9c1d.
2018-02-23 11:33:26 +09:00
INADA Naoki
9455fccc52 Revert "Move unpack() from each implementation to __init__. (#286)"
This reverts commit da902f9c1d.
2018-02-23 11:32:26 +09:00
INADA Naoki
02c881c7cb 0.5.5 2018-02-22 17:56:57 +09:00
INADA Naoki
da902f9c1d
Move unpack() from each implementation to __init__. (#286)
Fixes #285
2018-02-22 00:55:32 +09:00
INADA Naoki
ae8d469482
Fix memory leak in pure Python Unpacker.feed() (#284)
fixes #283
2018-02-16 16:35:22 +09:00
INADA Naoki
2644cbdcb7
Use cython's cast for converting encoding and errors (#279)
It is little faster on Python 3 because we can skip temporary bytes object
2018-02-05 11:44:17 +09:00
INADA Naoki
351023946f 0.5.4 2018-02-05 02:25:12 +09:00
INADA Naoki
9fdb83719d
Undeprecate unicode_errors (#278) 2018-02-05 02:19:48 +09:00
INADA Naoki
618b2cb027 0.5.3 2018-02-03 10:54:21 +09:00
Andrew Rabert
a0ba076c35 Fix encoding and unicode_errors (#277)
Previously, unicode_errors was either set to NULL or to
the result of PyBytes_AsString. This restores that behavior while also
keeping the existing NULL default behavior.
Original defaults were restored to keep API compatibility until these
deprecated options are finally removed.
2018-02-03 10:34:42 +09:00
INADA Naoki
52fb85a2c5 0.5.2 2018-02-02 19:43:42 +09:00
INADA Naoki
5569a4efcd
s/raw_as_bytes/raw/g (#276)
fixes #273
2018-01-12 19:22:36 +09:00
INADA Naoki
d9ec8fc905
Packer.pack() reset buffer on exception (#274)
fixes #210
2018-01-11 23:50:41 +09:00
INADA Naoki
60ef3879d7
packer: Use PyUnicode_AsUTF8AndSize() for utf-8 (#272) 2018-01-11 19:41:05 +09:00
INADA Naoki
5534d0c7af
Add raw_as_bytes option to Unpacker. (#265) 2018-01-11 17:02:41 +09:00
INADA Naoki
fc09da997c fallback: Update docstring. 2018-01-10 02:58:55 +09:00
INADA Naoki
0112957bcf
Remove FutureWarning about use_bin_type option (#271) 2018-01-10 02:54:59 +09:00
INADA Naoki
d720c42468 prepare 0.5 2018-01-07 01:58:01 +09:00
INADA Naoki
d0d3a40389
Warn about future use_bin_type change (#264) 2018-01-06 02:07:39 +09:00
INADA Naoki
1979722ba2
Raise MemoryError when failed to grow buffer (#263) 2018-01-05 20:58:14 +09:00
INADA Naoki
43137d6bd2
Deprecate write_bytes option in Unpacker. (#262)
Fixes #197
2018-01-05 20:19:04 +09:00
INADA Naoki
99341035f2
fix zero length raw can't be decoded. (#236)
fix #234
2017-12-21 20:46:14 +09:00
Lorenzo Bolla
deeda31a88 Add unittests to document serialisation of tuples (#246)
Also, fix formatting of error message in case of tuple.
See https://github.com/msgpack/msgpack-python/issues/245
2017-09-30 16:23:55 +09:00
jfolz
f0f2c0b397 Packer accepts bytearray objects (#229) 2017-05-18 20:03:15 +09:00
jfolz
a8d9162ca6 Unpacker: add tell() (#227) 2017-04-30 02:33:20 +09:00
INADA Naoki
2481c64cf1 Merge branch 'release-0.4' 2017-01-12 18:17:00 +09:00
TW
e3fea94509 fix typos and other cosmetic issues (#214)
cosmetic issues:
- reST headlines' underline length needs to match the headline length
  (looks like somebody is / was using a proportional font)
- Cython code lines do not need to be terminated with a semicolon
- always use triple-double-quotes for docstrings
2017-01-11 12:04:23 +09:00
INADA Naoki
1cc3c574a2 Merge branch 'release-0.4' 2016-07-30 11:38:00 +09:00
INADA Naoki
ff208ad7d0 0.4.8 2016-07-29 22:25:05 +09:00
INADA Naoki
83e7b0aeac Merge branch 'release-0.4' 2016-07-21 19:33:49 +09:00
INADA Naoki
b911b3c652 Fix ext_hook call (#203)
fixes #202
2016-07-21 19:32:00 +09:00
INADA Naoki
d6254abc8a Use AppVeyor to build windows wheel (#188)
* Add AppVeyor support to build windows wheel
* Fix test_limits on 32bit environments
* Ignore Python35-x64 test fail for now
  Should be fixed in next version.
2016-07-21 19:18:48 +09:00
folz
2b63e9fbbb enable unpacking from memoryview 2016-06-13 15:37:33 +02:00
INADA Naoki
c16a1c6bdf fallback: Use bytearray as buffer 2016-05-24 07:32:30 +09:00
INADA Naoki
6b8919355d fallback: Use struct.unpack_from when possible 2016-05-24 02:46:29 +09:00
INADA Naoki
e9c42fa523 fallback: simplify write_bytes callback implementation 2016-05-22 13:31:01 +09:00
INADA Naoki
3322a76989 Remove _fb_ prefix 2016-05-22 11:08:20 +09:00
INADA Naoki
f421f59a28 fallback: Rewrite buffer from array of bytes to bytearray 2016-05-20 21:56:10 +09:00
INADA Naoki
c6c4e59f4c s/realloc/PyMem_Realloc/ (#193) 2016-05-08 16:31:52 +09:00
INADA Naoki
a5c8bafad4 Remove unused import (#190) 2016-05-05 02:46:10 +09:00
INADA Naoki
63e23d37f9 travis: Use docker to test 32bit environment (#189)
* travis: testing matrix.include feature to use docker
* Add test script for 32bit
* Fix OverflowError in 32bit Environment
2016-05-05 02:07:46 +09:00