cpython/Modules/_ctypes
Miss Islington (bot) f6fe4bb75c
[3.11] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) (GH-100452)
gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-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 84bc6a4f25)

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
2022-12-23 08:56:20 +00:00
..
darwin Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
libffi_osx remove the repeat 'the' (#29455) 2021-11-08 10:19:54 +02:00
_ctypes.c [3.11] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) (GH-100452) 2022-12-23 08:56:20 +00:00
_ctypes_test.c bpo-45434: pyport.h no longer includes <stdlib.h> (GH-28914) 2021-10-13 19:25:53 +02:00
_ctypes_test.h
callbacks.c [3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638) 2022-11-21 11:22:10 +01:00
callproc.c [3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638) 2022-11-21 11:22:10 +01:00
cfield.c gh-78878: Fix crash when creating an instance of _ctypes.CField (GH-14837) 2022-12-21 10:02:05 -08:00
ctypes.h [3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638) 2022-11-21 11:22:10 +01:00
ctypes_dlfcn.h Remove outdated PEP 291 compatibility requirement comment 2016-05-14 05:55:38 +00:00
malloc_closure.c [3.11] gh-99337: Fix compile errors with gcc 12 on macOS (GH-99470) (#99638) 2022-11-21 11:22:10 +01:00
stgdict.c gh-78878: Fix crash when creating an instance of _ctypes.CField (GH-14837) 2022-12-21 10:02:05 -08:00