STINNER Victor <[email protected]> added the comment: + one = PyLong_FromLong(1); + if (!one) + return -1; + cmp_result = PyObject_RichCompareBool(r0->length, one, Py_EQ); + Py_DECREF(one);
If would be nice to have a PyLong_CompareLong() function. ---------- nosy: +haypo _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue13201> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
