Inada Naoki
bbdfd4d92e
cleanup
2018-11-30 16:28:41 +09:00
Inada Naoki
8ae6320072
Fix fallback
2018-11-30 11:42:51 +09:00
Inada Naoki
dc1b993079
Implement strict_map_key to fallback unpacker.
2018-11-29 22:35:12 +09:00
INADA Naoki
44254dd35e
Add StackError and FormatError ( #331 )
2018-11-20 13:12:49 +09:00
INADA Naoki
2b5f59166b
fallback: Fix warning stacklevel ( #327 )
2018-11-14 16:34:51 +09:00
INADA Naoki
39f8aa78c7
Remove deprecated write_bytes option ( #322 )
2018-11-12 02:33:31 +09:00
INADA Naoki
07f0beeabb
Remove deprecated exception classes ( #323 )
2018-11-12 02:19:01 +09:00
INADA Naoki
1bf62ba6f8
PendingDeprecationWarning -> DeprecationWarning ( #321 )
2018-11-09 21:39:25 +09:00
INADA Naoki
9e210bfc1a
Add Packer.buffer() ( #320 )
2018-11-09 20:55:13 +09:00
INADA Naoki
3b80233592
unpacker: Make default size limit smaller ( #319 )
...
To avoid DoS attack, make default size limit smaller.
Fixes #295
2018-11-08 22:21:44 +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
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
9455fccc52
Revert "Move unpack() from each implementation to __init__. ( #286 )"
...
This reverts commit da902f9c1d
.
2018-02-23 11:32:26 +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
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
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
43137d6bd2
Deprecate write_bytes option in Unpacker. ( #262 )
...
Fixes #197
2018-01-05 20:19:04 +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
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
folz
5860af953a
refactor header packing for str and bin types
2016-05-04 11:01:27 +02:00
folz
0ec2e3534f
fix problems associated with packing memoryviews
...
fix wrong length when packing multibyte memoryviews in fallback
add tests for memoryviews of different types and sizes and check contents of packed data
2016-05-03 16:55:14 +02:00
palaviv
7d2d46effc
msgpack pack and unpack throws only exception that inherit from MsgpackBaseException. cython and fallback throws same exceptions
2016-02-12 11:00:39 +02:00
folz
31adc5a3c0
Support packing memoryview objects
2016-01-25 13:25:10 +01:00
INADA Naoki
8036cb4e0e
Merge pull request #158 from methane/feature/strict-typecheck
...
Packer: check type strictly
2016-01-25 11:37:07 +09:00
INADA Naoki
b6e962d0a6
Merge pull request #163 from ThomasWaldmann/master
...
fix typos
2015-12-10 17:42:15 +09:00
Thomas Waldmann
9c6584ee10
fix typos
2015-12-09 13:53:42 +01:00
INADA Naoki
9b673279d3
strict_types should be last argument
2015-11-10 03:37:54 +09:00
INADA Naoki
1032ef9bf2
fallback unpacker: precise => strict
2015-11-10 03:33:50 +09:00
INADA Naoki
e9a47cbd35
Merge branch 'master' of https://github.com/faerot/msgpack-python into pramukta-default_function_on_int_overflow
2015-11-10 01:52:52 +09:00
Pramukta Kumar
10cd2d2ebf
calling the default function upon integer overflow in the fallback routine
2015-03-17 15:05:04 -04:00
INADA Naoki
4576b94b6c
fallback: Add some comment to Unpacker members.
2015-01-27 14:04:32 +09:00
Bas Westerbaan
a71a24d86a
Fix #124
...
When using Unpacker as an iterator, after each yield, the internal
buffer (_fb_buffer) was compacted by reallocation (done by _fb_consume).
When dealing with a lot of small objects, this is very ineffecient.
Thus in commit 7eb371f827
the pure python
fallback only reallocated the complete buffer when the iteration stops.
When halfway there happens to be data missing in the buffer, we rollback
the buffer to the state before this failed call, and raise an OutOfData.
This rollback, done by _fb_rollback, did not consider the possibility
that the buffer was *not* reallocated. This commit corrects that.
2015-01-26 20:34:31 +01:00
INADA Naoki
75ce78dd15
Add max_<type>_len option to unpacker. ( fixes #97 ).
...
Fix build error on 32bit environment (fixes #102 ).
2015-01-25 01:41:21 +09:00
Xiaojie Lin
d5e9ac9316
add support for pypy3
2014-11-14 14:47:54 +11:00
Bas Westerbaan
0532ea87fb
fallback: fix BufferFull with sloppy consume
2014-06-15 22:45:30 +02:00