summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-04-20 22:32:49 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-04-20 22:32:49 (GMT)
commit7c186e2a18bf174afd5cccc8c35b7167d05f7e2a (patch)
tree1ba75e9cb85d4ab1e0320d3636c1db90d5c8f97e /Misc
parent50eb60e6bfedbdad2dda30fa5ce7fe3ce83f7748 (diff)
downloadcpython-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/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index b73ffba..fc3b4c0 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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