commit | 7c186e2a18bf174afd5cccc8c35b7167d05f7e2a | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Tue Apr 20 22:32:49 2010 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Tue Apr 20 22:32:49 2010 +0000 |
tree | 1ba75e9cb85d4ab1e0320d3636c1db90d5c8f97e | |
parent | 50eb60e6bfedbdad2dda30fa5ce7fe3ce83f7748 [diff] |
Issue #2706: Add support for dividing a timedelta by another timedelta. Adds support for the three division operations: - timedelta / timedelta -> float - timedelta // timedelta -> int - timedelta % timedelta -> timedelta also adds support for divmod(timedelta, timedelta). Patch by Victor Stinner, adapted for py3k and extended by Alexander Belopolsky.