diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-05-28 08:12:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 08:12:23 -0700 |
commit | bcbe5c59dde5fcb9ad21991c2afd91837b14bbd5 (patch) | |
tree | 9952d8e5d30daad42d284486a79c89705d0a34e7 /Python/Python-ast.c | |
parent | 1d82f003678816ff8dd822452ec91669844d2d09 (diff) | |
download | cpython-git-bcbe5c59dde5fcb9ad21991c2afd91837b14bbd5.tar.gz |
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
(cherry picked from commit 1cf15af9a6f28750f37b08c028ada31d38e818dd)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index d2edf74c81..694987dd07 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -1109,6 +1109,7 @@ ast_dealloc(AST_object *self) static int ast_traverse(AST_object *self, visitproc visit, void *arg) { + Py_VISIT(Py_TYPE(self)); Py_VISIT(self->dict); return 0; } |