MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __divmod__

Method __divmod__

tools/python-3.11.9-amd64/Lib/datetime.py:827–832  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

825 return NotImplemented
826
827 def __divmod__(self, other):
828 if isinstance(other, timedelta):
829 q, r = divmod(self._to_microseconds(),
830 other._to_microseconds())
831 return q, timedelta(0, 0, r)
832 return NotImplemented
833
834 # Comparisons of timedelta objects with other.
835

Callers

nothing calls this directly

Calls 2

_to_microsecondsMethod · 0.95
timedeltaClass · 0.85

Tested by

no test coverage detected