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

Function isRat

Lib/test/test_binop.py:24–26  ·  view source on GitHub ↗

Test whether an object is an instance of the Rat class.

(x)

Source from the content-addressed store, hash-verified

22 return 0
23
24def isRat(x):
25 """Test whether an object is an instance of the Rat class."""
26 return isinstance(x, Rat)
27
28class Rat(object):
29

Callers 10

__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…