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

Function try_rich_compare_bool

Objects/object.c:642–660  ·  view source on GitHub ↗

Try a genuine rich comparison, returning an int. Return: -1 for exception (including the case where try_rich_compare() returns an object that's not a Boolean); 0 if the outcome is false; 1 if the outcome is true; 2 if this particular rich comparison is not implemented or undefined. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

try_rich_to_3way_compareFunction · 0.85

Calls 2

try_rich_compareFunction · 0.85
PyObject_IsTrueFunction · 0.85

Tested by

no test coverage detected