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

Function do_cmp

Objects/object.c:812–844  ·  view source on GitHub ↗

Do a 3-way comparison, by hook or by crook. Return: -2 for an exception (but see below); -1 if v < w; 0 if v == w; 1 if v > w; BUT: if the object implements a tp_compare function, it returns whatever this function returns (whether with an exception or not). */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

PyObject_CompareFunction · 0.85

Calls 4

adjust_tp_compareFunction · 0.85
try_rich_to_3way_compareFunction · 0.85
try_3way_compareFunction · 0.85
default_3way_compareFunction · 0.85

Tested by

no test coverage detected