Skip to content

Commit e19728e

Browse files
committed
Made ISLT comment more in line with the current text
1 parent d752fc7 commit e19728e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Objects/listobject.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,10 @@ sortslice_advance(sortslice *slice, Py_ssize_t n)
10311031
slice->values += n;
10321032
}
10331033

1034-
/* Macros for comparing keys: */
1034+
/* Comparison function: compare_funcs.key_compare, which is set at run-time in
1035+
* listsort_impl to optimize for various special cases.
1036+
* Returns -1 on error, 1 if x < y, 0 if x >= y.
1037+
*/
10351038
#define ISLT(X, Y) ((*compare_funcs.key_compare)(X, Y, compare_funcs))
10361039

10371040
/* Compare X to Y via "<". Goto "fail" if the comparison raises an

0 commit comments

Comments
 (0)