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

Method __divmod__

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

Source from the content-addressed store, hash-verified

891 return NotImplemented
892
893 def __divmod__(self, other):
894 if isinstance(other, timedelta):
895 q, r = divmod(self._to_microseconds(),
896 other._to_microseconds())
897 return q, timedelta(0, 0, r)
898 return NotImplemented
899
900 # Comparisons of timedelta objects with other.
901

Callers

nothing calls this directly

Calls 2

_to_microsecondsMethod · 0.95
timedeltaClass · 0.85

Tested by

no test coverage detected