Skip to content

Commit 4c6bf78

Browse files
committed
Update comment
1 parent 93c8143 commit 4c6bf78

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5730,9 +5730,8 @@ _PyType_LookupRefAndVersion(PyTypeObject *type, PyObject *name, unsigned int *ve
57305730
}
57315731

57325732
/* Internal API to look for a name through the MRO.
5733-
This returns a strong reference, and doesn't set an exception!
5734-
If nonzero, version is set to the value of type->tp_version at the time of
5735-
the lookup.
5733+
This stores a stack reference in out and returns the value of
5734+
type->tp_version or zero if name is missing. It doesn't set an exception!
57365735
*/
57375736
unsigned int
57385737
_PyType_LookupStackRefAndVersion(PyTypeObject *type, PyObject *name, _PyStackRef *out)

0 commit comments

Comments
 (0)