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

Function isint

Lib/test/test_binop.py:13–15  ·  view source on GitHub ↗

Test whether an object is an instance of int.

(x)

Source from the content-addressed store, hash-verified

11 return b
12
13def isint(x):
14 """Test whether an object is an instance of int."""
15 return isinstance(x, int)
16
17def isnum(x):
18 """Test whether an object is an instance of a built-in numeric type."""

Callers 11

__init__Method · 0.85
__add__Method · 0.85
__sub__Method · 0.85
__rsub__Method · 0.85
__mul__Method · 0.85
__truediv__Method · 0.85
__rtruediv__Method · 0.85
__floordiv__Method · 0.85
__divmod__Method · 0.85
__rdivmod__Method · 0.85
__eq__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…