Title: Allow struct.pack to handle objects with an __index__ method. · Issue #52547 · python/cpython · GitHub
Open Graph Title: Allow struct.pack to handle objects with an __index__ method. · Issue #52547 · python/cpython
X Title: Allow struct.pack to handle objects with an __index__ method. · Issue #52547 · python/cpython
Description: BPO 8300 Nosy @mdickinson, @meadori, @anacrolix Files struct_index_trunk.patchstruct_index_trunk2.patchstruct_index_trunk3.patch Note: these values reflect the state of the issue at the time it was migrated and might not reflect the curr...
Open Graph Description: BPO 8300 Nosy @mdickinson, @meadori, @anacrolix Files struct_index_trunk.patchstruct_index_trunk2.patchstruct_index_trunk3.patch Note: these values reflect the state of the issue at the time it was...
X Description: BPO 8300 Nosy @mdickinson, @meadori, @anacrolix Files struct_index_trunk.patchstruct_index_trunk2.patchstruct_index_trunk3.patch Note: these values reflect the state of the issue at the time it was...
Opengraph URL: https://github.com/python/cpython/issues/52547
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow struct.pack to handle objects with an __index__ method.","articleBody":"BPO | [8300](https://bugs.python.org/issue8300)\n--- | :---\nNosy | @mdickinson, @meadori, @anacrolix\nFiles | \u003cli\u003e[struct_index_trunk.patch](https://bugs.python.org/file16746/struct_index_trunk.patch \"Uploaded as text/plain at 2010-04-03.13:24:11 by @mdickinson\")\u003c/li\u003e\u003cli\u003e[struct_index_trunk2.patch](https://bugs.python.org/file16748/struct_index_trunk2.patch \"Uploaded as text/plain at 2010-04-03.13:57:05 by @mdickinson\")\u003c/li\u003e\u003cli\u003e[struct_index_trunk3.patch](https://bugs.python.org/file16751/struct_index_trunk3.patch \"Uploaded as text/plain at 2010-04-04.00:38:04 by @meadori\")\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 = 'https://github.com/mdickinson'\nclosed_at = \u003cDate 2010-04-05.07:47:44.833\u003e\ncreated_at = \u003cDate 2010-04-03.11:51:46.746\u003e\nlabels = ['extension-modules', 'type-feature']\ntitle = 'Allow struct.pack to handle objects with an __index__ method.'\nupdated_at = \u003cDate 2011-02-20.04:14:38.102\u003e\nuser = 'https://github.com/mdickinson'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2011-02-20.04:14:38.102\u003e\nactor = 'anacrolix'\nassignee = 'mark.dickinson'\nclosed = True\nclosed_date = \u003cDate 2010-04-05.07:47:44.833\u003e\ncloser = 'mark.dickinson'\ncomponents = ['Extension Modules']\ncreation = \u003cDate 2010-04-03.11:51:46.746\u003e\ncreator = 'mark.dickinson'\ndependencies = []\nfiles = ['16746', '16748', '16751']\nhgrepos = []\nissue_num = 8300\nkeywords = ['patch']\nmessage_count = 14.0\nmessages = ['102245', '102257', '102258', '102262', '102263', '102311', '102325', '102326', '102327', '102361', '102364', '128849', '128877', '128891']\nnosy_count = 3.0\nnosy_names = ['mark.dickinson', 'meador.inge', 'anacrolix']\npr_nums = []\npriority = 'normal'\nresolution = 'accepted'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'enhancement'\nurl = 'https://bugs.python.org/issue8300'\nversions = ['Python 2.7', 'Python 3.2']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/mdickinson","@type":"Person","name":"mdickinson"},"datePublished":"2010-04-03T11:51:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/52547/cpython/issues/52547"}
| 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:577e4482-5dbc-b6cc-d307-fef53066e0ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E210:31006B:1A59E86:230B391:696AF5E8 |
| html-safe-nonce | dfdcd6b2bacf4410d553c99a1d3b6d4d5b730e80faac2d97e2afa6b4be139d0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjEwOjMxMDA2QjoxQTU5RTg2OjIzMEIzOTE6Njk2QUY1RTgiLCJ2aXNpdG9yX2lkIjoiMzg5NDM5MzU1MjI0OTc0NjkyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ad62dfe6090a8372c2e8a49bd8f5e44998c054fd34efad438c360744e2ed6a91 |
| hovercard-subject-tag | issue:1198853783 |
| 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/52547/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3317baacf1ce0baffb75b17743de3e16005d86a91d441d179ca5ac26ed799d32/python/cpython/issues/52547 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3317baacf1ce0baffb75b17743de3e16005d86a91d441d179ca5ac26ed799d32/python/cpython/issues/52547 |
| og:image:alt | BPO 8300 Nosy @mdickinson, @meadori, @anacrolix Files struct_index_trunk.patchstruct_index_trunk2.patchstruct_index_trunk3.patch Note: these values reflect the state of the issue at the time it was... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mdickinson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width