MCPcopy Index your code
hub / github.com/python/cpython / _cmp

Function _cmp

Lib/_pydatetime.py:14–15  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

12from operator import index as _index
13
14def _cmp(x, y):
15 return 0 if x == y else 1 if x > y else -1
16
17def _get_class_module(self):
18 module_name = self.__class__.__module__

Callers 4

_cmpMethod · 0.70
_cmpMethod · 0.70
_cmpMethod · 0.70
_cmpMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…