Title: Use type flag instead of custom constructor in `_struct.unpack_iterator` · Issue #104276 · python/cpython · GitHub
Open Graph Title: Use type flag instead of custom constructor in `_struct.unpack_iterator` · Issue #104276 · python/cpython
X Title: Use type flag instead of custom constructor in `_struct.unpack_iterator` · Issue #104276 · python/cpython
Description: Currently _struct.unpack_iterator type defines its own constructor just to report to user that it isn't instantiable (with a typo, by the way): cpython/Modules/_struct.c Lines 1835 to 1838 in 8d95012 PyObject *unpackiter_new(PyTypeObject...
Open Graph Description: Currently _struct.unpack_iterator type defines its own constructor just to report to user that it isn't instantiable (with a typo, by the way): cpython/Modules/_struct.c Lines 1835 to 1838 in 8d950...
X Description: Currently _struct.unpack_iterator type defines its own constructor just to report to user that it isn't instantiable (with a typo, by the way): cpython/Modules/_struct.c Lines 1835 to 1838 in 8...
Opengraph URL: https://github.com/python/cpython/issues/104276
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use type flag instead of custom constructor in `_struct.unpack_iterator`","articleBody":"Currently `_struct.unpack_iterator` type defines its own constructor just to report to user that it isn't instantiable (with a typo, by the way):\r\n\r\nhttps://github.com/python/cpython/blob/8d95012c95988dc517db6e09348aab996868699c/Modules/_struct.c#L1835-L1838\r\n\r\nIt can be easily removed and replaced by appropriate type flag. I'll submit a PR.\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-104277\r\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/chgnrdv","@type":"Person","name":"chgnrdv"},"datePublished":"2023-05-07T20:59:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/104276/cpython/issues/104276"}
| 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:0830beac-e6a1-b273-c150-2a39a6bf79ec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92C2:31CE75:2600E5:31C08C:69697953 |
| html-safe-nonce | b4e92153438c57eedf4c1d3a34aa75484e8fdb4c0e66b59b0d24216085f03742 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkMyOjMxQ0U3NToyNjAwRTU6MzFDMDhDOjY5Njk3OTUzIiwidmlzaXRvcl9pZCI6IjY0OTc2NTI0NTk2MTY5NTg4MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7328566e2b511ff7864d58d5db5415af51b31267ff8641ec60caf04829ffba6c |
| hovercard-subject-tag | issue:1699234269 |
| 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/104276/issue_layout |
| twitter:image | https://opengraph.githubassets.com/607da9b8b1e600998e5734b270dcd7521938e635fd00d29ea26f2a34475d35ef/python/cpython/issues/104276 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/607da9b8b1e600998e5734b270dcd7521938e635fd00d29ea26f2a34475d35ef/python/cpython/issues/104276 |
| og:image:alt | Currently _struct.unpack_iterator type defines its own constructor just to report to user that it isn't instantiable (with a typo, by the way): cpython/Modules/_struct.c Lines 1835 to 1838 in 8d950... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chgnrdv |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| 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 | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width