Skip to content

Commit 0eae50d

Browse files
maurycyvstinner
andauthored
Update Objects/tupleobject.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent b1c53b2 commit 0eae50d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Objects/tupleobject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,7 @@ tuple_richcompare(PyObject *v, PyObject *w, int op)
668668

669669
/* Fast path based on identity: if both objects are the same tuple
670670
* object, we return immediately without comparing items. Elements that
671-
* are not equal to themselves (see check_compare_id in
672-
* Lib/tests/seq_tests.py) are therefore treated as equal here.
671+
* are not equal to themselves are therefore treated as equal here.
673672
*/
674673
if (v == w) {
675674
Py_RETURN_RICHCOMPARE(0, 0, op);

0 commit comments

Comments
 (0)