Skip to content

Commit f8fb254

Browse files
committed
Add a comment
1 parent fb8c2d4 commit f8fb254

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Objects/descrobject.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,6 +1808,9 @@ property_init_impl(propertyobject *self, PyObject *fget, PyObject *fset,
18081808
self->getter_doc = 1;
18091809
}
18101810

1811+
/* At this point `prop_doc` is either NULL or
1812+
a non-None object with incremented ref counter */
1813+
18111814
if (Py_IS_TYPE(self, &PyProperty_Type)) {
18121815
if (prop_doc != NULL && prop_doc != Py_None) {
18131816
Py_XSETREF(self->prop_doc, prop_doc);

0 commit comments

Comments
 (0)