]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40077: Convert _abc module to use PyType_FromSpec() (GH-19202)
authorDong-hee Na <donghee.na92@gmail.com>
Mon, 30 Mar 2020 14:35:38 +0000 (23:35 +0900)
committerGitHub <noreply@github.com>
Mon, 30 Mar 2020 14:35:38 +0000 (16:35 +0200)
commit53e4c91725083975598350877e2ed8e2d0194114
tree4718be274afd820f2b2064d78fb47664e3ee606d
parentce105541f8ebcf2dffcadedfdeffdb698a0edb44
bpo-40077: Convert _abc module to use PyType_FromSpec() (GH-19202)

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

Add a module state to store the _abc_data_type.
Add traverse, clear and free functions to the module.
Lib/test/test_abc.py
Modules/_abc.c