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

Class Index

Lib/test/test_capi/test_long.py:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 pass
16
17class Index:
18 def __init__(self, value):
19 self.value = value
20
21 def __index__(self):
22 return self.value
23
24# use __index__(), not __int__()
25class MyIndexAndInt:

Callers 9

check_long_asintMethod · 0.70
test_long_asdoubleMethod · 0.70
test_long_asvoidptrMethod · 0.70
test_long_getsignMethod · 0.70
test_long_ispositiveMethod · 0.70
test_long_isnegativeMethod · 0.70
test_long_iszeroMethod · 0.70

Calls

no outgoing calls

Tested by 9

check_long_asintMethod · 0.56
test_long_asdoubleMethod · 0.56
test_long_asvoidptrMethod · 0.56
test_long_getsignMethod · 0.56
test_long_ispositiveMethod · 0.56
test_long_isnegativeMethod · 0.56
test_long_iszeroMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…