Title: bpo-32782: PEP3118 itemsize of an empty ctypes array should not be 0 by eric-wieser · Pull Request #5576 · python/cpython · GitHub
Open Graph Title: bpo-32782: PEP3118 itemsize of an empty ctypes array should not be 0 by eric-wieser · Pull Request #5576 · python/cpython
X Title: bpo-32782: PEP3118 itemsize of an empty ctypes array should not be 0 by eric-wieser · Pull Request #5576 · python/cpython
Description: The itemsize should be computed from the item type, not by dividing the total size by the length and assuming that the length is not zero. The tests already expected this behavior, they were just missing the test-case needed to trigger it. https://bugs.python.org/issue32782 (fixes #76963)
Open Graph Description: The itemsize should be computed from the item type, not by dividing the total size by the length and assuming that the length is not zero. The tests already expected this behavior, they were just m...
X Description: The itemsize should be computed from the item type, not by dividing the total size by the length and assuming that the length is not zero. The tests already expected this behavior, they were just m...
Opengraph URL: https://github.com/python/cpython/pull/5576
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:a0bd7c40-833c-9275-39cd-e5a87330f817 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D442:2B0D32:264B005:35F7A27:69691C42 |
| html-safe-nonce | 6ee12797df7b3410cb0199a3411c076088d3891dd26bccf5d06f493a6909a756 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDQyOjJCMEQzMjoyNjRCMDA1OjM1RjdBMjc6Njk2OTFDNDIiLCJ2aXNpdG9yX2lkIjoiNDcwNjUyMTY0MjU3NTY2NjI0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b297a002cc1956cb55affcf341124d584789e42ca1c31e8db0129704c92d8a0e |
| hovercard-subject-tag | pull_request:167615296 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/python/cpython/pull/5576/checks |
| twitter:image | https://avatars.githubusercontent.com/u/425260?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/425260?s=400&v=4 |
| og:image:alt | The itemsize should be computed from the item type, not by dividing the total size by the length and assuming that the length is not zero. The tests already expected this behavior, they were just m... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e60568924309a021b51adabdce15c2a2f285b556f3130d1a2fa2a5bce11c55f |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd206f7ed6207863172be4a783826e86bd2375c3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width