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 d441437 commit 8d3e7efCopy full SHA for 8d3e7ef
1 file changed
Modules/_operator.c
@@ -704,10 +704,8 @@ static PyObject *
704
_operator_is__impl(PyObject *module, PyObject *a, PyObject *b)
705
/*[clinic end generated code: output=bcd47a402e482e1d input=5fa9b97df03c427f]*/
706
{
707
- PyObject *result;
708
- result = (a == b) ? Py_True : Py_False;
709
- Py_INCREF(result);
710
- return result;
+ PyObject *result = Py_Is(a, b) ? Py_True : Py_False;
+ return Py_NewRef(result);
711
}
712
713
/*[clinic input]
0 commit comments