]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44263: Fix _decimal and _testcapi GC protocol (GH-26464) (GH-26465)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 31 May 2021 11:25:47 +0000 (04:25 -0700)
committerGitHub <noreply@github.com>
Mon, 31 May 2021 11:25:47 +0000 (12:25 +0100)
commit7fe9cad606a4ac7ac138528dcd19546394bc5a44
tree230627a810fdd70badafe4a008333e3456f2f67c
parentf097d2302be46b031687726011b86fc241a042ef
bpo-44263: Fix _decimal and _testcapi GC protocol (GH-26464) (GH-26465)

* _testcapi.heapgctype: implement a traverse function since the type
  is defined with Py_TPFLAGS_HAVE_GC.
* _decimal: PyDecSignalDictMixin_Type is no longer defined with
  Py_TPFLAGS_HAVE_GC since it has no traverse function.
(cherry picked from commit 142e5c5445c019542246d93fe2f9e195d3131686)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Modules/_decimal/_decimal.c
Modules/_testcapimodule.c