cpython/Modules
Victor Stinner be5e8a0103
gh-110964: Remove private _PyArg functions (#110966)
Move the following private functions and structures to
pycore_modsupport.h internal C API:

* _PyArg_BadArgument()
* _PyArg_CheckPositional()
* _PyArg_NoKeywords()
* _PyArg_NoPositional()
* _PyArg_ParseStack()
* _PyArg_ParseStackAndKeywords()
* _PyArg_Parser structure
* _PyArg_UnpackKeywords()
* _PyArg_UnpackKeywordsWithVararg()
* _PyArg_UnpackStack()
* _Py_ANY_VARARGS()

Changes:

* Python/getargs.h now includes pycore_modsupport.h to export
  functions.
* clinic.py now adds pycore_modsupport.h when one of these functions
  is used.
* Add pycore_modsupport.h includes when a C extension uses one of
  these functions.
* Define Py_BUILD_CORE_MODULE in C extensions which now include
  directly or indirectly (via code generated by Argument Clinic)
  pycore_modsupport.h:

  * _csv
  * _curses_panel
  * _dbm
  * _gdbm
  * _multiprocessing.posixshmem
  * _sqlite.row
  * _statistics
  * grp
  * resource
  * syslog

* _testcapi: bad_get() no longer uses METH_FASTCALL calling
  convention but METH_VARARGS. Replace _PyArg_UnpackStack() with
  PyArg_ParseTuple().
* _testcapi: add PYTESTCAPI_NEED_INTERNAL_API macro which is defined
  by _testcapi sub-modules which need the internal C API
  (pycore_modsupport.h): exceptions.c, float.c, vectorcall.c,
  watchers.c.
* Remove Include/cpython/modsupport.h header file.
  Include/modsupport.h no longer includes the removed header file.
* Fix mypy clinic.py
2023-10-17 14:30:31 +02:00
..
_blake2 gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_ctypes gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_decimal gh-89902: Deprecate non-standard format specifier "N" for Decimal (GH-110508) 2023-10-08 10:01:39 +03:00
_hacl gh-99108: Refresh HACL* (#104808) 2023-05-24 13:30:11 -07:00
_io gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_multiprocessing gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_sqlite gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_sre gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_ssl gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_testcapi gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_testinternalcapi gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_xxtestfuzz gh-107652: Set up CIFuzz to run fuzz targets continuously (#107653) 2023-10-09 09:30:10 -06:00
cjkcodecs gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
clinic gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
expat gh-98739: Update libexpat from 2.4.9 to 2.5.0 (#98742) 2022-10-27 13:45:12 -07:00
README
Setup gh-88402: Add new sysconfig variables on Windows (GH-110049) 2023-10-04 22:50:29 +00:00
Setup.bootstrap.in gh-88402: Add new sysconfig variables on Windows (GH-110049) 2023-10-04 22:50:29 +00:00
Setup.stdlib.in gh-110525: Add tests for internal `set` CAPI (GH-110630) 2023-10-10 19:00:05 +03:00
_abc.c gh-106320: Move private _PySet API to the internal API (#107041) 2023-07-22 17:04:34 +02:00
_asynciomodule.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_bisectmodule.c gh-104922: remove PY_SSIZE_T_CLEAN (#106315) 2023-07-02 15:07:46 +09:00
_bz2module.c gh-108220: Internal header files require Py_BUILD_CORE to be defined (#108221) 2023-08-21 19:15:52 +02:00
_codecsmodule.c gh-104922: remove PY_SSIZE_T_CLEAN (#106315) 2023-07-02 15:07:46 +09:00
_collectionsmodule.c gh-106320: Remove private _PyDict functions (#108449) 2023-08-24 20:01:50 +00:00
_contextvarsmodule.c gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205) 2023-05-05 21:11:27 +00:00
_csv.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_curses_panel.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_cursesmodule.c gh-107913: Fix possible losses of OSError error codes (GH-107930) 2023-08-27 00:35:06 +03:00
_datetimemodule.c gh-71587: Establish global state in `_datetime` (#110475) 2023-10-12 10:28:10 +02:00
_dbmmodule.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_elementtree.c gh-108511: Add C API functions which do not silently ignore errors (GH-109025) 2023-09-17 14:23:31 +03:00
_functoolsmodule.c gh-102757: fix function signature mismatch for `functools.reduce` between code and documentation (#102759) 2023-09-18 10:42:58 -06:00
_gdbmmodule.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_hashopenssl.c gh-86493: Modernize modules initialization code (GH-106858) 2023-07-25 14:34:49 +03:00
_heapqmodule.c gh-86493: Modernize modules initialization code (GH-106858) 2023-07-25 14:34:49 +03:00
_json.c gh-108216: Cleanup #include in internal header files (#108228) 2023-08-21 18:05:59 +00:00
_localemodule.c gh-108765: Python.h no longer includes <ctype.h> (#108831) 2023-09-03 18:54:27 +02:00
_lsprof.c gh-106320: Remove private _PyErr_WriteUnraisableMsg() (#108863) 2023-09-05 01:54:55 +02:00
_lzmamodule.c gh-108220: Internal header files require Py_BUILD_CORE to be defined (#108221) 2023-08-21 19:15:52 +02:00
_math.h gh-101678: refactor the math module to use special functions from c11 (GH-101679) 2023-02-09 00:40:52 -08:00
_opcode.c gh-107149: Rename _PyUnstable_GetUnaryIntrinsicName() function (#108441) 2023-08-29 01:42:24 +02:00
_operator.c gh-89013: Improve the performance of methodcaller (lazy version) (gh-107201) 2023-08-01 15:45:51 +09:00
_pickle.c gh-108511: Add C API functions which do not silently ignore errors (GH-109025) 2023-09-17 14:23:31 +03:00
_posixsubprocess.c gh-108494: Argument Clinic: inline parsing code for positional-only parameters in the limited C API (GH-108622) 2023-09-03 17:28:14 +03:00
_queuemodule.c gh-106320: Remove private _PyEval function (#108433) 2023-08-24 20:25:22 +02:00
_randommodule.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_scproxy.c gh-110079: Remove extern "C" { ...} in C code (#110080) 2023-09-29 10:56:49 +02:00
_ssl.c gh-106320: Remove private _PyErr_ChainExceptions() (#108713) 2023-08-31 13:53:19 +02:00
_ssl.h GH-103092: isolate `_ssl` (#104725) 2023-05-22 06:14:48 +05:30
_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_31.h gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (#105174) 2023-06-01 09:42:18 -07:00
_ssl_data_111.h gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (#105174) 2023-06-01 09:42:18 -07:00
_ssl_data_300.h gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (#105174) 2023-06-01 09:42:18 -07:00
_stat.c gh-85283: _stat extension now uses the limited C API (#110711) 2023-10-12 00:06:20 +02:00
_statisticsmodule.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_struct.c Add missing `PyDoc_STR` calls (#109393) 2023-09-15 15:10:48 +02:00
_sysconfig.c gh-88402: Add new sysconfig variables on Windows (GH-110049) 2023-10-04 22:50:29 +00:00
_testbuffer.c gh-104922: remove PY_SSIZE_T_CLEAN (#106315) 2023-07-02 15:07:46 +09:00
_testcapi_feature_macros.inc gh-102304: doc: Add links to Stable ABI and Limited C API (#105345) 2023-06-06 08:40:32 +00:00
_testcapimodule.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_testclinic.c gh-110864: Fix _PyArg_UnpackKeywordsWithVararg overwriting vararg with NULL (#110868) 2023-10-16 13:42:44 +02:00
_testclinic_limited.c gh-109723: Fix build of _testclinic_limited on WASM (#109842) 2023-09-25 14:43:54 +00:00
_testimportmultiple.c gh-85283: Build errno and _ctypes_test with limited C API (#110955) 2023-10-17 01:05:20 +00:00
_testinternalcapi.c gh-110525: Add tests for internal `set` CAPI (GH-110630) 2023-10-10 19:00:05 +03:00
_testmultiphase.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_testsinglephase.c gh-86493: Use PyModule_Add() instead of PyModule_AddObjectRef() (GH-106860) 2023-07-18 23:59:53 +03:00
_threadmodule.c gh-109860: Use a New Thread State When Switching Interpreters, When Necessary (gh-110245) 2023-10-03 09:20:48 -06:00
_tkinter.c gh-108765: Python.h no longer includes <ctype.h> (#108831) 2023-09-03 18:54:27 +02:00
_tracemalloc.c gh-108494: Argument Clinic: fix support of Limited C API (GH-108536) 2023-08-28 16:04:27 +03:00
_typingmodule.c Improve `_typing.__doc__` (#107908) 2023-08-13 10:24:59 +01:00
_uuidmodule.c gh-104922: remove PY_SSIZE_T_CLEAN (#106315) 2023-07-02 15:07:46 +09:00
_weakref.c gh-86493: Modernize modules initialization code (GH-106858) 2023-07-25 14:34:49 +03:00
_winapi.c gh-106844: Fix issues in _winapi.LCMapStringEx (GH-107832) 2023-08-11 21:13:46 +03:00
_xxinterpchannelsmodule.c gh-84570: Factor Out _channel_send_wait() (gh-110949) 2023-10-16 21:42:57 +00:00
_xxsubinterpretersmodule.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
_zoneinfo.c bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825) 2023-10-14 23:24:33 +03:00
addrinfo.h gh-95174: WASI: skip missing sockets functions (GH-95179) 2022-07-27 08:19:23 +02:00
arraymodule.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
atexitmodule.c gh-106320: Remove private _PyErr_WriteUnraisableMsg() (#108863) 2023-09-05 01:54:55 +02:00
binascii.c gh-86493: Modernize modules initialization code (GH-106858) 2023-07-25 14:34:49 +03:00
cmathmodule.c gh-86493: Fix possible leaks in some modules initialization (GH-106768) 2023-07-18 10:50:47 +03:00
config.c.in gh-104169: Fix test_peg_generator after tokenizer refactoring (#110727) 2023-10-12 09:34:35 +02:00
errnomodule.c gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED new in 3.13. (#110969) 2023-10-17 12:27:16 +02:00
faulthandler.c gh-110014: Include explicitly <unistd.h> header (#110155) 2023-09-30 20:06:45 +00:00
fcntlmodule.c gh-107913: Fix possible losses of OSError error codes (GH-107930) 2023-08-27 00:35:06 +03:00
gc_weakref.txt Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
gcmodule.c GH-109369: Merge all eval-breaker flags and monitoring version into one word. (GH-109846) 2023-10-04 16:09:48 +01:00
getaddrinfo.c gh-108767: Replace ctype.h functions with pyctype.h functions (#108772) 2023-09-01 18:36:53 +02:00
getbuildinfo.c gh-106320: Remove private pylifecycle.h functions (#106400) 2023-07-04 09:41:43 +00:00
getnameinfo.c gh-95174: WASI: skip missing sockets functions (GH-95179) 2022-07-27 08:19:23 +02:00
getpath.c gh-108867: Add PyThreadState_GetUnchecked() function (#108870) 2023-10-03 16:53:51 +00:00
getpath.py gh-101543: Ensure Windows registry path is only used when stdlib can't be found (GH-101544) 2023-02-06 15:55:32 +00:00
getpath_noop.c bpo-45582: Port getpath[p].c to Python (GH-29041) 2021-12-03 00:08:42 +00:00
grpmodule.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
hashlib.h gh-99108: Release the GIL around hashlib built-in computation (#104675) 2023-05-23 00:06:41 +00:00
itertoolsmodule.c gh-106320: Remove private _PyEval function (#108433) 2023-08-24 20:25:22 +02:00
ld_so_aix.in
main.c gh-105716: Support Background Threads in Subinterpreters Consistently (gh-109921) 2023-10-02 20:12:12 +00:00
makesetup gh-96269: static and shared ext need different deps (#96316) 2022-11-16 14:03:35 +01: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-110489: Optimise math.ceil for known exact float (#108801) 2023-10-06 22:57:18 +00:00
md5module.c gh-85283: Build md5 extension with limited C API (#110967) 2023-10-17 10:57:41 +00:00
mmapmodule.c gh-108765: Python.h no longer includes <unistd.h> (#108783) 2023-09-02 16:50:18 +02:00
overlapped.c gh-108494: Argument Clinic: inline parsing code for positional-only parameters in the limited C API (GH-108622) 2023-09-03 17:28:14 +03:00
posixmodule.c gh-109595: Add -Xcpu_count=<n> cmdline for container users (#109667) 2023-10-10 19:00:09 +09:00
posixmodule.h gh-107211: No longer export internal _PyLong_FromUid() (#109037) 2023-09-07 02:09:06 +02:00
pwdmodule.c gh-108765: Python.h no longer includes <unistd.h> (#108783) 2023-09-02 16:50:18 +02:00
pyexpat.c gh-108765: Python.h no longer includes <ctype.h> (#108831) 2023-09-03 18:54:27 +02:00
readline.c gh-109191: Fix build with newer editline (gh-110239) 2023-10-09 13:21:20 +00:00
resource.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
rotatingtree.c
rotatingtree.h
selectmodule.c gh-108765: Python.h no longer includes <unistd.h> (#108783) 2023-09-02 16:50:18 +02:00
sha1module.c gh-86493: Modernize modules initialization code (GH-106858) 2023-07-25 14:34:49 +03:00
sha2module.c gh-106869: Use new PyMemberDef constant names (#106871) 2023-07-25 15:28:30 +02:00
sha3module.c gh-99108: Release the GIL around hashlib built-in computation (#104675) 2023-05-23 00:06:41 +00:00
signalmodule.c gh-109693: Use pyatomic.h for signal module (gh-110480) 2023-10-10 08:26:29 +09:00
socketmodule.c gh-78469: Declare missing sethostname for Solaris 10 (#109447) 2023-10-09 21:18:05 +00:00
socketmodule.h GH-107812: extend `socket`'s netlink support to FreeBSD (gh-107813) 2023-08-10 00:47:46 +00:00
symtablemodule.c gh-110045: Update symtable module for PEP 695 (#110066) 2023-09-29 02:08:04 +00:00
syslogmodule.c gh-110964: Remove private _PyArg functions (#110966) 2023-10-17 14:30:31 +02:00
termios.c gh-110365: Fix error overwrite in `termios.tcsetattr` (#110366) 2023-10-05 11:02:52 +00:00
timemodule.c gh-108294: Add error handling for time.sleep audit event (GH-108363) 2023-09-05 10:25:08 +02:00
tkappinit.c gh-103538: Remove unused TK_AQUA code (GH-103539) 2023-05-10 18:53:13 +00:00
tkinter.h gh-103532: Remove TKINTER_PROTECT_LOADTK code (GH-103535) 2023-04-14 09:04:16 -05:00
unicodedata.c fixes gh-109559: Update `unicodedata` for Unicode 15.1.0 (GH-109560) 2023-09-19 22:07:47 -07:00
unicodedata_db.h fixes gh-109559: Update `unicodedata` for Unicode 15.1.0 (GH-109560) 2023-09-19 22:07:47 -07:00
unicodename_db.h fixes gh-109559: Update `unicodedata` for Unicode 15.1.0 (GH-109560) 2023-09-19 22:07:47 -07:00
winreparse.h
xxlimited.c gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED new in 3.13. (#110969) 2023-10-17 12:27:16 +02:00
xxlimited_35.c gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED new in 3.13. (#110969) 2023-10-17 12:27:16 +02:00
xxmodule.c gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205) 2023-05-05 21:11:27 +00:00
xxsubtype.c gh-108765: Python.h no longer includes <sys/time.h> (#108775) 2023-09-02 17:51:19 +02:00
zlibmodule.c gh-108220: Internal header files require Py_BUILD_CORE to be defined (#108221) 2023-08-21 19:15:52 +02:00

README

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