summaryrefslogtreecommitdiff
path: root/simplejson/_speedups.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a compile error on 2.x. Closes #193.speedups-compile-error-2.7Serhiy Storchaka2017-11-241-1/+1
|
* Merge pull request #191 from simplejson/type-error-messagesBob Ippolito2017-11-231-1/+3
|\ | | | | Make TypeError messages contain type name instead of a repr.
| * Make TypeError messages contain type name instead of a repr.Serhiy Storchaka2017-11-101-1/+3
| | | | | | | | | | | | The failure depends on the type, not on the value of an object. This combines CPython's issues 26623 and 24641.
* | Merge pull request #188 from simplejson/bpo-31505Bob Ippolito2017-11-201-3/+18
|\ \ | |/ |/| bpo-31505: Fix an assertion failure in json, in case _json.make_encoder() received a bad encoder() argument.
| * bpo-31505: Fix an assertion failure in json, in case _json.make_encoder() ↵Serhiy Storchaka2017-11-061-3/+18
| | | | | | | | | | | | received a bad encoder() argument. Original patch by Oren Milman.
* | bpo-31095: fix potential crash during GC (#187)Serhiy Storchaka2017-11-061-2/+4
| | | | | | Original patch by INADA Naoki.
* | Fix a reference leak when sort keys. (#186)Serhiy Storchaka2017-11-061-2/+5
|/
* Fix #184 threaded import issue, prep v3.12.0v3.12.0Bob Ippolito2017-11-051-21/+21
|
* Fix #173 with item_sort_key and add auto-discovery to test suiteBob Ippolito2017-06-191-11/+11
|
* Merge pull request #170 from simplejson/strict-to-boolBob Ippolito2017-06-081-24/+14
|\ | | | | Call PyObject_IsTrue() only once for the strict argument of scanner.
| * Call PyObject_IsTrue() only once for the strict argument of scanner.strict-to-boolSerhiy Storchaka2017-05-211-24/+14
| |
* | Fix a crash wish unencodable encoding in the encoder.unencodable-encoder-encodingSerhiy Storchaka2017-05-211-1/+6
|/ | | | | JSONEncoder.encode() crashed in Python 3 when encoded bytes keys if the encoding was not encodable to utf-8 (contained surrogates).
* Added missed ";" in Python 2 only code.Serhiy Storchaka2017-05-211-1/+1
|
* Merge pull request #168 from simplejson/no-py2.4Bob Ippolito2017-05-201-13/+0
|\ | | | | Remove remnants of Python 2.4 support.
| * Remofe remnants of Python 2.4 support.no-py2.4Serhiy Storchaka2017-05-081-13/+0
| | | | | | | | Clean up the code by removing workarounds for supporting Python 2.4.
* | Fix argument checking errors in _speedups.c.Serhiy Storchaka2017-05-121-34/+69
| | | | | | | | | | | | | | Always check PyObject_IsTrue() for error. Also fix integer overflow in the int_as_string_bitcount argument. Fixes #167.
* | Don't set tp_new to PyType_GenericNew.remove-init-methodsSerhiy Storchaka2017-05-081-2/+0
| |
* | Remove the `__init__` methods in extension classes.Serhiy Storchaka2017-05-071-76/+31
|/ | | | | | | Calling the `__init__` methods repeatedly causes memory leaks. Not calling the `__init__` methods causes a core dump. Fixes #165. Ported from https://bugs.python.org/issue30243.
* Add support for preprocessed JSON strings (with optimizations) in encoderKevin LaFlamme2016-09-011-0/+22
| | | | In some situations, you may have a large python dictionary you need to JSONify but one of the values inside the dict is already a JSON string. This is common when pulling an object from a database, for example, where one of the fields is a JSON blob/string. Previously you would have to deserialize and then reserialize that string just to serialize the high level object, but obviously this is unnecessarily slow. This changes adds a method/type that can be used to wrap a str and tell the serializer to just pass it through instead.
* v3.8.2 - fix compiler warning, automated wheel builds for Windows and Macv3.8.2wheelsBob Ippolito2016-02-151-1/+1
|
* removed from _speedups.c forgotten "iterable_as_array" without comma after ↵Costy Petrisor2015-09-031-1/+0
| | | | string
* clean up iterable_as_array for 3.8.0v3.8.0Bob Ippolito2015-07-181-1/+2
|
* Merge branch 'master' into iterable_as_array-gh1Nick Babcock2015-07-101-502/+1205
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: CHANGES.txt conf.py index.rst setup.py simplejson/__init__.py simplejson/_speedups.c simplejson/encoder.py simplejson/tests/test_tuple.py
| * Fix msvc error C2275: 'PyObject' : illegal use of this type as an expressionChristoph Gohlke2015-05-181-2/+4
| |
| * no longer trust custom repr for int/long/float subclasses #118v3.7.0Bob Ippolito2015-05-181-4/+43
| |
| * Fix memory leak when an error occurs encoding dict itemsKeith Bussell2014-10-231-0/+1
| |
| * Fix lower bound checking in scan_once / raw_decode API #98v3.5.3Bob Ippolito2014-06-241-2/+2
| |
| * fix build for VS 2008Gabi Davar2014-05-231-1/+1
| |
| * detabv3.5.0Bob Ippolito2014-05-211-101/+101
| |
| * clean up #96 and prep for v3.5.0 releaseBob Ippolito2014-05-211-19/+22
| |
| * Merge pull request #96 from coldeasy/int_as_string_bitcountBob Ippolito2014-05-201-36/+74
| |\ | | | | | | Adding `int_as_string_bitcount` option
| | * Allocate int_as_string bounds once per encoderColin Deasy2014-05-201-31/+36
| | |
| | * Adding `int_as_string_bitcount` optionColin Deasy2014-05-141-22/+55
| | |
| * | fix arg check for item_sort_keyBob Ippolito2014-05-201-1/+3
| |/
| * pass-through in decoder for lone surrogates #62v3.3.0surrogate-62baserock/morphBob Ippolito2013-05-071-57/+41
| |
| * ignore_nan #63ecma-262-63Bob Ippolito2013-05-011-12/+23
| |
| * make argument order for c_make_encoder match make_iterencodeBob Ippolito2013-05-011-2/+2
| |
| * Implement for_json kwarg; pure Python version; add tests; update documentation.shakefu2013-04-171-5/+7
| |
| * Initial stab at for_json hook for C extension.shakefu2013-04-171-0/+27
| |
| * improve truncated input error messages, use JSONDecodeError instead of ↵Bob Ippolito2013-02-211-66/+115
| | | | | | | | StopIteration (#61)
| * Fix a Python 2.x compiler warning for narrow unicode builds (#56)v3.0.8Bob Ippolito2013-02-191-3/+5
| |
| * Fix msvc10 compile error under Python 3.3Christoph Gohlke2013-01-011-1/+1
| |
| * bump to 3.0.3, fix bugsv3.0.3Bob Ippolito2013-01-011-35/+41
| |
| * Revert "Revert "Merge pull request #46 from cgohlke/patch-1""Bob Ippolito2013-01-011-3/+6
| | | | | | | | This reverts commit 4d6b86059c981d1a275c803ecc91f511980b0af0.
| * Revert "Merge pull request #46 from cgohlke/patch-1"Bob Ippolito2013-01-011-6/+3
| | | | | | | | | | This reverts commit 1aa8819498321dbfc601ff8a304d0c8a901f76da, reversing changes made to ed84084a51367a4731f80794b062f54365ac9c59.
| * Fixes for Visual C compilersChristoph Gohlke2013-01-011-3/+6
| |
| * bump to 3.0.2, fix Py_EnterRecusiveCall/Py_LeaveRecursiveCall balance from 3.0.1v3.0.2Bob Ippolito2013-01-011-4/+12
| |
| * _Py_Accu style encoder optimization, bump to 3.0.1v3.0.1Bob Ippolito2013-01-011-36/+157
| |
| * clean up skipkeys/stringification in C APIBob Ippolito2012-12-301-86/+105
| |
| * more coverage, decimal key coercionBob Ippolito2012-12-291-0/+5
| |