cpython/Modules/_ctypes
Miss Islington (bot) 95c55a69b3
[3.10] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) (#100451)
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:55:55 +00:00
..
darwin
libffi_osx Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
_ctypes.c [3.10] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) (#100451) 2022-12-23 08:55:55 +00:00
_ctypes_test.c [3.10] Remove trailing spaces (GH-28709) 2021-10-03 20:03:49 +03:00
_ctypes_test.h
callbacks.c [3.10] gh-91118: Fix docstrings that do not honor --without-doc-strings (GH-31769) (#91662) 2022-04-19 13:01:09 -07:00
callproc.c [3.10] gh-92119: ctypes: Print exception class name instead of its representation (GH-98302) (#99452) 2022-11-13 15:55:58 -08:00
cfield.c [3.10] gh-91118: Fix docstrings that do not honor --without-doc-strings (GH-31769) (#91662) 2022-04-19 13:01:09 -07:00
ctypes.h [3.10] Fix typos in the Modules directory (GH-28761) (GH-28781) 2021-10-07 01:55:18 -07:00
ctypes_dlfcn.h Remove outdated PEP 291 compatibility requirement comment 2016-05-14 05:55:38 +00:00
malloc_closure.c bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868) 2020-12-22 03:12:07 -08:00
stgdict.c gh-99275: Fix SystemError in ctypes during __initsubclass__ (GH-99283) 2022-11-13 11:40:18 -08:00