Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
12
from
operator
import
index
as
_index
13
14
def
_cmp(x, y):
15
return
0
if
x == y
else
1
if
x > y
else
-1
16
17
def
_get_class_module(self):
18
module_name = self.__class__.__module__
Callers
4
_cmp
Method · 0.70
_cmp
Method · 0.70
_cmp
Method · 0.70
_cmp
Method · 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…