Title: Documentation for date and datetime comparison is outdated · Issue #114728 · python/cpython · GitHub
Open Graph Title: Documentation for date and datetime comparison is outdated · Issue #114728 · python/cpython
X Title: Documentation for date and datetime comparison is outdated · Issue #114728 · python/cpython
Description: The implementation of comparison for date and datetime objects was changed 18 years ago, in 1996059, but the documentation still describes the old behavior, with special-casing of other objects with a timetuple attribute. There were also...
Open Graph Description: The implementation of comparison for date and datetime objects was changed 18 years ago, in 1996059, but the documentation still describes the old behavior, with special-casing of other objects wit...
X Description: The implementation of comparison for date and datetime objects was changed 18 years ago, in 1996059, but the documentation still describes the old behavior, with special-casing of other objects wit...
Opengraph URL: https://github.com/python/cpython/issues/114728
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Documentation for date and datetime comparison is outdated","articleBody":"The implementation of comparison for `date` and `datetime` objects was changed 18 years ago, in 19960597adb65c9ecd33e4c3d320390eecd38625, but the documentation still describes the old behavior, with special-casing of other objects with a `timetuple` 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.\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-114749\n* gh-114928\n* gh-114929\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2024-01-29T18:09:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/114728/cpython/issues/114728"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:12841406-d274-129e-7945-9dc410037933 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB20:3E375C:517A0A:6CA3BB:6A5048F9 |
| html-safe-nonce | 62f5bad290513282c5930bd9c6faf872aa52dec8ea639e138c90265a8f6a04ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjIwOjNFMzc1Qzo1MTdBMEE6NkNBM0JCOjZBNTA0OEY5IiwidmlzaXRvcl9pZCI6IjQ3NTQxMjA2OTkyNTMxMTUxMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 266945062ef5415a44726fe978865d040438a1e31f969c4bdfd108aa83f1246f |
| hovercard-subject-tag | issue:2106131664 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/114728/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e8238ef06e97d874ffbb097fdbfc97453672ce9093fe10f3631eb77a0dd133b/python/cpython/issues/114728 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e8238ef06e97d874ffbb097fdbfc97453672ce9093fe10f3631eb77a0dd133b/python/cpython/issues/114728 |
| og:image:alt | The implementation of comparison for date and datetime objects was changed 18 years ago, in 1996059, but the documentation still describes the old behavior, with special-casing of other objects wit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5741a45fe07e5f377d0d4c524a92e3056acc51bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width