-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-114728: Fix documentation for comparison of objects in datetime module #114749
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
gh-114728: Fix documentation for comparison of objects in datetime module #114749
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, would be nice if Paul or Alexander get a chance to review too.
Thank you @hugovk. I asked your review mainly for the case if I made some grammar errors. |
Doc/library/datetime.rst
Outdated
:class:`!date` objects that are not also :class:`.datetime` instances | ||
are never equal to :class:`!datetime` objects, even if they represent | ||
the same date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this is not true. See #49766.
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
…ime module (pythonGH-114749) (cherry picked from commit c12240e) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-114928 is a backport of this pull request to the 3.12 branch. |
…ime module (pythonGH-114749) (cherry picked from commit c12240e) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-114929 is a backport of this pull request to the 3.11 branch. |
…time module (GH-114749) (GH-114929) (cherry picked from commit c12240e) Co-authored-by: Serhiy Storchaka <[email protected]>
…time module (GH-114749) (GH-114928) (cherry picked from commit c12240e) Co-authored-by: Serhiy Storchaka <[email protected]>
…mparisons if tzinfo is the same (pythonGH-116187) This mostly restores information removed in c12240e (pythonGH-114749). (cherry picked from commit 05b0490) Co-authored-by: Serhiy Storchaka <[email protected]>
…mparisons if tzinfo is the same (pythonGH-116187) This mostly restores information removed in c12240e (pythonGH-114749). (cherry picked from commit 05b0490) Co-authored-by: Serhiy Storchaka <[email protected]>
…mparisons if tzinfo is the same (pythonGH-116187) This mostly restores information removed in c12240e (pythonGH-114749).
…mparisons if tzinfo is the same (pythonGH-116187) This mostly restores information removed in c12240e (pythonGH-114749).
…mparisons if tzinfo is the same (pythonGH-116187) This mostly restores information removed in c12240e (pythonGH-114749).
📚 Documentation preview 📚: https://cpython-previews--114749.org.readthedocs.build/en/114749/library/datetime.html