From: Matty G Date: Mon, 6 Feb 2023 02:55:37 +0000 (-0800) Subject: Trivial Change: Remove unhelpful doc in `datetime.timedelta` (#100164) X-Git-Tag: v3.12.0a5~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3e2dd6e71bd8e5482973891926d5df19be687eb;p=thirdparty%2FPython%2Fcpython.git Trivial Change: Remove unhelpful doc in `datetime.timedelta` (#100164) --- diff --git a/Lib/datetime.py b/Lib/datetime.py index 68746de1cabf..637144637485 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,