]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40077: Convert _json module to use PyType_FromSpec() (GH-19177)
authorDong-hee Na <donghee.na92@gmail.com>
Fri, 27 Mar 2020 10:59:59 +0000 (19:59 +0900)
committerGitHub <noreply@github.com>
Fri, 27 Mar 2020 10:59:59 +0000 (11:59 +0100)
commit33f15a16d40cb8010a8c758952cbf88d7912ee2d
tree4f5978598f7ee289e571099a5f0a1bb1a85f0d4b
parent71a3522ef85df06a3acc718107360e37e4116a15
bpo-40077: Convert _json module to use PyType_FromSpec() (GH-19177)

Replace statically allocated types with heap allocated types:
use PyType_FromSpec().

Add a module state to store the Scanner and Encoder types.
Add traverse, clear and free functions to the module.
Misc/NEWS.d/next/Core and Builtins/2020-03-27-01-11-08.bpo-40077.wT002V.rst [new file with mode: 0644]
Modules/_json.c