124 Commits (cd8295ff758891f21084a6a5ad3403d35dda38f7)

Author SHA1 Message Date
Serhiy Storchaka cd8295ff75
bpo-39943: Add the const qualifier to pointers on non-mutable PyUnicode data. (GH-19345) 6 years ago
Hai Shi dcb04d9c6d
bpo-40077: Remove redundant cast in json module (GH-19438) 6 years ago
Hai Shi b709302f31
bpo-40077: Fix potential refleaks of _json: traverse memo (GH-19344) 6 years ago
Dong-hee Na 33f15a16d4
bpo-40077: Convert _json module to use PyType_FromSpec() (GH-19177) 6 years ago
Dong-hee Na 1b55b65638
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521) 6 years ago
Petr Viktorin ffd9753a94
bpo-39245: Switch to public API for Vectorcall (GH-18460) 6 years ago
Victor Stinner daa9756cb6
bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) 6 years ago
Hai Shi ed154c387e bpo-1635741: Port _json extension module to multiphase initialization (PEP 489) (GH-17835) 6 years ago
Victor Stinner fbbfcce2d6
_json.c: use Py_UNUSED() macro (GH-17053) 6 years ago
Inada Naoki 9c11029bb4
bpo-37587: json: Use _PyUnicodeWriter when scanning string. (GH-15591) 6 years ago
Inada Naoki 2a570af12a
bpo-37587: optimize json.loads (GH-15134) 6 years ago
Marco Paolini 8a758f5b99 bpo-37587: Make json.loads faster for long strings (GH-14752) 6 years ago
Jeroen Demeyer 196a530e00 bpo-37483: add _PyObject_CallOneArg() function (#14558) 7 years ago
Jeroen Demeyer 530f506ac9 bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464) 7 years ago
Serhiy Storchaka 96aeaec647
bpo-36793: Remove unneeded __str__ definitions. (GH-13081) 7 years ago
Victor Stinner 5c75f37d47
bpo-36635: Change pyport.h for Py_BUILD_CORE_MODULE define (GH-12853) 7 years ago
Serhiy Storchaka a24107b04c
bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112) 7 years ago
Victor Stinner e281f7d80c
bpo-35081: Move accu.h to Include/internal/pycore_accu.h (GH-10271) 7 years ago
Alexey Izbyshev 6f82bffd2d bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225) 7 years ago
Serhiy Storchaka cfa797c068
bpo-24641: Improved error message for JSON unserializible keys. (#4364) 8 years ago
Oren Milman 2b382dd612 bpo-31505: Fix an assertion failure in json, in case _json.make_encoder() received a bad encoder() argument. (#3643) 8 years ago
Eric Snow fc1bf872e9 bpo-30860: Move windows.h include out of internal/*.h. (#3458) 8 years ago
Eric Snow 2ebc5ce42a bpo-30860: Consolidate stateful runtime globals. (#3397) 8 years ago
INADA Naoki a6296d34a4 bpo-31095: fix potential crash during GC (GH-2974) 8 years ago
Serhiy Storchaka 49f6449ef4 bpo-30936: Fix a reference leak in json when fail to sort keys. (#2712) 9 years ago
Segev Finer 541bd28941 bpo-30911: Fix a crash in json on platforms with unsigned char (#2684) 9 years ago
Serhiy Storchaka ac5bbd43bc bpo-30248: Convert boolean arguments only once in _json. (#1423) 9 years ago
Serhiy Storchaka 76a3e51a40 bpo-30243: Fixed the possibility of a crash in _json. (#1420) 9 years ago
Serhiy Storchaka fff9a31a91 bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. (#748) 9 years ago
Serhiy Storchaka d1302c0154 Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever 9 years ago
Serhiy Storchaka 3023ebb43f Py_SIZE() was misused for dict. 9 years ago
Serhiy Storchaka 21fe721345 Fixed possible reference leaks in the _json module. 9 years ago
Victor Stinner 4c38154a43 Don't parenthesis in _PyObject_CallMethodId() format 9 years ago
Victor Stinner de4ae3d486 Backed out changeset b9c9691c72c5 9 years ago
Victor Stinner 27580c1fb5 Replace PyObject_CallFunctionObjArgs() with fastcall 9 years ago
Serhiy Storchaka e0805cf10e Issue #26719: More efficient formatting of ints and floats in json. 10 years ago
Serhiy Storchaka ef1585eb9a Issue #25923: Added more const qualifiers to signatures of static and private functions. 10 years ago
Serhiy Storchaka 83236f7a8b Issue #24683: Fixed crashes in _json functions called with arguments of 11 years ago
Benjamin Peterson 7b78d4364d prevent integer overflow in escape_unicode (closes #24522) 11 years ago
Serhiy Storchaka fa494fd883 Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 11 years ago
Benjamin Peterson 501182a47b just sort the items tuple directly (closes #24094) 11 years ago
Victor Stinner f024d263b4 Issue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpat 11 years ago
Serhiy Storchaka 483405bcca Issue #22883: Got rid of outdated references to PyInt and PyString in comments. 11 years ago
Benjamin Peterson e3bfe19358 fix possible overflow in encode_basestring_ascii (closes #23369) 11 years ago
Serhiy Storchaka 47efb4a5dc Issue #19361: JSON decoder now raises JSONDecodeError instead of ValueError. 11 years ago
Antoine Pitrou dc3eaa80d4 Issue #23206: Make ``json.dumps(..., ensure_ascii=False)`` as fast as the default case of ``ensure_ascii=True``. Patch by Naoki Inada. 11 years ago
Victor Stinner 31a3ec313d Issue #22338: Fix a crash in the json module on memory allocation failure. 11 years ago
Benjamin Peterson 49991deb6e fix poor spelling 12 years ago
Benjamin Peterson 6ef2b36afa disallow a negative idx parameter 12 years ago
Benjamin Peterson 99b5afab74 in scan_once, prevent the reading of arbitrary memory when passed a negative index 12 years ago