Commits

Ronald Oussoren committed 9edd78e

Use PyTuple_GET_ITEM instead of PyTuple_GetItem to make it clearer that
we receive a borrowed reference.

  • Participants
  • Parent commits 1970ce6
  • Branches pyobjc-ancient

Comments (0)

Files changed (1)

File Modules/objc/selector.m

 				"Missing argument: self");
 			return NULL;
 		}
-		pyself = PyTuple_GetItem(args, 0);
+		pyself = PyTuple_GET_ITEM(args, 0);
 		if (pyself == NULL) {
 			return NULL;
 		}
 				PyErr_SetString(ObjCExc_error, "need self argument");
 				return NULL;
 			}
-			self_arg = PyTuple_GetItem(args, 0);
+			self_arg = PyTuple_GET_ITEM(args, 0);
 			if (!PyObjCObject_Check(self_arg) && !PyObjCClass_Check(self_arg)) {
 				PyErr_SetString(ObjCExc_error, "bad self type");
 				abort();