| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
| |
This restores their shareability, which was disabled by gh-110318 due to ref leaks.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Replace tuple value with internal name, removing numbers.
Remove sorting of already ordered dislay names.
Remove '[0]' indexing into now-gone tuple.
|
| |
|
| |
|
| |
|
|
|
|
| |
terminating the whole process (GH-102896)
|
|
|
|
|
| |
permissions (gh-111016)
Co-authored-by: Ned Deily <nad@python.org>
|
| |
|
|
|
|
|
| |
Add comments where .keys() is needed.
Leave debugger usages along because situation is unclear as indicated in expanded comment.
Most testing is manual.
|
|
|
|
| |
Align expected and actual titles in output from
assert_has_calls/assert_called_with for greater readability
|
| |
|
| |
|
| |
|
|
|
|
|
| |
reference (#111017)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
|
|
|
|
| |
Fix https://github.com/python/cpython/security/dependabot/4: use
urllib3 version 2.0.7.
|
| |
|
| |
|
| |
|
|
|
|
| |
* Replace Py_SETREF(v, NULL) with Py_CLEAR(v).
* Reformat the code.
|
|
|
|
|
| |
There were a few things I did in gh-110565 that need to be fixed. I also forgot to add tests in that PR.
(Note that this PR exposes a refleak introduced by gh-110246. I'll take care of that separately.)
|
|
|
|
|
|
| |
* Replace PyStructSequence_SET_ITEM() with
PyStructSequence_SetItem().
* Replace PyTuple_GET_SIZE() with PyTuple_Size().
* Replace PyTuple_GET_ITEM() with PyTuple_GetItem().
|
|
|
|
| |
Define Py_BUILD_CORE to not attempt to link the extension to
python3.lib (which fails).
|
| |
|
|
|
|
|
|
|
| |
Fix detection of gdb built without Python scripting support.
* check_usable_gdb() doesn't check gdb exit code when calling
run_gdb().
* Use shutil.which() to get the path to the gdb program.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The PySys_Audit() function was added in Python 3.8 by the PEP 578
"Python Runtime Audit Hooks".
Add also PySys_AuditTuple() to the limited C API, function added
to Python 3.13.
Move non-limited "PerfMap" C API from Include/sysmodule.h to
Include/cpython/sysmodule.h.
|
|
|
| |
Replace type->tp_name with PyType_GetQualName().
|
| |
|
|
|
|
| |
with generic type parameters (#110973)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
| |
Limited C API supports the defining class under some conditions.
|
|
|
|
|
| |
* Replace _Py_strhex() with few lines of code.
* Replace _PyType_GetModuleState() with PyType_GetModuleState().
* Fix make check-c-globals.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Only add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED to limited C API
version 3.13.
* errno, xxlimited and _ctypes_test extensions now need the limited C
API version 3.13 to get Py_MOD_PER_INTERPRETER_GIL_SUPPORTED. They
now include standard header files explicitly: <errno.h>, <string.h>
and <stdio.h>.
* xxlimited_35: Remove Py_mod_multiple_interpreters slot,
incompatible with limited C API version 3.5.
|
|
|
|
| |
Before utils.CLOCK_RES constant was added (20 ms), test_asyncio
already used 50 ms.
|
| |
|
|
|
| |
_testimportmultiple is now built with limited C API version 3.2.
|
|
|
|
|
|
|
|
|
| |
Add PyMem_RawMalloc(), PyMem_RawCalloc(), PyMem_RawRealloc() and
PyMem_RawFree() to the limited C API.
These functions were added by Python 3.4 and are needed to port
stdlib extensions to the limited C API, like grp and pwd.
Co-authored-by: Erlend E. Aasland <erlend@python.org>
|
| |
|
| |
|
|
|
| |
This makes several subsequent changes cleaner.
|
| |
|
| |
|
|
|
|
|
|
| |
Clarify the size of arenas
From 3.10.0 alpha 7, the pymalloc allocator uses arenas with a fixed size of 1
MiB on 64-bit platforms instead of 256 KiB on 32-bit platforms.
|
|
|
|
| |
cannot be `NULL` (#110922)
|
| |
|
|
|
|
| |
Co-authored-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|