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

* _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>
Modules/_decimal/_decimal.c
Modules/_testcapimodule.c