Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-85283: Build _scproxy extension with limited C API (#111008) | Victor Stinner | 2023-10-17 | 3 | -18/+16 | |
| | | | | * Replace Py_SETREF(v, NULL) with Py_CLEAR(v). * Reformat the code. | |||||
* | gh-84570: Send-Wait Fixes for _xxinterpchannels (gh-111006) | Eric Snow | 2023-10-17 | 5 | -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 Stinner | 2023-10-17 | 4 | -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 Stinner | 2023-10-17 | 1 | -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 Sobolev | 2023-10-17 | 1 | -0/+1 | |
| | ||||||
* | gh-110995: Fix test_gdb check_usable_gdb() (#110998) | Victor Stinner | 2023-10-17 | 2 | -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 Na | 2023-10-17 | 8 | -564/+4 | |
| | ||||||
* | gh-85283: Add PySys_Audit() to the limited C API (#108571) | Victor Stinner | 2023-10-17 | 8 | -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 Stinner | 2023-10-17 | 8 | -151/+30 | |
| | | | Replace type->tp_name with PyType_GetQualName(). | |||||
* | gh-107457: update dis documentation with changes in 3.12 (#108900) | Matthieu Dartiailh | 2023-10-17 | 1 | -16/+43 | |
| | ||||||
* | gh-110938: Fix error messages for indented blocks with functions and classes ↵ | Pablo Galindo Salgado | 2023-10-17 | 4 | -22/+46 | |
| | | | | with generic type parameters (#110973) | |||||
* | gh-110964: Remove private _PyArg functions (#110966) | Victor Stinner | 2023-10-17 | 166 | -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 Stinner | 2023-10-17 | 2 | -5/+4 | |
| | | | Limited C API supports the defining class under some conditions. | |||||
* | gh-85283: Build md5 extension with limited C API (#110967) | Victor Stinner | 2023-10-17 | 5 | -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 Sobolev | 2023-10-17 | 2 | -4/+4 | |
| | ||||||
* | gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED new in 3.13. (#110969) | Victor Stinner | 2023-10-17 | 5 | -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 Stinner | 2023-10-17 | 1 | -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 Waygood | 2023-10-17 | 1 | -3/+2 | |
| | ||||||
* | gh-85283: Build errno and _ctypes_test with limited C API (#110955) | Victor Stinner | 2023-10-17 | 5 | -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 Stinner | 2023-10-17 | 8 | -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 Stinner | 2023-10-17 | 3 | -4/+8 | |
| | ||||||
* | gh-109693: Update _gil_runtime_state.locked to use pyatomic.h (gh-110836) | Donghee Na | 2023-10-16 | 8 | -18/+86 | |
| | ||||||
* | gh-84570: Factor Out _channel_send_wait() (gh-110949) | Eric Snow | 2023-10-16 | 1 | -45/+43 | |
| | | | This makes several subsequent changes cleaner. | |||||
* | gh-107450: Remove unnecessary overflow check in parser error handler (#110940) | Lysandros Nikolaou | 2023-10-16 | 1 | -6/+0 | |
| | ||||||
* | gh-110905: [Enum] minor fixes and cleanup (GH-110906) | Pieter Eendebak | 2023-10-16 | 2 | -6/+4 | |
| | ||||||
* | C-API docs: Clarify the size of arenas (#110895) | Mienxiu | 2023-10-16 | 1 | -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 Sobolev | 2023-10-16 | 1 | -20/+14 | |
| | | | | cannot be `NULL` (#110922) | |||||
* | Enable ruff on several more files in `Lib/test` (#110929) | Alex Waygood | 2023-10-16 | 6 | -21/+16 | |
| | ||||||
* | gh-107450: Check for overflow in the tokenizer and fix overflow test (#110832) | Lysandros Nikolaou | 2023-10-16 | 4 | -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 Salgado | 2023-10-16 | 3 | -4/+14 | |
| | | | | traceback module (#110921) | |||||
* | gh-110907: AC: Disallow using `*` with vararg (#110908) | Nikita Sobolev | 2023-10-16 | 4 | -4/+26 | |
| | ||||||
* | gh-110923: Fix silently skipped tests in test__opcode.py (#110926) | Alex Waygood | 2023-10-16 | 2 | -2/+9 | |
| | ||||||
* | gh-110527: Improve `PySet_Clear` docs (#110528) | Nikita Sobolev | 2023-10-16 | 1 | -1/+3 | |
| | ||||||
* | gh-110864: Fix _PyArg_UnpackKeywordsWithVararg overwriting vararg with NULL ↵ | Nikita Sobolev | 2023-10-16 | 5 | -2/+130 | |
| | | | | (#110868) | |||||
* | sysconfig docs: fix broken link to the source code (#110920) | Karolina Surma | 2023-10-16 | 1 | -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 Chugunov | 2023-10-16 | 3 | -2/+24 | |
| | ||||||
* | regrtest: Prepend 'use' options in --{fast,slow}-ci (GH-110363) | Zachary Ware | 2023-10-15 | 2 | -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) | partev | 2023-10-15 | 1 | -1/+2 | |
| | | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> | |||||
* | Lint: Include test_monitoring.py for Ruff (#110898) | Hugo van Kemenade | 2023-10-15 | 1 | -2/+0 | |
| | ||||||
* | gh-84583: Make pdb enter post-mortem mode even for SyntaxError (#110883) | Tian Gao | 2023-10-15 | 3 | -7/+20 | |
| | ||||||
* | gh-110722: Add PYTHON_PRESITE to import a module before site.py is run (#110769) | Łukasz Langa | 2023-10-14 | 8 | -7/+178 | |
| | ||||||
* | bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825) | Serhiy Storchaka | 2023-10-14 | 4 | -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 Sobolev | 2023-10-14 | 2 | -34/+60 | |
| | ||||||
* | remove redundant call to attach_loop in watcher (#110847) | Thomas Grainger | 2023-10-14 | 1 | -2/+0 | |
| | ||||||
* | gh-110715: Add missing import in zipfile (gh-110822) | Kirill Podoprigora | 2023-10-14 | 2 | -7/+19 | |
| | ||||||
* | gh-109747: Improve errors for unsupported look-behind patterns (GH-109859) | Serhiy Storchaka | 2023-10-14 | 6 | -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 Storchaka | 2023-10-14 | 1 | -5/+10 | |
| | ||||||
* | gh-88434: Emit deprecation warnings for non-integer numbers in gettext if ↵ | Serhiy Storchaka | 2023-10-14 | 4 | -12/+32 | |
| | | | | translation not found (GH-110574) | |||||
* | gh-101100: Fix sphinx warnings in `usage/cmdline.rst` (#110841) | Nikita Sobolev | 2023-10-14 | 2 | -9/+9 | |
| | ||||||
* | gh-110628: Add tests for PyLong C API (GH-110629) | Serhiy Storchaka | 2023-10-14 | 3 | -17/+600 | |
| |