MCPcopy Index your code
hub / github.com/RustPython/RustPython / __divmod__

Method __divmod__

Lib/_pydatetime.py:884–889  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

882 return NotImplemented
883
884 def __divmod__(self, other):
885 if isinstance(other, timedelta):
886 q, r = divmod(self._to_microseconds(),
887 other._to_microseconds())
888 return q, timedelta(0, 0, r)
889 return NotImplemented
890
891 # Comparisons of timedelta objects with other.
892

Callers

nothing calls this directly

Calls 4

_to_microsecondsMethod · 0.95
isinstanceFunction · 0.85
timedeltaClass · 0.85
divmodFunction · 0.50

Tested by

no test coverage detected