summaryrefslogtreecommitdiffstats
path: root/Doc/library/datetime.rst
diff options
context:
space:
mode:
authorUtkarsh Upadhyay <mail@musicallyut.in>2017-07-25 21:51:33 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-07-25 21:51:33 (GMT)
commitcc5a65cd9025280ea67ef4bbc2a8bfe31ced6c30 (patch)
tree4565cd48860cd2c8581225565509ea327293b7f9 /Doc/library/datetime.rst
parent830080913c22a9834d310294b9f7653234dc6a59 (diff)
downloadcpython-cc5a65cd9025280ea67ef4bbc2a8bfe31ced6c30.zip
cpython-cc5a65cd9025280ea67ef4bbc2a8bfe31ced6c30.tar.gz
cpython-cc5a65cd9025280ea67ef4bbc2a8bfe31ced6c30.tar.bz2
bpo-30302 Make timedelta.__repr__ more informative. (#1493)
Diffstat (limited to 'Doc/library/datetime.rst')
-rw-r--r--Doc/library/datetime.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index e757e5d..625e159 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -287,11 +287,12 @@ Supported operations:
| | ``[D day[s], ][H]H:MM:SS[.UUUUUU]``, where D |
| | is negative for negative ``t``. (5) |
+--------------------------------+-----------------------------------------------+
-| ``repr(t)`` | Returns a string in the form |
-| | ``datetime.timedelta(D[, S[, U]])``, where D |
-| | is negative for negative ``t``. (5) |
+| ``repr(t)`` | Returns a string representation of the |
+| | :class:`timedelta` object as a constructor |
+| | call with canonical attribute values. |
+--------------------------------+-----------------------------------------------+
+
Notes:
(1)