]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Trivial Change: Remove unhelpful doc in `datetime.timedelta` (#100164)
authorMatty G <meawoppl@gmail.com>
Mon, 6 Feb 2023 02:55:37 +0000 (18:55 -0800)
committerGitHub <noreply@github.com>
Mon, 6 Feb 2023 02:55:37 +0000 (06:55 +0400)
Lib/datetime.py

index 68746de1cabf85f10e99afa37a3ea3aa491e4928..637144637485bcdd5ba3770e923c05575dc25795 100644 (file)
@@ -587,9 +587,12 @@ class timedelta:
     returning a timedelta, and addition or subtraction of a datetime
     and a timedelta giving a datetime.
 
-    Representation: (days, seconds, microseconds).  Why?  Because I
-    felt like it.
+    Representation: (days, seconds, microseconds).
     """
+    # The representation of (days, seconds, microseconds) was chosen
+    # arbitrarily; the exact rationale originally specified in the docstring
+    # was "Because I felt like it."
+
     __slots__ = '_days', '_seconds', '_microseconds', '_hashcode'
 
     def __new__(cls, days=0, seconds=0, microseconds=0,