cpython/Lib/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
..
macholib gh-91265: Make old ctypes.macholib tests runned by python -m test (gh-32094) 2022-04-18 09:27:09 +02:00
test [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
__init__.py bpo-33178: Add BigEndianUnion, LittleEndianUnion classes to ctypes (GH-25480) 2022-03-29 14:26:27 -07:00
_aix.py Fix typos in the Lib directory (GH-28775) 2021-10-06 16:13:48 -07:00
_endian.py bpo-33178: Add BigEndianUnion, LittleEndianUnion classes to ctypes (GH-25480) 2022-03-29 14:26:27 -07:00
util.py bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598) 2020-10-08 19:31:19 +01:00
wintypes.py