8000 Trivial Change: Remove unhelpful doc in `datetime.timedelta` by meawoppl · Pull Request #100164 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Trivial Change: Remove unhelpful doc in datetime.timedelta #100164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Lib/datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
0