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
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
9fdb83719d
Undeprecate unicode_errors ( #278 )
2018-02-05 02:19:48 +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
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
0112957bcf
Remove FutureWarning about use_bin_type option ( #271 )
2018-01-10 02:54:59 +09:00
INADA Naoki
d0d3a40389
Warn about future use_bin_type change ( #264 )
2018-01-06 02:07:39 +09:00
jfolz
f0f2c0b397
Packer accepts bytearray objects ( #229 )
2017-05-18 20:03:15 +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
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
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
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
INADA Naoki
ceb9635a3f
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-05-03 11:58:28 +09:00
INADA Naoki
6b113a6fb3
Use Python's memory API ( #185 )
2016-04-30 17:07:14 +09:00
palaviv
d44063119b
changed more ValueErrors to PackValueError
2016-02-12 15:36:48 +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
Sadayuki Furuhashi
83424bd7b3
Fix wrong 'dict is too large' on unicode string
2016-01-11 13:57:33 -08:00
INADA Naoki
628c519187
strict type check for ext type
2015-11-10 03:41:09 +09:00
INADA Naoki
9b673279d3
strict_types should be last argument
2015-11-10 03:37:54 +09:00
INADA Naoki
cbdf3c339a
s/precise_mode/strict_types/
2015-11-10 03:30:11 +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
INADA Naoki
a1317b604f
refactor
2015-11-09 02:34:17 +09:00
Pramukta Kumar
6f02d252e1
corresponding change to cython implementation
2015-03-17 15:16:17 -04:00
INADA Naoki
9624a2aca3
Fix build failuer for Python 2.7 on Windows.
...
Remove int8_t usage.
2015-01-07 12:10:42 +09:00
faerot
b877ce2afa
precise_mode instead of distinguish_tuple
...
When precise_mode flag is set, serialization will be as precise as
possible - type checks will be exact (type(..) is ... instead of
isinstance(..., ...) and tuple will be treated as undefined type. This
mode is to make accurate object serialization possible.
2014-05-22 16:45:26 +03:00
faerot
3b933f0966
added distinguish_tuple argument to Packer
...
This will make precise python types serialization possible.
2014-05-22 11:32:54 +03:00
INADA Naoki
ef5d93d4ea
Fix size limit on pack_array_header and pack_map_header.
2014-03-26 11:05:53 +09:00
INADA Naoki
c60ab28ee7
Add check for format limits.
2014-03-26 03:03:18 +09: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
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
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
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
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
YAMAMOTO Takashi
56dbf7f9be
fix more comment typos
2013-05-07 13:56:39 +09:00
INADA Naoki
0faa1bb558
Remove unnecessary type declaration.
2013-04-08 01:57:37 +09:00
INADA Naoki
3ce005cf37
better packer docstring
2013-02-26 09:20:44 +09:00
INADA Naoki
b79e5ba4e5
Split _msgpack.pyx
2012-12-11 22:15:21 +09:00
INADA Naoki
280d56eb9b
rename _msgpack.pyx => _packer.pyx
2012-12-11 22:05:00 +09:00