Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7726dc0

Browse files
committed
Fixed a quite misleading comment: a "not" should not have been there.
1 parent 57179fe commit 7726dc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5648,7 +5648,7 @@ super_descr_get(PyObject *self, PyObject *obj, PyObject *type)
56485648
return self;
56495649
}
56505650
if (su->ob_type != &PySuper_Type)
5651-
/* If su is not an instance of a subclass of super,
5651+
/* If su is an instance of a (strict) subclass of super,
56525652
call its type */
56535653
return PyObject_CallFunction((PyObject *)su->ob_type,
56545654
"OO", su->type, obj);

0 commit comments

Comments
 (0)