summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-85283: Build _scproxy extension with limited C API (#111008)Victor Stinner2023-10-173-18/+16
| | | | * Replace Py_SETREF(v, NULL) with Py_CLEAR(v). * Reformat the code.
* gh-84570: Send-Wait Fixes for _xxinterpchannels (gh-111006)Eric Snow2023-10-175-148/+571
| | | | | 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.)
* gh-85283: Build resource extension with limited C API (#110989)Victor Stinner2023-10-174-36/+38
| | | | | | * Replace PyStructSequence_SET_ITEM() with PyStructSequence_SetItem(). * Replace PyTuple_GET_SIZE() with PyTuple_Size(). * Replace PyTuple_GET_ITEM() with PyTuple_GetItem().
* gh-85283: Fix _ctypes_test build on Windows in release mode (#111005)Victor Stinner2023-10-171-0/+7
| | | | Define Py_BUILD_CORE to not attempt to link the extension to python3.lib (which fails).
* Add `.ruff_cache/` to `.gitignore` (#110983)Nikita Sobolev2023-10-171-0/+1
|
* gh-110995: Fix test_gdb check_usable_gdb() (#110998)Victor Stinner2023-10-172-6/+13
| | | | | | | 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.
* gh-109693: Remove pycore_atomic.h (gh-110992)Donghee Na2023-10-178-564/+4
|
* gh-85283: Add PySys_Audit() to the limited C API (#108571)Victor Stinner2023-10-178-14/+37
| | | | | | | | | | 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.
* gh-85283: Build winsound extension with limited C API (#110978)Victor Stinner2023-10-178-151/+30
| | | Replace type->tp_name with PyType_GetQualName().
* gh-107457: update dis documentation with changes in 3.12 (#108900)Matthieu Dartiailh2023-10-171-16/+43
|
* gh-110938: Fix error messages for indented blocks with functions and classes ↵Pablo Galindo Salgado2023-10-174-22/+46
| | | | with generic type parameters (#110973)
* gh-110964: Remove private _PyArg functions (#110966)Victor Stinner2023-10-17166-228/+510
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* gh-85283: Fix Argument Clinic for md5 extension (#110976)Victor Stinner2023-10-172-5/+4
| | | Limited C API supports the defining class under some conditions.
* gh-85283: Build md5 extension with limited C API (#110967)Victor Stinner2023-10-175-69/+28
| | | | | * Replace _Py_strhex() with few lines of code. * Replace _PyType_GetModuleState() with PyType_GetModuleState(). * Fix make check-c-globals.
* Bump test deps: `ruff` and `pre-commit-hooks` (#110972)Nikita Sobolev2023-10-172-4/+4
|
* gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED new in 3.13. (#110969)Victor Stinner2023-10-175-7/+13
| | | | | | | | | | * 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.
* gh-110695: test_asyncio uses 50 ms for clock resolution (#110952)Victor Stinner2023-10-171-2/+2
| | | | Before utils.CLOCK_RES constant was added (20 ms), test_asyncio already used 50 ms.
* Bump sphinx-lint to v0.8.1 (#110933)Alex Waygood2023-10-171-3/+2
|
* gh-85283: Build errno and _ctypes_test with limited C API (#110955)Victor Stinner2023-10-175-40/+45
| | | _testimportmultiple is now built with limited C API version 3.2.
* gh-85283: Add PyMem_RawMalloc() to the limited C API (#108570)Victor Stinner2023-10-178-6/+39
| | | | | | | | | 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>
* gh-85283: Build _testimportmultiple with limited C API (#110954)Victor Stinner2023-10-173-4/+8
|
* gh-109693: Update _gil_runtime_state.locked to use pyatomic.h (gh-110836)Donghee Na2023-10-168-18/+86
|
* gh-84570: Factor Out _channel_send_wait() (gh-110949)Eric Snow2023-10-161-45/+43
| | | This makes several subsequent changes cleaner.
* gh-107450: Remove unnecessary overflow check in parser error handler (#110940)Lysandros Nikolaou2023-10-161-6/+0
|
* gh-110905: [Enum] minor fixes and cleanup (GH-110906)Pieter Eendebak2023-10-162-6/+4
|
* C-API docs: Clarify the size of arenas (#110895)Mienxiu2023-10-161-1/+2
| | | | | | 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.
* gh-110864: TypeVar constructor: Partially revert gh-110784, `constraints` ↵Nikita Sobolev2023-10-161-20/+14
| | | | cannot be `NULL` (#110922)
* Enable ruff on several more files in `Lib/test` (#110929)Alex Waygood2023-10-166-21/+16
|
* gh-107450: Check for overflow in the tokenizer and fix overflow test (#110832)Lysandros Nikolaou2023-10-164-22/+40
| | | | Co-authored-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-110912: Correctly display tracebacks for MemoryError exceptions using the ↵Pablo Galindo Salgado2023-10-163-4/+14
| | | | traceback module (#110921)
* gh-110907: AC: Disallow using `*` with vararg (#110908)Nikita Sobolev2023-10-164-4/+26
|
* gh-110923: Fix silently skipped tests in test__opcode.py (#110926)Alex Waygood2023-10-162-2/+9
|
* gh-110527: Improve `PySet_Clear` docs (#110528)Nikita Sobolev2023-10-161-1/+3
|
* gh-110864: Fix _PyArg_UnpackKeywordsWithVararg overwriting vararg with NULL ↵Nikita Sobolev2023-10-165-2/+130
| | | | (#110868)
* sysconfig docs: fix broken link to the source code (#110920)Karolina Surma2023-10-161-1/+1
| | | It's now a package. See: https://github.com/python/cpython/commit/4a53a397c311567f05553bc25a28aebaba4f6f65
* gh-108791: Fix `pdb` CLI invalid argument handling (#108816)Radislav Chugunov2023-10-163-2/+24
|
* regrtest: Prepend 'use' options in --{fast,slow}-ci (GH-110363)Zachary Ware2023-10-152-7/+11
| | | This allows individual resources to be disabled without having to explicitly re-enable all others.
* gh-110886 Doc: add a link to BNF Wikipedia article (#110887)partev2023-10-151-1/+2
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Lint: Include test_monitoring.py for Ruff (#110898)Hugo van Kemenade2023-10-151-2/+0
|
* gh-84583: Make pdb enter post-mortem mode even for SyntaxError (#110883)Tian Gao2023-10-153-7/+20
|
* gh-110722: Add PYTHON_PRESITE to import a module before site.py is run (#110769)Łukasz Langa2023-10-148-7/+178
|
* bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825)Serhiy Storchaka2023-10-144-258/+326
| | | | | | | zipinfo now supports the full range of values in the TZ string determined by RFC 8536 and detects all invalid formats. Both Python and C implementations now raise exceptions of the same type on invalid data.
* gh-101100: Fix sphinx warnings in `library/time.rst` (#110862)Nikita Sobolev2023-10-142-34/+60
|
* remove redundant call to attach_loop in watcher (#110847)Thomas Grainger2023-10-141-2/+0
|
* gh-110715: Add missing import in zipfile (gh-110822)Kirill Podoprigora2023-10-142-7/+19
|
* gh-109747: Improve errors for unsupported look-behind patterns (GH-109859)Serhiy Storchaka2023-10-146-13/+46
| | | | | | Now re.error is raised instead of OverflowError or RuntimeError for too large width of look-behind pattern. The limit is increased to 2**32-1 (was 2**31-1).
* gh-107705: Fix file leak in test_tkinter in the C locale (GH-110507)Serhiy Storchaka2023-10-141-5/+10
|
* gh-88434: Emit deprecation warnings for non-integer numbers in gettext if ↵Serhiy Storchaka2023-10-144-12/+32
| | | | translation not found (GH-110574)
* gh-101100: Fix sphinx warnings in `usage/cmdline.rst` (#110841)Nikita Sobolev2023-10-142-9/+9
|
* gh-110628: Add tests for PyLong C API (GH-110629)Serhiy Storchaka2023-10-143-17/+600
|