Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix a crash wish unencodable encoding in the encoder.unencodable-encoder-encoding | Serhiy Storchaka | 2017-05-21 | 2 | -2/+15 |
| | | | | | JSONEncoder.encode() crashed in Python 3 when encoded bytes keys if the encoding was not encodable to utf-8 (contained surrogates). | ||||
* | Make test_speedups compatible with Python 2.5 and 2.6. | Serhiy Storchaka | 2017-05-21 | 1 | -37/+25 |
| | |||||
* | Make test_speedups compatible with Python 2.5. | Serhiy Storchaka | 2017-05-21 | 1 | -0/+2 |
| | |||||
* | Added missed ";" in Python 2 only code. | Serhiy Storchaka | 2017-05-21 | 1 | -1/+1 |
| | |||||
* | Merge pull request #162 from chrisgavin/unused-imports | Bob Ippolito | 2017-05-20 | 1 | -1/+1 |
|\ | | | | | Remove unused imports. | ||||
| * | Remove unused imports. | Chris Gavin | 2017-04-24 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #168 from simplejson/no-py2.4 | Bob Ippolito | 2017-05-20 | 3 | -35/+2 |
|\ \ | | | | | | | Remove remnants of Python 2.4 support. | ||||
| * | | Remofe remnants of Python 2.4 support.no-py2.4 | Serhiy Storchaka | 2017-05-08 | 3 | -35/+2 |
| |/ | | | | | | | Clean up the code by removing workarounds for supporting Python 2.4. | ||||
* | | Fix argument checking errors in _speedups.c. | Serhiy Storchaka | 2017-05-12 | 2 | -35/+123 |
| | | | | | | | | | | | | | | 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-methods | Serhiy Storchaka | 2017-05-08 | 1 | -2/+0 |
| | | |||||
* | | Remove the `__init__` methods in extension classes. | Serhiy Storchaka | 2017-05-07 | 1 | -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. | ||||
* | Bump version, update changelog, fix issues identified in code review of #143 | Bob Ippolito | 2016-10-28 | 4 | -2/+24 |
| | |||||
* | Merge branch 'raw_json' of https://github.com/lamflam/simplejson into ↵ | Bob Ippolito | 2016-10-28 | 4 | -1/+63 |
|\ | | | | | | | lamflam-raw_json | ||||
| * | Add support for preprocessed JSON strings (with optimizations) in encoder | Kevin LaFlamme | 2016-09-01 | 4 | -1/+63 |
| | | | | | | | | 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. | ||||
* | | Bump version to 3.9.0 | Bob Ippolito | 2016-10-21 | 1 | -1/+1 |
| | | |||||
* | | Fixes #144. Workaround for bad behavior in string subclasses. | Bob Ippolito | 2016-10-21 | 3 | -1/+26 |
| | | |||||
* | | Remove fromhex all together | Roy Williams | 2016-09-22 | 2 | -17/+11 |
| | | |||||
* | | Add support for Python 2.5 | Roy Williams | 2016-09-22 | 1 | -2/+6 |
| | | |||||
* | | Use binascii instead of codecs | Roy Williams | 2016-09-22 | 1 | -4/+3 |
| | | |||||
* | | Use `codecs.decode` in Python 2 as opposed to `str.decode` in Python 2. | Roy Williams | 2016-09-21 | 1 | -2/+3 |
|/ | | | | | | | | | | | | | | | | | | | I am investigating a migration to Python 3, and to facilitate this we are using the `-3` flag as decribed here: https://docs.python.org/3/howto/pyporting.html#prevent-compatibility-regressions . When using this flag, I get warnings from simplejson about the use of decode. While obviously this is a invalid warning since this code is gated in Python 2, committing this change will allow users to run their code in `-3` mode in Python 2 without warnings from simplejson. Microbenchmarking this change with `timeit` also reveals it's faster! ```py >>> import timeit >>> timeit.timeit("decode_hex('4f6c6567')[0]", setup="import codecs; decode_hex = codecs.getdecoder('hex_codec')") 0.6572110652923584 >>> timeit.timeit("'4f6c6567'.decode('hex')") 0.9076640605926514 ``` | ||||
* | v3.8.2 - fix compiler warning, automated wheel builds for Windows and Macv3.8.2wheels | Bob Ippolito | 2016-02-15 | 2 | -2/+2 |
| | |||||
* | Fix issue with iterable_as_array and indent option, closes #128v3.8.1 | Bob Ippolito | 2015-10-27 | 3 | -21/+26 |
| | |||||
* | Update version to 3.8.1 | Bob Ippolito | 2015-09-04 | 1 | -1/+1 |
| | |||||
* | removed from _speedups.c forgotten "iterable_as_array" without comma after ↵ | Costy Petrisor | 2015-09-03 | 1 | -1/+0 |
| | | | | string | ||||
* | clean up iterable_as_array for 3.8.0v3.8.0 | Bob Ippolito | 2015-07-18 | 2 | -2/+3 |
| | |||||
* | Merge branch 'master' into iterable_as_array-gh1 | Nick Babcock | 2015-07-10 | 34 | -1005/+2864 |
|\ | | | | | | | | | | | | | | | | | | | | | | | Conflicts: CHANGES.txt conf.py index.rst setup.py simplejson/__init__.py simplejson/_speedups.c simplejson/encoder.py simplejson/tests/test_tuple.py | ||||
| * | fix typo in e18cc09v3.7.3 | Bob Ippolito | 2015-05-31 | 2 | -2/+2 |
| | | |||||
| * | attempt to work around an issue with reloading the Decimal modulev3.7.2 | Bob Ippolito | 2015-05-22 | 2 | -5/+8 |
| | | |||||
| * | bump version for #119v3.7.1 | Bob Ippolito | 2015-05-18 | 1 | -1/+1 |
| | | |||||
| * | Fix msvc error C2275: 'PyObject' : illegal use of this type as an expression | Christoph Gohlke | 2015-05-18 | 1 | -2/+4 |
| | | |||||
| * | no longer trust custom repr for int/long/float subclasses #118v3.7.0 | Bob Ippolito | 2015-05-18 | 5 | -5/+91 |
| | | |||||
| * | update CHANGES and bump version to v3.6.5v3.6.5 | Bob Ippolito | 2014-10-24 | 1 | -1/+1 |
| | | |||||
| * | Fix memory leak when an error occurs encoding dict items | Keith Bussell | 2014-10-23 | 1 | -0/+1 |
| | | |||||
| * | failing test for #106 | Bob Ippolito | 2014-09-29 | 1 | -0/+9 |
| | | |||||
| * | update version for v3.6.4 | Bob Ippolito | 2014-09-29 | 1 | -1/+1 |
| | | |||||
| * | ensure cached encoder is only used when all settings are defaultsort_keys_dump-106 | Bob Ippolito | 2014-09-24 | 1 | -5/+9 |
| | | |||||
| * | documentation about key limitations in JSON per #103v3.6.3 | Bob Ippolito | 2014-08-18 | 1 | -1/+1 |
| | | |||||
| * | doc updates from http://bugs.python.org/issue21514 re: #102v3.6.2 | Bob Ippolito | 2014-08-09 | 1 | -1/+1 |
| | | |||||
| * | update documentation per #102docs-102 | Bob Ippolito | 2014-08-09 | 1 | -1/+1 |
| | | |||||
| * | generalize BOM stripping to any use of raw_decode | Bob Ippolito | 2014-07-21 | 4 | -22/+16 |
| | | |||||
| * | strip utf-8 bom. | Ryo Takahashi | 2014-07-21 | 3 | -1/+22 |
| | | |||||
| * | Fix lower bound checking in scan_once / raw_decode API #98v3.5.3 | Bob Ippolito | 2014-06-24 | 5 | -3/+23 |
| | | |||||
| * | update version for v3.5.2v3.5.2 | Bob Ippolito | 2014-05-23 | 1 | -1/+1 |
| | | |||||
| * | fix build for VS 2008 | Gabi Davar | 2014-05-23 | 1 | -1/+1 |
| | | |||||
| * | consistently reject int_as_string_bitcount <= 0 #96v3.5.1 | Bob Ippolito | 2014-05-22 | 4 | -2/+11 |
| | | |||||
| * | detabv3.5.0 | Bob Ippolito | 2014-05-21 | 1 | -101/+101 |
| | | |||||
| * | clean up #96 and prep for v3.5.0 release | Bob Ippolito | 2014-05-21 | 3 | -27/+30 |
| | | |||||
| * | Merge pull request #96 from coldeasy/int_as_string_bitcount | Bob Ippolito | 2014-05-20 | 6 | -118/+282 |
| |\ | | | | | | | Adding `int_as_string_bitcount` option | ||||
| | * | Allocate int_as_string bounds once per encoder | Colin Deasy | 2014-05-20 | 2 | -32/+38 |
| | | | |||||
| | * | Adding `int_as_string_bitcount` option | Colin Deasy | 2014-05-14 | 6 | -104/+262 |
| | | |