From: Guido van Rossum Date: Wed, 9 Apr 2003 17:05:33 +0000 (+0000) Subject: property_traverse() should also traverse into prop_doc -- there's no X-Git-Tag: v2.3c1~1248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00bf8280f548f361c7f7c5e67a398a2650e4c72f;p=python property_traverse() should also traverse into prop_doc -- there's no typecheck that guarantees it's a string, and BTW string subclasses could hide references. --- diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 77ef359980..1c5098603c 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -1201,6 +1201,7 @@ property_traverse(PyObject *self, visitproc visit, void *arg) VISIT(prop_get); VISIT(prop_set); VISIT(prop_del); + VISIT(prop_doc); return 0; }