The Wayback Machine - https://web.archive.org/web/20221223191312/https://github.com/python/cpython/pull/5576/commits
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-32782: PEP3118 itemsize of an empty ctypes array should not be 0 #5576

Merged
merged 6 commits into from Dec 23, 2022

Commits on Jun 6, 2019

  1. bpo-32782: PEP3118 itemsize of an empty ctypes array should not be 0

    The itemsize returned in a memoryview of a ctypes array should be computed from the item type, not by dividing the total size by the length and assuming that the length is not zero.
    eric-wieser committed Jun 6, 2019