summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-05-27 09:03:38 (GMT)
committerGitHub <noreply@github.com>2020-05-27 09:03:38 (GMT)
commit1cf15af9a6f28750f37b08c028ada31d38e818dd (patch)
tree19918a3d6cc25f3f2bcd14687be59c8926825020 /Misc
parent404b23b85b17c84e022779f31fc89cb0ed0d37e8 (diff)
downloadcpython-1cf15af9a6f28750f37b08c028ada31d38e818dd.zip
cpython-1cf15af9a6f28750f37b08c028ada31d38e818dd.tar.gz
cpython-1cf15af9a6f28750f37b08c028ada31d38e818dd.tar.bz2
bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (reverts GH-19414) (GH-20264)
Heap types now always visit the type in tp_traverse. See added docs for details. This reverts commit 0169d3003be3d072751dd14a5c84748ab63a249f. Automerge-Triggered-By: @encukou
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-05-23-01-15-51.bpo-40217.jZsHTc.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-05-23-01-15-51.bpo-40217.jZsHTc.rst b/Misc/NEWS.d/next/Core and Builtins/2020-05-23-01-15-51.bpo-40217.jZsHTc.rst
new file mode 100644
index 0000000..b13e8ee
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-05-23-01-15-51.bpo-40217.jZsHTc.rst
@@ -0,0 +1,4 @@
+Instances of types created with :c:func:`PyType_FromSpecWithBases` will no
+longer automatically visit their class object when traversing references in
+the garbage collector. The user is expected to manually visit the object's
+class. Patch by Pablo Galindo.