Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112) | Serhiy Storchaka | 2019-02-25 | 1 | -1/+4 |
| | |||||
* | bpo-35081: Move accu.h to Include/internal/pycore_accu.h (GH-10271) | Victor Stinner | 2018-11-01 | 1 | -1/+1 |
| | | | | | | | The accu.h header is no longer part of the Python C API: it has been moved to the "internal" headers which are restricted to Python itself. Replace #include "accu.h" with #include "pycore_accu.h". | ||||
* | bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225) | Alexey Izbyshev | 2018-09-12 | 1 | -3/+3 |
| | | | Reported by Svace static analyzer. | ||||
* | bpo-24641: Improved error message for JSON unserializible keys. (#4364) | Serhiy Storchaka | 2017-11-25 | 1 | -2/+3 |
| | | | | | Also updated an example for default() in the module docstring. Removed quotes around type name in other error messages. | ||||
* | bpo-31505: Fix an assertion failure in json, in case _json.make_encoder() ↵ | Oren Milman | 2017-09-24 | 1 | -3/+13 |
| | | | | received a bad encoder() argument. (#3643) | ||||
* | bpo-30860: Move windows.h include out of internal/*.h. (#3458) | Eric Snow | 2017-09-12 | 1 | -1/+1 |
| | | | PR #3397 introduced a large number of warnings to the Windows build. This patch fixes them. | ||||
* | bpo-30860: Consolidate stateful runtime globals. (#3397) | Eric Snow | 2017-09-08 | 1 | -0/+7 |
| | | | | | | | * group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py). | ||||
* | bpo-31095: fix potential crash during GC (GH-2974) | INADA Naoki | 2017-08-24 | 1 | -2/+4 |
| | |||||
* | bpo-30936: Fix a reference leak in json when fail to sort keys. (#2712) | Serhiy Storchaka | 2017-07-16 | 1 | -1/+3 |
| | |||||
* | bpo-30911: Fix a crash in json on platforms with unsigned char (#2684) | Segev Finer | 2017-07-13 | 1 | -1/+1 |
| | | | when pass bad strict argument. | ||||
* | bpo-30248: Convert boolean arguments only once in _json. (#1423) | Serhiy Storchaka | 2017-05-28 | 1 | -40/+24 |
| | | | | | Rather than saving the Python object and calling PyObject_IsTrue() every time when the boolean argument is used, call it only once and save C boolean value. | ||||
* | bpo-30243: Fixed the possibility of a crash in _json. (#1420) | Serhiy Storchaka | 2017-05-05 | 1 | -66/+20 |
| | | | | | | It was possible to get a core dump by using uninitialized _json objects. Now __new__ methods create initialized objects. __init__ methods are removed. | ||||
* | bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. ↵ | Serhiy Storchaka | 2017-03-21 | 1 | -1/+1 |
| | | | | (#748) | ||||
* | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -6/+3 |
| | | | | possible but Coccinelle couldn't find opportunity. | ||||
* | Py_SIZE() was misused for dict. | Serhiy Storchaka | 2017-01-13 | 1 | -1/+1 |
|\ | |||||
| * | Py_SIZE() was misused for dict. | Serhiy Storchaka | 2017-01-13 | 1 | -1/+1 |
| |\ | |||||
| | * | Py_SIZE() was misused for dict. | Serhiy Storchaka | 2017-01-13 | 1 | -1/+1 |
| | | | |||||
* | | | Fixed possible reference leaks in the _json module. | Serhiy Storchaka | 2017-01-03 | 1 | -4/+9 |
|\ \ \ | |/ / | |||||
| * | | Fixed possible reference leaks in the _json module. | Serhiy Storchaka | 2017-01-03 | 1 | -4/+9 |
| |\ \ | | |/ | |||||
| | * | Fixed possible reference leaks in the _json module. | Serhiy Storchaka | 2017-01-03 | 1 | -4/+9 |
| | | | |||||
* | | | Don't parenthesis in _PyObject_CallMethodId() format | Victor Stinner | 2016-12-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | Issue #28915: Without parenthesis, _PyObject_CallMethodId() avoids the creation a temporary tuple, and so is more efficient. | ||||
* | | | Backed out changeset b9c9691c72c5 | Victor Stinner | 2016-12-04 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | Issue #28858: The change b9c9691c72c5 introduced a regression. It seems like _PyObject_CallArg1() uses more stack memory than PyObject_CallFunctionObjArgs(). | ||||
* | | | Replace PyObject_CallFunctionObjArgs() with fastcall | Victor Stinner | 2016-12-01 | 1 | -6/+6 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | * PyObject_CallFunctionObjArgs(func, NULL) => _PyObject_CallNoArg(func) * PyObject_CallFunctionObjArgs(func, arg, NULL) => _PyObject_CallArg1(func, arg) PyObject_CallFunctionObjArgs() allocates 40 bytes on the C stack and requires extra work to "parse" C arguments to build a C array of PyObject*. _PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate memory on the C stack. This change is part of the fastcall project. The change on listsort() is related to the issue #23507. | ||||
* | | Issue #26719: More efficient formatting of ints and floats in json. | Serhiy Storchaka | 2016-04-10 | 1 | -52/+4 |
|\ \ | |/ | |||||
| * | Issue #26719: More efficient formatting of ints and floats in json. | Serhiy Storchaka | 2016-04-10 | 1 | -52/+4 |
| | | |||||
* | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -2/+2 |
|/ | | | | private functions. | ||||
* | Issue #24683: Fixed crashes in _json functions called with arguments of | Serhiy Storchaka | 2015-07-26 | 1 | -2/+10 |
|\ | | | | | | | inappropriate type. | ||||
| * | Issue #24683: Fixed crashes in _json functions called with arguments of | Serhiy Storchaka | 2015-07-26 | 1 | -2/+10 |
| | | | | | | | | inappropriate type. | ||||
* | | prevent integer overflow in escape_unicode (closes #24522) | Benjamin Peterson | 2015-06-27 | 1 | -3/+9 |
| | | |||||
* | | Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), | Serhiy Storchaka | 2015-05-30 | 1 | -7/+17 |
|\ \ | |/ | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly. | ||||
| * | Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), | Serhiy Storchaka | 2015-05-30 | 1 | -7/+17 |
| | | | | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly. | ||||
* | | merge 3.4 (#24094) | Benjamin Peterson | 2015-05-03 | 1 | -28/+3 |
|\ \ | |/ | |||||
| * | merge 3.3 (#24094) | Benjamin Peterson | 2015-05-03 | 1 | -28/+3 |
| |\ | |||||
| | * | just sort the items tuple directly (closes #24094) | Benjamin Peterson | 2015-05-03 | 1 | -27/+3 |
| | | | |||||
* | | | Issue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpat | Victor Stinner | 2015-03-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | _codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw modules. pyexpat.c doesn't need to redeclare PyMODINIT_FUNC, it's already declared in Include/pyport.h. | ||||
* | | | Issue #22883: Got rid of outdated references to PyInt and PyString in comments. | Serhiy Storchaka | 2015-02-17 | 1 | -4/+4 |
| | | | |||||
* | | | merge 3.4 (#23369) | Benjamin Peterson | 2015-02-01 | 1 | -4/+11 |
|\ \ \ | |/ / | |||||
| * | | merge 3.3 (#23369) | Benjamin Peterson | 2015-02-01 | 1 | -4/+11 |
| |\ \ | | |/ | |||||
| | * | fix possible overflow in encode_basestring_ascii (closes #23369) | Benjamin Peterson | 2015-02-01 | 1 | -4/+11 |
| | | | |||||
* | | | Issue #19361: JSON decoder now raises JSONDecodeError instead of ValueError. | Serhiy Storchaka | 2015-01-26 | 1 | -11/+10 |
| | | | |||||
* | | | Issue #23206: Make ``json.dumps(..., ensure_ascii=False)`` as fast as the ↵ | Antoine Pitrou | 2015-01-11 | 1 | -3/+130 |
|/ / | | | | | | | default case of ``ensure_ascii=True``. Patch by Naoki Inada. | ||||
* | | Issue #22338: Fix a crash in the json module on memory allocation failure. | Victor Stinner | 2014-09-10 | 1 | -1/+2 |
| | | |||||
* | | merge 3.3 | Benjamin Peterson | 2014-04-14 | 1 | -4/+5 |
|\ \ | |/ | |||||
| * | merge 3.2 | Benjamin Peterson | 2014-04-14 | 1 | -4/+5 |
| |\ | |||||
| | * | disallow a negative idx parameter | Benjamin Peterson | 2014-04-14 | 1 | -4/+5 |
| | | | |||||
* | | | merge 3.3 | Benjamin Peterson | 2014-04-14 | 1 | -1/+4 |
|\ \ \ | |/ / | |||||
| * | | merge 3.2 | Benjamin Peterson | 2014-04-14 | 1 | -1/+4 |
| |\ \ | | |/ | |||||
| | * | in scan_once, prevent the reading of arbitrary memory when passed a negative ↵ | Benjamin Peterson | 2014-04-14 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | index Bug reported by Guido Vranken. | ||||
* | | | Issue #11489: JSON decoder now accepts lone surrogates. | Serhiy Storchaka | 2013-11-26 | 1 | -19/+7 |
|\ \ \ | |/ / | |||||
| * | | Issue #11489: JSON decoder now accepts lone surrogates. | Serhiy Storchaka | 2013-11-26 | 1 | -19/+7 |
| | | |