Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ 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
24
def
isRat(x):
25
""
"Test whether an object is an instance of the Rat class."
""
26
return
isinstance(x, Rat)
27
28
class
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
1
isinstance
Function · 0.85
Tested by
no test coverage detected