summaryrefslogtreecommitdiffstats
path: root/Lib/datetime.py
diff options
context:
space:
mode:
authorMatty G <meawoppl@gmail.com>2023-02-06 02:55:37 (GMT)
committerGitHub <noreply@github.com>2023-02-06 02:55:37 (GMT)
commitd3e2dd6e71bd8e5482973891926d5df19be687eb (patch)
treeade78e4356bcd04d79b3eb126de0d1f708319056 /Lib/datetime.py
parentffcb8220d7a8c8ca169b467d9e4a752874f68af2 (diff)
downloadcpython-d3e2dd6e71bd8e5482973891926d5df19be687eb.zip
cpython-d3e2dd6e71bd8e5482973891926d5df19be687eb.tar.gz
cpython-d3e2dd6e71bd8e5482973891926d5df19be687eb.tar.bz2
Trivial Change: Remove unhelpful doc in `datetime.timedelta` (#100164)
Diffstat (limited to 'Lib/datetime.py')
-rw-r--r--Lib/datetime.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/datetime.py b/Lib/datetime.py
index 68746de..63714463 100644
--- a/Lib/datetime.py
+++ b/Lib/datetime.py
@@ -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,