Title: Add `is_integer` to fractions.Fraction · Issue #100488 · python/cpython · GitHub
Open Graph Title: Add `is_integer` to fractions.Fraction · Issue #100488 · python/cpython
X Title: Add `is_integer` to fractions.Fraction · Issue #100488 · python/cpython
Description: Requested by @mdickinson in #100268 (comment) The case for: Improves duck type compatibility between Fraction and float (and now int) Simple to implement; hopefully low maintenance cost The case against: Not aware of much demand for it f...
Open Graph Description: Requested by @mdickinson in #100268 (comment) The case for: Improves duck type compatibility between Fraction and float (and now int) Simple to implement; hopefully low maintenance cost The case ag...
X Description: Requested by @mdickinson in #100268 (comment) The case for: Improves duck type compatibility between Fraction and float (and now int) Simple to implement; hopefully low maintenance cost The case ag...
Opengraph URL: https://github.com/python/cpython/issues/100488
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `is_integer` to fractions.Fraction","articleBody":"Requested by @mdickinson in https://github.com/python/cpython/issues/100268#issuecomment-1363885807\r\n\r\nThe case for:\r\n- Improves duck type compatibility between Fraction and float (and now int)\r\n- Simple to implement; hopefully low maintenance cost\r\n\r\nThe case against:\r\n- Not aware of much demand for it from users\r\n- The case for int.is_integer is much stronger, since the PEP 484 type system conflates `float` and `int | float`\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-100489\r\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/hauntsaninja","@type":"Person","name":"hauntsaninja"},"datePublished":"2022-12-24T04:07:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/100488/cpython/issues/100488"}
| 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:a74e0436-47f4-e2eb-f935-254cc6a76057 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D988:17997A:8F5DC3:C07BC0:6969BEA2 |
| html-safe-nonce | 8fba7d94e2ee958620d4f5cb6646ee852de23766dc4968062b57a4629f9309d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTg4OjE3OTk3QTo4RjVEQzM6QzA3QkMwOjY5NjlCRUEyIiwidmlzaXRvcl9pZCI6IjY1MDM5OTYwODc2NTg0NjI4ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a28c69c4028732e6fa0d22a35015c9f5731bebee9cc8b8383395573eac208ba5 |
| hovercard-subject-tag | issue:1509929888 |
| 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/100488/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c986cd4da5f9bc83471db9c33aea2674d6feca66298c5f19d2ea21758e4afc65/python/cpython/issues/100488 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c986cd4da5f9bc83471db9c33aea2674d6feca66298c5f19d2ea21758e4afc65/python/cpython/issues/100488 |
| og:image:alt | Requested by @mdickinson in #100268 (comment) The case for: Improves duck type compatibility between Fraction and float (and now int) Simple to implement; hopefully low maintenance cost The case ag... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hauntsaninja |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width