diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-04-20 22:32:49 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-04-20 22:32:49 (GMT) |
commit | 7c186e2a18bf174afd5cccc8c35b7167d05f7e2a (patch) | |
tree | 1ba75e9cb85d4ab1e0320d3636c1db90d5c8f97e /Misc | |
parent | 50eb60e6bfedbdad2dda30fa5ce7fe3ce83f7748 (diff) | |
download | cpython-7c186e2a18bf174afd5cccc8c35b7167d05f7e2a.zip cpython-7c186e2a18bf174afd5cccc8c35b7167d05f7e2a.tar.gz cpython-7c186e2a18bf174afd5cccc8c35b7167d05f7e2a.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -966,6 +966,10 @@ Library Extension Modules ----------------- +- Issue #2706: Allow division of a timedelta by another timedelta: + timedelta / timedelta, timedelta % timedelta, timedelta // timedelta + and divmod(timedelta, timedelta) are all supported. + - Issue #8314: Fix unsigned long long bug in libffi on Sparc v8. - Issue #8300: When passing a non-integer argument to struct.pack with any |