MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / try_3way_compare

Function try_3way_compare

Objects/object.c:702–754  ·  view source on GitHub ↗

Try a 3-way comparison, returning an int. Return: -2 for an exception; -1 if v < w; 0 if v == w; 1 if v > w; 2 if this particular 3-way comparison is not implemented or undefined. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

do_cmpFunction · 0.85
try_3way_to_rich_compareFunction · 0.85

Calls 3

adjust_tp_compareFunction · 0.85
_PyObject_SlotCompareFunction · 0.85
PyNumber_CoerceExFunction · 0.85

Tested by

no test coverage detected