FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.10] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) by miss-islington · Pull Request #100451 · python/cpython · GitHub

/ cpython Public

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

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

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

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


Back | FazBrowse Home | New Git URL