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

Method __mod__

Lib/test/test_binop.py:179–181  ·  view source on GitHub ↗

Take one Rat modulo another.

(self, other)

Source from the content-addressed store, hash-verified

177 return divmod(other, self)
178
179 def __mod__(self, other):
180 """Take one Rat modulo another."""
181 return divmod(self, other)[1]
182
183 def __rmod__(self, other):
184 """Take one Rat modulo another (reversed args)."""

Callers 1

test_countMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected