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

Function instance_compare

Objects/classobject.c:1732–1779  ·  view source on GitHub ↗

Try a 3-way comparison, returning an int; either v or w is an instance. We first try a coercion. 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. THIS IS ONLY CALLED FROM object.c! */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

PyNumber_CoerceExFunction · 0.85
PyObject_CompareFunction · 0.85
half_cmpFunction · 0.85
PyErr_OccurredFunction · 0.50

Tested by

no test coverage detected