Title: Making a class formattable as hex/oct integer with printf-style formatting requires both __int__ and __index__ for no good reason · Issue #77183 · python/cpython · GitHub
Open Graph Title: Making a class formattable as hex/oct integer with printf-style formatting requires both __int__ and __index__ for no good reason · Issue #77183 · python/cpython
X Title: Making a class formattable as hex/oct integer with printf-style formatting requires both __int__ and __index__ for no good reason · Issue #77183 · python/cpython
Description: BPO 33002 Nosy @mdickinson, @ericvsmith, @serhiy-storchaka, @MojoVampire, @tirkarthi Superseder bpo-36048: Deprecate implicit truncating when convert Python numbers to C integers: use index, not int Note: these values reflect the state o...
Open Graph Description: BPO 33002 Nosy @mdickinson, @ericvsmith, @serhiy-storchaka, @MojoVampire, @tirkarthi Superseder bpo-36048: Deprecate implicit truncating when convert Python numbers to C integers: use index, not in...
X Description: BPO 33002 Nosy @mdickinson, @ericvsmith, @serhiy-storchaka, @MojoVampire, @tirkarthi Superseder bpo-36048: Deprecate implicit truncating when convert Python numbers to C integers: use index, not in...
Opengraph URL: https://github.com/python/cpython/issues/77183
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Making a class formattable as hex/oct integer with printf-style formatting requires both __int__ and __index__ for no good reason","articleBody":"BPO | [33002](https://bugs.python.org/issue33002)\n--- | :---\nNosy | @mdickinson, @ericvsmith, @serhiy-storchaka, @MojoVampire, @tirkarthi\nSuperseder | \u003cli\u003ebpo-36048: Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2019-03-14.14:58:36.318\u003e\ncreated_at = \u003cDate 2018-03-05.21:07:14.038\u003e\nlabels = ['interpreter-core', '3.7', '3.8']\ntitle = 'Making a class formattable as hex/oct integer with printf-style formatting requires both __int__ and __index__ for no good reason'\nupdated_at = \u003cDate 2019-03-14.14:58:36.316\u003e\nuser = 'https://github.com/MojoVampire'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2019-03-14.14:58:36.316\u003e\nactor = 'serhiy.storchaka'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2019-03-14.14:58:36.318\u003e\ncloser = 'serhiy.storchaka'\ncomponents = ['Interpreter Core']\ncreation = \u003cDate 2018-03-05.21:07:14.038\u003e\ncreator = 'josh.r'\ndependencies = []\nfiles = []\nhgrepos = []\nissue_num = 33002\nkeywords = []\nmessage_count = 5.0\nmessages = ['313285', '313286', '313288', '313311', '337928']\nnosy_count = 5.0\nnosy_names = ['mark.dickinson', 'eric.smith', 'serhiy.storchaka', 'josh.r', 'xtreak']\npr_nums = []\npriority = 'normal'\nresolution = 'duplicate'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = '36048'\ntype = None\nurl = 'https://bugs.python.org/issue33002'\nversions = ['Python 3.7', 'Python 3.8']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/MojoVampire","@type":"Person","name":"MojoVampire"},"datePublished":"2018-03-05T21:07:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/77183/cpython/issues/77183"}
| 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:909c1ada-42ab-ecbe-9398-109d13757493 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF5E:1EEA:BA2EB3:102F54F:6A4F4360 |
| html-safe-nonce | ed4eebdb8fbc6ceca91ea8ad7204f133c55ef92e5ffd392fbd382433f99888c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjVFOjFFRUE6QkEyRUIzOjEwMkY1NEY6NkE0RjQzNjAiLCJ2aXNpdG9yX2lkIjoiMTM2ODIzNzMxMjU1MTk4NTYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6c3b89eeb85dd157487e33b4b8d228c21b0b4b64d69d3a6487111790c3c3cd09 |
| hovercard-subject-tag | issue:1198988554 |
| 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/77183/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ea233b7a7a8c6ca4243e6e1ddfd0ac74bc8270f59697a6a434098dec140da33/python/cpython/issues/77183 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ea233b7a7a8c6ca4243e6e1ddfd0ac74bc8270f59697a6a434098dec140da33/python/cpython/issues/77183 |
| og:image:alt | BPO 33002 Nosy @mdickinson, @ericvsmith, @serhiy-storchaka, @MojoVampire, @tirkarthi Superseder bpo-36048: Deprecate implicit truncating when convert Python numbers to C integers: use index, not in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MojoVampire |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width