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

Function adjust_tp_compare

Objects/object.c:560–590  ·  view source on GitHub ↗

Helper to warn about deprecated tp_compare return values. Return: -2 for an exception; -1 if v < w; 0 if v == w; 1 if v > w. (This function cannot return 2.) */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

try_3way_compareFunction · 0.85
do_cmpFunction · 0.85
PyObject_RichCompareFunction · 0.85

Calls 4

PyErr_FetchFunction · 0.85
PyErr_WarnFunction · 0.85
PyErr_RestoreFunction · 0.85
PyErr_OccurredFunction · 0.50

Tested by

no test coverage detected