-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Documentation for date and datetime comparison is outdated #114728
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
Comments
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Jan 30, 2024
serhiy-storchaka
added a commit
that referenced
this issue
Feb 2, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 2, 2024
…ime module (pythonGH-114749) (cherry picked from commit c12240e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 2, 2024
…ime module (pythonGH-114749) (cherry picked from commit c12240e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka
added a commit
that referenced
this issue
Feb 2, 2024
serhiy-storchaka
added a commit
that referenced
this issue
Feb 2, 2024
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
fsc-eriker
pushed a commit
to fsc-eriker/cpython
that referenced
this issue
Feb 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The implementation of comparison for
date
anddatetime
objects was changed 18 years ago, in 1996059, but the documentation still describes the old behavior, with special-casing of other objects with atimetuple
attribute. There were also other changes in this code. In particularly, there is a significant difference between equality comparison and order comparison. This part of the documentation should be rewritten.Linked PRs
The text was updated successfully, but these errors were encountered: