From 1f577ce363121d590b51abf5c41d1bcf3d751436 Mon Sep 17 00:00:00 2001 From: Hai Shi Date: Mon, 2 Mar 2020 14:28:44 +0800 Subject: [PATCH] bpo-39378: partial of PickleState struct should be traversed. (GH-18046) --- Modules/_pickle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_pickle.c b/Modules/_pickle.c index a75035107a2..bcbd3c01029 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -7965,6 +7965,7 @@ pickle_traverse(PyObject *m, visitproc visit, void *arg) Py_VISIT(st->import_mapping_3to2); Py_VISIT(st->codecs_encode); Py_VISIT(st->getattr); + Py_VISIT(st->partial); return 0; }