- PyList_Append(plist, Py_BuildValue("(ii)", x-1, y-1)); + value = Py_BuildValue("(ii)", x-1, y-1); + PyList_Append(plist, value); + Py_DECREF(value); break; } } @@ -367,7 +369,9 @@ e--; if (!e) { e = every; - P
"N" (object) [PyObject *] Same as "O", except it doesn't increment the reference count on the object. Useful when the object is created by a call to an object constructor in the argument list. "O&" (object) [converter,anything] Convertanythingto a Python object through aconverterfunc...
@@ -434,11 +434,11 @@ do_mkvalue(const char **p_format, va_list *p_va, int flags) if (flags & FLAG_SIZE_T) n = va_arg(*p_va, Py_ssize_t); else { n = va_arg(*p_va, int); if (PyErr_WarnEx(PyExc_DeprecationWarning, "PY_SSIZE_T_CLEAN will be required for '#' forma...