Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __rmod__
Method
__rmod__
Lib/test/test_fractions.py:120–121 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
118
return
NotImplemented
119
return
self.__class__(f
'{self} % {other}'
)
120
def
__rmod__(self, other):
121
return
self.__class__(f
'{other} % {self}'
)
122
def
__pow__(self, other):
123
if
isinstance(other, F):
124
return
NotImplemented
Callers
nothing calls this directly
Calls
1
__class__
Method · 0.45
Tested by
no test coverage detected