← 返回首页
[3.11] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) by miss-islington · Pull Request #100452 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

[3.11] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576)#100452

Merged
mdickinson merged 1 commit into
python:3.11from
miss-islington:backport-84bc6a4-3.11
Dec 23, 2022
Merged

[3.11] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576)#100452
mdickinson merged 1 commit into
python:3.11from
miss-islington:backport-84bc6a4-3.11

Conversation

miss-islington commented Dec 23, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero.
(cherry picked from commit 84bc6a4)

Co-authored-by: Eric Wieser wieser.eric@gmail.com

…be 0 (pythonGH-5576) The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero. (cherry picked from commit 84bc6a4) Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Footer

© 2026 GitHub, Inc.