cpython/Modules
Andy Lester e6be9b59a9
closes bpo-39605: Fix some casts to not cast away const. (GH-18453)
gcc -Wcast-qual turns up a number of instances of casting away constness of pointers. Some of these can be safely modified, by either:

Adding the const to the type cast, as in:

-    return _PyUnicode_FromUCS1((unsigned char*)s, size);
+    return _PyUnicode_FromUCS1((const unsigned char*)s, size);

or, Removing the cast entirely, because it's not necessary (but probably was at one time), as in:

-    PyDTrace_FUNCTION_ENTRY((char *)filename, (char *)funcname, lineno);
+    PyDTrace_FUNCTION_ENTRY(filename, funcname, lineno);

These changes will not change code, but they will make it much easier to check for errors in consts
2020-02-11 18:28:35 -08:00
..
_blake2 bpo-39573: Add Py_SET_TYPE() function (GH-18394) 2020-02-07 09:17:07 +01:00
_ctypes bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_decimal bpo-39573: Use Py_SET_SIZE() function (GH-18402) 2020-02-07 23:18:08 +01:00
_io closes bpo-39605: Fix some casts to not cast away const. (GH-18453) 2020-02-11 18:28:35 -08:00
_multiprocessing bpo-39511: Fix multiprocessing semlock_acquire() (GH-18298) 2020-02-01 01:25:59 +01:00
_sha3 bpo-39573: Add Py_SET_TYPE() function (GH-18394) 2020-02-07 09:17:07 +01:00
_sqlite bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_ssl
_xxtestfuzz bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
cjkcodecs bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
clinic bpo-39395: putenv() and unsetenv() always available (GH-18135) 2020-01-24 14:05:48 +01:00
expat bpo-37731: Reorder includes in xmltok.c to avoid redefinition of _POSIX_C_SOURCE (GH-16733) 2019-10-12 20:14:11 +01:00
_abc.c
_asynciomodule.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_bisectmodule.c
_bz2module.c
_codecsmodule.c bpo-1635741: Port _codecs extension module to multiphase initialization (PEP 489) (GH-18065) 2020-02-11 03:16:38 -08:00
_collectionsmodule.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_contextvarsmodule.c bpo-38823: Clean up refleaks in _contextvars initialization. (GH-17198) 2019-11-16 15:57:32 -08:00
_cryptmodule.c closes bpo-38402: Check error of primitive crypt/crypt_r. (GH-16599) 2019-10-07 21:22:17 -07:00
_csv.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_curses_panel.c
_cursesmodule.c bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) 2020-02-07 03:37:06 +01:00
_datetimemodule.c bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) 2020-02-07 03:37:06 +01:00
_dbmmodule.c bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) 2020-02-07 03:37:06 +01:00
_elementtree.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_functoolsmodule.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_gdbmmodule.c bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) 2020-02-07 03:37:06 +01:00
_hashopenssl.c bpo-38684: haslib: fix build when Blake2 not enabled in OpenSSL (#17043) 2019-11-04 15:55:56 +01:00
_heapqmodule.c bpo-39421: Fix posible crash in heapq with custom comparison operators (GH-18118) 2020-01-23 14:07:05 +00:00
_json.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_localemodule.c
_lsprof.c
_lzmamodule.c bpo-21872: fix lzma library decompresses data incompletely (GH-14048) 2019-09-12 15:20:37 +01:00
_math.c
_math.h
_opcode.c
_operator.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_pickle.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_posixsubprocess.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_queuemodule.c
_randommodule.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_scproxy.c
_sre.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_ssl.c bpo-39272: Remove dead assignment from _ssl__SSLContext_load_verify_locations_impl (GH-17916) 2020-01-09 10:12:12 +01:00
_ssl_data.h
_stat.c
_statisticsmodule.c Clean up module initialization. (GH-17215) 2019-11-18 23:16:23 -08:00
_struct.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_testbuffer.c bpo-39573: Add Py_SET_TYPE() function (GH-18394) 2020-02-07 09:17:07 +01:00
_testcapimodule.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
_testimportmultiple.c
_testinternalcapi.c
_testmultiphase.c
_threadmodule.c bpo-38858: Add _Py_IsMainInterpreter(tstate) (GH-17293) 2019-11-20 17:34:39 +01:00
_tkinter.c bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) 2020-02-07 03:37:06 +01:00
_tracemalloc.c bpo-39542: Make _Py_NewReference() opaque in C API (GH-18346) 2020-02-05 01:11:10 +01:00
_uuidmodule.c
_weakref.c
_winapi.c
_xxsubinterpretersmodule.c bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) 2020-02-07 03:37:06 +01:00
addrinfo.h
arraymodule.c bpo-39573: Use Py_SET_SIZE() function (GH-18402) 2020-02-07 23:18:08 +01:00
atexitmodule.c
audioop.c bpo-38303: Make audioop extension module PEP-384 compatible (GH-16497) 2019-10-22 06:07:03 -07:00
binascii.c bpo-39353: binascii.crc_hqx() is no longer deprecated (GH-18276) 2020-01-30 09:56:40 +01:00
cmathmodule.c bpo-38835: Don't use PyFPE_START_PROTECT and PyFPE_END_PROTECT (GH-17231) 2019-11-20 02:51:30 +01:00
config.c.in
errnomodule.c
faulthandler.c bpo-38631: Add _Py_NO_RETURN to functions calling Py_FatalError() (GH-18278) 2020-01-30 13:09:11 +01:00
fcntlmodule.c bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236) 2019-11-19 11:16:29 -08:00
gc_weakref.txt
gcmodule.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
getaddrinfo.c
getbuildinfo.c
getnameinfo.c
getpath.c bpo-38353: Fix typos in calculate_argv0_path_framework() (GH-16695) 2019-10-10 15:42:30 +02:00
grpmodule.c bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) 2020-02-07 03:37:06 +01:00
hashlib.h
hashtable.c
hashtable.h
itertoolsmodule.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
ld_so_aix.in
main.c bpo-38353: Cleanup includes in the internal C API (GH-16548) 2019-10-02 23:51:20 +02:00
makesetup
makexp_aix
mathmodule.c bpo-39396: Fix math.nextafter(-0.0, +0.0) on AIX 7.1 (GH-18094) 2020-01-21 11:14:10 +01:00
md5module.c bpo-39573: Add Py_SET_TYPE() function (GH-18394) 2020-02-07 09:17:07 +01:00
mmapmodule.c bpo-38465: Convert the type of exports counters to Py_ssize_t. (GH-16746) 2019-10-21 09:31:46 +03:00
nismodule.c
ossaudiodev.c
overlapped.c bpo-37445: Include FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageW() calls (GH-14462) 2019-09-09 02:20:38 -07:00
parsermodule.c bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) 2020-02-07 03:37:06 +01:00
posixmodule.c bpo-39184: Add audit events to command execution functions in os and pty modules (GH-17824) 2020-02-05 11:15:00 +11:00
posixmodule.h
pwdmodule.c bpo-38073: Make pwd module PEP-384 compatible (GH-15790) 2019-09-10 05:59:43 -07:00
pyexpat.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
readline.c bpo-38634: Allow non-apple build to cope with libedit (GH-16986) 2019-12-04 17:02:57 +01:00
README
resource.c
rotatingtree.c
rotatingtree.h
selectmodule.c bpo-39239: epoll.unregister() no longer ignores EBADF (GH-17882) 2020-01-07 15:00:02 +01:00
Setup
sha1module.c bpo-39573: Add Py_SET_TYPE() function (GH-18394) 2020-02-07 09:17:07 +01:00
sha256module.c bpo-39573: Add Py_SET_TYPE() function (GH-18394) 2020-02-07 09:17:07 +01:00
sha512module.c bpo-39573: Add Py_SET_TYPE() function (GH-18394) 2020-02-07 09:17:07 +01:00
signalmodule.c closes bpo-38712: Add signal.pidfd_send_signal. (GH-17070) 2019-11-19 20:39:14 -08:00
socketmodule.c bpo-39573: Add Py_SET_TYPE() function (GH-18394) 2020-02-07 09:17:07 +01:00
socketmodule.h bpo-38282: Correctly manage the Bluetooth L2CAP socket structure in FreeBSD (GH-16738) 2019-10-13 02:03:54 +01:00
spwdmodule.c
sre.h
sre_constants.h
sre_lib.h
symtablemodule.c
syslogmodule.c bpo-38361: syslog: fixed making default "ident" from sys.argv[0] (GH-16557) 2020-01-14 09:57:04 -08:00
termios.c bpo-28367: Add additional baud rates for termios (GH-13142) 2020-01-04 13:56:31 +01:00
testcapi_long.h
timemodule.c
tkappinit.c
tkinter.h
unicodedata.c bpo-39573: Add Py_SET_TYPE() function (GH-18394) 2020-02-07 09:17:07 +01:00
unicodedata_db.h
unicodename_db.h
winreparse.h
xxlimited.c
xxmodule.c
xxsubtype.c
zlibmodule.c bpo-38074: Make zlib extension module PEP-384 compatible (GH-15792) 2019-09-10 03:27:03 -07:00

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