We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6937b53 commit 500afcbCopy full SHA for 500afcb
Objects/typeobject.c
@@ -2777,7 +2777,7 @@ _PyObject_LookupSpecial(PyObject *self, PyObject *attr)
2777
// is null and `method_and_self[1]` is `self`. On exit, `method_and_self[0]`
2778
// is the method object and `method_and_self[1]` is `self` if the method is
2779
// not bound.
2780
-// Return 0 on success, -1 on error or if the method is missing.
+// Return 1 on success, -1 on error, and 0 if the method is missing.
2781
int
2782
_PyObject_LookupSpecialMethod(PyObject *attr, _PyStackRef *method_and_self)
2783
{
0 commit comments