https://github.com/python/cpython/commit/1f577ce363121d590b51abf5c41d1bcf3d751436 commit: 1f577ce363121d590b51abf5c41d1bcf3d751436 branch: master author: Hai Shi <shihai1992 at gmail.com> committer: GitHub <noreply at github.com> date: 2020年03月02日T08:28:44+02:00 summary: bpo-39378: partial of PickleState struct should be traversed. (GH-18046) files: M Modules/_pickle.c diff --git a/Modules/_pickle.c b/Modules/_pickle.c index a75035107a28e..bcbd3c0102965 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; }