8000 Trivial Change: Remove unhelpful doc in `datetime.timedelta` (#100164) · python/cpython@d3e2dd6 · GitHub
[go: up one dir, main page]

Skip to content

Commit d3e2dd6

Browse files
authored
Trivial Change: Remove unhelpful doc in datetime.timedelta (#100164)
1 parent ffcb822 commit d3e2dd6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Lib/datetime.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,9 +587,12 @@ class timedelta:
587587
returning a timedelta, and addition or subtraction of a datetime
588588
and a timedelta giving a datetime.
589589
590-
Representation: (days, seconds, microseconds). Why? Because I
591-
felt like it.
590+
Representation: (days, seconds, microseconds).
592591
"""
592+
# The representation of (days, seconds, microseconds) was chosen
593+
# arbitrarily; the exact rationale originally specified in the docstring
594+
# was "Because I felt like it."
595+
593596
__slots__ = '_days', '_seconds', '_microseconds', '_hashcode'
594597

595598
def __new__(cls, days=0, seconds=0, microseconds=0,

0 commit comments

Comments
 (0)
0