summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-04-09 17:05:33 (GMT)
committerGuido van Rossum <guido@python.org>2003-04-09 17:05:33 (GMT)
commit00bf8280f548f361c7f7c5e67a398a2650e4c72f (patch)
tree3cef11f1d6c418b816245a503b123fc6d055762f
parent70367d3a6caf2a26cc62243e696c5ce2beca32c9 (diff)
downloadcpython-00bf8280f548f361c7f7c5e67a398a2650e4c72f.zip
cpython-00bf8280f548f361c7f7c5e67a398a2650e4c72f.tar.gz
cpython-00bf8280f548f361c7f7c5e67a398a2650e4c72f.tar.bz2
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.
-rw-r--r--Objects/descrobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 77ef359..1c50986 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;
}