cpython/Modules
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
..
_blake2 bpo-43908: Mark ssl, hash, and hmac types as immutable (GH-25792) 2021-05-02 09:47:45 +02:00
_ctypes [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
_decimal bpo-45332: Fix broken Decimal test and benchmark (GH-28680) 2021-10-01 07:16:37 -07:00
_io [3.10] bpo-31718: Fix io.IncrementalNewlineDecoder SystemErrors and s… (#99842) 2022-11-28 16:57:37 +05:30
_multiprocessing GH-94736: Fix _multiprocessing.SemLock subclassing (GH-94738) 2022-07-11 05:39:09 -07:00
_sha3 [3.10] GH-98671: bpo-46670: Fix #ifdef in sha3module.c (GH-90828) (#98677) 2022-10-28 12:13:44 +02:00
_sqlite [3.10] gh-94321: Document sqlite3.PrepareProtocol (GH-94620) (#94671) 2022-07-08 01:44:09 +02:00
_ssl bpo-43908: Mark ssl, hash, and hmac types as immutable (GH-25792) 2021-05-02 09:47:45 +02:00
_xxtestfuzz Fix typo in fuzzer.c (GH-25013) 2021-03-25 00:47:21 +09:00
cjkcodecs bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766) 2021-06-17 11:19:44 +01:00
clinic [3.10] gh-99240: Fix double-free bug in Argument Clinic str_converter generated code (GH-99241) (#100353) 2022-12-20 15:50:42 +05:30
expat gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742) 2022-10-27 14:22:18 -07:00
_abc.c bpo-43977: Properly update the tp_flags of existing subclasses when their parents are registered (GH-26864) 2021-06-25 08:46:23 -07:00
_asynciomodule.c [3.10] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created (#100059) 2022-12-06 18:40:30 +01:00
_bisectmodule.c gh-92839: fixed typo in _bisectmodule.c (line 131) (GH-92849) (#93321) 2022-05-28 13:48:25 -05:00
_bz2module.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766) 2021-06-17 11:19:44 +01:00
_codecsmodule.c [3.10] bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28952) 2021-10-14 21:23:39 +03:00
_collectionsmodule.c bpo-41621: Document defaultdict's default_factory parameter (GH-21945) 2021-06-23 10:58:20 -04:00
_contextvarsmodule.c bpo-1635741: _contextvars uses PyModule_AddType() (GH-23147) 2020-11-04 16:33:55 +01:00
_cryptmodule.c closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394) (GH-28636) 2021-09-30 01:02:11 +02:00
_csv.c gh-65496: Correct wording on csv's skipinitialspace argument (GH-96170) 2022-10-07 12:30:39 -07:00
_curses_panel.c bpo-43916: Add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag (GH-25721) 2021-04-30 12:46:15 +02:00
_cursesmodule.c GH-94644: fix test_curses ref leak (GH-94647) 2022-07-07 04:41:06 -07:00
_datetimemodule.c gh-91838: Resolve HTTP links which redirect to HTTPS (GH-95642) 2022-08-04 06:15:01 -07:00
_dbmmodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766) 2021-06-17 11:19:44 +01:00
_elementtree.c bpo-45948: Remove constructor discrepancy in C version of ElementTree.XMLParser (GH-31152) 2022-02-12 00:50:11 -08:00
_functoolsmodule.c gh-96641: Do not expose KeyWrapper in _functoolsmodule.c (gh-96642) 2022-09-07 04:50:15 -07:00
_gdbmmodule.c [3.10] bpo-45060: Get rid of few uses of the equality operators with None (GH-28087). (GH-28092) 2021-09-03 21:13:00 -04:00
_hashopenssl.c DOC: correct bytesarray -> bytearray in comments (GH-92410) (GH-94090) 2022-06-22 10:48:14 +02:00
_heapqmodule.c bpo-41078: Add pycore_list.h internal header file (GH-21057) 2020-06-22 17:39:32 +02:00
_json.c [3.10] Remove trailing spaces (GH-28709) 2021-10-03 20:03:49 +03:00
_localemodule.c bpo-42519: Replace PyMem_MALLOC() with PyMem_Malloc() (GH-23586) 2020-12-01 09:56:42 +01:00
_lsprof.c GH-95045: gc untrack _lsprof.Profiler before deallocating it (GH-95315) 2022-07-27 05:28:26 -07:00
_lzmamodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766) 2021-06-17 11:19:44 +01:00
_math.c [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511) 2021-09-22 01:33:59 +02:00
_math.h Issue #28256: Cleanup _math.c 2016-10-18 16:29:27 +02:00
_opcode.c bpo-1635741: Port _opcode module to multi-phase init (PEP 489) (GH-22050) 2020-09-07 10:48:44 +02:00
_operator.c DOC: correct bytesarray -> bytearray in comments (GH-92410) (GH-94090) 2022-06-22 10:48:14 +02:00
_pickle.c gh-83004: Clean up refleak in _pickle initialisation (GH-98841) 2022-11-06 06:44:28 -08:00
_posixsubprocess.c [3.10] gh-91401: Conservative backport of subprocess._USE_VFORK (#91932) 2022-05-01 16:09:50 -07:00
_queuemodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766) 2021-06-17 11:19:44 +01:00
_randommodule.c Eliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909) 2021-05-04 21:39:09 -07:00
_scproxy.c bpo-1635741: port scproxy to multi-phase init (GH-22164) 2020-09-09 12:28:48 +09:00
_sre.c [3.10] gh-98740: Fix validation of conditional expressions in RE (GH-98764) (GH-99046) 2022-11-03 12:18:50 +02:00
_ssl.c gh-95095: Use SSL_CTX_get_max_proto_version instead of SSL_CTX_ctrl (GH-95096) 2022-07-21 12:10:53 -07:00
_ssl.h bpo-18233: Add internal methods to access peer chain (GH-25467) 2021-04-26 15:01:40 +02:00
_ssl_data.h closes bpo-40266, closes bpo-39953: Use numeric lib code if compiling against old OpenSSL. (GH-19506) 2020-04-13 22:11:40 -05:00
_ssl_data_111.h bpo-43788: Generate version specific _ssl_data.h (GH-25300) 2021-04-09 08:02:00 -07:00
_ssl_data_300.h bpo-43788: Generate version specific _ssl_data.h (GH-25300) 2021-04-09 08:02:00 -07:00
_stat.c bpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206) 2020-05-19 13:22:16 +01:00
_statisticsmodule.c bpo-40268: Remove unused structmember.h includes (GH-19530) 2020-04-15 02:35:41 +02:00
_struct.c GH-94254: Make _struct module types immutable (GH-94269) 2022-06-26 03:45:00 -07:00
_testbuffer.c bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587) 2020-12-01 10:37:39 +01:00
_testcapimodule.c [3.10] gh-99240: Reset pointer to NULL when the pointed memory is freed in argument parsing (GH-99890) (#100386) 2022-12-21 15:33:21 +05:30
_testclinic.c [3.10] gh-99240: Fix double-free bug in Argument Clinic str_converter generated code (GH-99241) (#100353) 2022-12-20 15:50:42 +05:30
_testimportmultiple.c
_testinternalcapi.c Fix NULL test in _testinternalcapi (GH-92861) 2022-05-16 18:54:47 -07:00
_testmultiphase.c [3.10] bpo-46433: _PyType_GetModuleByDef: handle static types in MRO (GH-30696) (GH-31262) 2022-02-11 12:25:25 +01:00
_threadmodule.c [3.10] Fix typos in the Modules directory (GH-28761) (GH-28781) 2021-10-07 01:55:18 -07:00
_tkinter.c [3.10] Fix typos in the Modules directory (GH-28761) (GH-28781) 2021-10-07 01:55:18 -07:00
_tracemalloc.c bpo-46280: Fix tracemalloc_copy_domain() (GH-30591) 2022-01-13 20:32:40 -08:00
_uuidmodule.c bpo-40501: Replace ctypes code in uuid with native module (GH-19948) 2020-05-12 23:32:32 +01:00
_weakref.c bpo-40170: PyObject_GET_WEAKREFS_LISTPTR() becomes a function (GH-19377) 2020-04-06 14:07:02 +02:00
_winapi.c bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684) 2022-12-02 10:13:33 +00:00
_xxsubinterpretersmodule.c bpo-43916: Add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag (GH-25721) 2021-04-30 12:46:15 +02:00
_zoneinfo.c gh-83004: Clean up refleak in _zoneinfo initialisation (GH-98842) 2022-11-06 06:38:26 -08:00
addrinfo.h replace PY_LONG_LONG with long long 2016-09-06 10:46:49 -07:00
arraymodule.c [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511) 2021-09-22 01:33:59 +02:00
atexitmodule.c fixes gh-96292: Fix Trivial Typo in cpython/Modules/atexitmodule.c (GH-96327) 2022-08-26 22:53:47 -07:00
audioop.c [3.10] bpo-2716: add license for audioop module (GH-19972) (#98532) 2022-10-28 12:11:26 +02:00
binascii.c [3.10] bpo-38256: Fix binascii.crc32 large input. (GH-32000) (GH-32013) 2022-03-20 14:46:52 -07:00
cmathmodule.c bpo-1635741: Port cmath to multi-phase init (PEP 489) (GH-22165) 2020-09-10 16:09:04 +02:00
config.c.in rename _imp initialization function to follow conventions (#5432) 2018-01-29 11:33:57 -08:00
errnomodule.c bpo-1635741: Port errno module to multiphase initialization (GH-19923) 2020-05-07 10:17:16 +09:00
faulthandler.c gh-96055: Update faulthandler to emit proper unexpect signal number (gh-99162) 2022-11-06 22:05:20 -08:00
fcntlmodule.c bpo-41586: Add pipesize parameter to subprocess & F_GETPIPE_SZ and F_SETPIPE_SZ to fcntl. (GH-21921) 2020-10-19 16:30:02 -07:00
gc_weakref.txt [3.10] Fix typos in the Modules directory (GH-28761) (GH-28781) 2021-10-07 01:55:18 -07:00
gcmodule.c gh-92036: Fix gc_fini_untrack() (GH-92037) 2022-05-04 03:23:29 -07:00
getaddrinfo.c bpo-32241: Add the const qualifire to declarations of umodifiable strings. (#4748) 2017-12-12 13:55:04 +02:00
getbuildinfo.c bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100) 2021-10-20 10:41:35 -07:00
getnameinfo.c gh-84461: Silence some compiler warnings on WASM (GH-93978) (#94025) 2022-06-20 16:09:55 +02:00
getpath.c [3.10] Fix typos in the Modules directory (GH-28761) (GH-28781) 2021-10-07 01:55:18 -07:00
grpmodule.c bpo-1635741: Port grp and pwd to multiphase initialization (GH-23360) 2020-11-18 23:47:32 -08:00
hashlib.h hashlib: Fix old message about unicode objects. (GH-28653) 2021-10-01 05:58:37 -07:00
itertoolsmodule.c [3.10] gh-60203: Revert changes in cycle.__setstate__ (GH-99982) (#100017) 2022-12-05 17:58:30 +01:00
ld_so_aix.in Issue #10656: Fix out-of-tree building on AIX 2016-11-20 07:56:37 +00:00
main.c Typo in comment (GH-24199) 2021-01-25 14:51:48 -08:00
makesetup bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161) 2021-10-22 11:22:01 -07:00
makexp_aix bpo-42087: Remove support for AIX 5.3 and below (GH-22830) 2020-11-16 16:16:10 +01:00
mathmodule.c GH-98897: fix memory leak if math.dist raises exception (GH-98898) 2022-10-31 19:47:29 -07:00
md5module.c [3.10] bpo-42972: Fully support GC for hashlib heap types (GH-26374) (GH-26398) 2021-05-27 01:10:39 -07:00
mmapmodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766) 2021-06-17 11:19:44 +01:00
nismodule.c bpo-40950: Port nis module to multiphase initialization (GH-20811) 2020-06-12 11:26:00 +09:00
ossaudiodev.c [3.10] bpo-46053: Fix OSS audio support on NetBSD (GH-30065). (GH-95477) 2022-07-31 11:19:09 +03:00
overlapped.c [3.10] gh-98793: Fix typecheck in overlapped.c (GH-98835) (#98890) 2022-10-31 11:22:02 -07:00
posixmodule.c GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler (GH-95897) 2022-11-26 02:13:30 -08:00
posixmodule.h [3.10] bpo-41498: Fix build on platforms without sigset_t (GH-29770) (GH-29773) 2021-11-25 03:53:07 -08:00
pwdmodule.c bpo-1635741: Port grp and pwd to multiphase initialization (GH-23360) 2020-11-18 23:47:32 -08:00
pyexpat.c bpo-45329: Fix freed memory access in pyexpat.c (GH-28649) 2021-10-02 06:21:55 -07:00
readline.c Fix readline.c compiler warning. (GH-98738) 2022-10-26 16:28:40 -07:00
README
resource.c bpo-42960: Add resource.RLIMIT_KQUEUES constant from FreeBSD (GH-24251) 2021-02-18 16:26:20 +01:00
rotatingtree.c
rotatingtree.h bpo-32150: Expand tabs to spaces in C files. (#4583) 2017-11-28 17:56:10 +02:00
selectmodule.c [3.10] bpo-41857: mention timeout argument units in select.poll() and select.depoll() doc-strings (GH-22406) 2022-01-21 11:02:25 +02:00
Setup bpo-40137: Add pycore_moduleobject.h internal header (GH-25507) 2021-04-22 00:52:52 +02:00
sha1module.c [3.10] Fix typos in the Modules directory (GH-28761) (GH-28781) 2021-10-07 01:55:18 -07:00
sha256module.c [3.10] bpo-42972: Fully support GC for hashlib heap types (GH-26374) (GH-26398) 2021-05-27 01:10:39 -07:00
sha512module.c [3.10] bpo-42972: Fully support GC for hashlib heap types (GH-26374) (GH-26398) 2021-05-27 01:10:39 -07:00
signalmodule.c gh-84461: Silence some compiler warnings on WASM (GH-93978) (#94025) 2022-06-20 16:09:55 +02:00
socketmodule.c gh-94821: Fix autobind of empty unix domain address (GH-94826) 2022-07-17 08:39:30 -07:00
socketmodule.h bpo-41798: Allocate _socket module C API on the heap (GH-24126) 2021-01-06 20:43:06 +01:00
spwdmodule.c bpo-1635741: Port spwd to multiphase initialization (GH-23390) 2020-11-19 10:54:03 +01:00
sre.h bpo-23691: Protect the re.finditer() iterator from re-entering (GH-32012) 2022-03-21 04:30:58 -07:00
sre_constants.h bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group flags for RE. (#3885) 2017-10-24 23:31:42 +03:00
sre_lib.h bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587) 2020-12-01 10:37:39 +01:00
symtablemodule.c bpo-42725: Render annotations effectless on symbol table with PEP 563 (GH-25583) 2021-05-03 10:43:00 +03:00
syslogmodule.c gh-98178: syslog() is not thread-safe on macOS (GH-98213) 2022-10-13 05:05:18 -07:00
termios.c [3.10] GH-97001: Release GIL in termios extension (GH-99503) (#99680) 2022-11-22 12:33:32 +01:00
testcapi_long.h
timemodule.c bpo-37205: time.time() cannot fail with fatal error (GH-23314) 2020-11-16 16:08:05 +01:00
tkappinit.c
tkinter.h
unicodedata.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766) 2021-06-17 11:19:44 +01:00
unicodedata_db.h closes bpo-39926: Update Unicode to 13.0.0. (GH-18910) 2020-03-10 20:41:34 -07:00
unicodename_db.h closes bpo-39926: Update Unicode to 13.0.0. (GH-18910) 2020-03-10 20:41:34 -07:00
winreparse.h bpo-31512: Add non-elevated symlink support for Windows (GH-3652) 2019-04-09 11:19:46 -07:00
xxlimited.c bpo-42972: Fully implement GC protocol for xxlimited (GH-26451) (GH-26460) 2021-05-31 12:23:13 +01:00
xxlimited_35.c gh-90763: Modernise xx template module initialisation (GH-93078) 2022-06-10 04:16:57 -07:00
xxmodule.c gh-90763: Modernise xx template module initialisation (GH-93078) 2022-06-10 04:16:57 -07:00
xxsubtype.c bpo-40268: Remove unused structmember.h includes (GH-19530) 2020-04-15 02:35:41 +02:00
zlibmodule.c [3.10] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587) (GH-29811) 2021-11-26 16:42:00 -08:00

Source files for standard library extension modules,
and former extension modules that are now builtin modules.