summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-101100: Fix reference warnings for ``__getitem__`` (#110118)Adam Turner2023-10-1920-38/+38
|
* gh-101100: Fix sphinx warnings in `library/getpass.rst` (#110461)Nikita Sobolev2023-10-192-2/+1
|
* gh-76785: Make interpreters.*Channel Objects Shareable (gh-110607)Eric Snow2023-10-193-2/+5
| | | This restores their shareability, which was disabled by gh-110318 due to ref leaks.
* gh-76785: Add *Channel.is_closed (gh-110606)Eric Snow2023-10-193-2/+302
|
* gh-101100: Fix sphinx warnings in `library/codecs.rst` (#110979)Nikita Sobolev2023-10-192-34/+36
|
* gh-111031: Check more files in `test_tokenize` (#111032)Nikita Sobolev2023-10-191-10/+0
|
* gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (#111053)Terry Jan Reedy2023-10-192-24/+22
| | | | | | Replace tuple value with internal name, removing numbers. Remove sorting of already ordered dislay names. Remove '[0]' indexing into now-gone tuple.
* GH-103082: Clean up the sys.monitoring docs (GH-110532)Tian Gao2023-10-182-101/+165
|
* Fix a misspelling of Interpeter -> Interpreter (GH-111040)Nikita Sobolev2023-10-182-2/+2
|
* GH-104232: Fix statement about trace return values (GH-110516)Tian Gao2023-10-181-3/+2
|
* GH-102895 Add an option local_exit in code.interact to block exit() from ↵Tian Gao2023-10-185-33/+114
| | | | terminating the whole process (GH-102896)
* gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct ↵Joshua Root2023-10-183-0/+5
| | | | | permissions (gh-111016) Co-authored-by: Ned Deily <nad@python.org>
* gh-100445: Improve error message for unterminated strings with escapes (#100446)Shantanu2023-10-183-4/+25
|
* gh-103737: IDLE - Remove unneeded .keys() for dict iteration (#110960)Terry Jan Reedy2023-10-188-26/+28
| | | | | Add comments where .keys() is needed. Leave debugger usages along because situation is unclear as indicated in expanded comment. Most testing is manual.
* gh-111019: Align expected and actual titles in test output (#111020)James2023-10-182-10/+10
| | | | Align expected and actual titles in output from assert_has_calls/assert_called_with for greater readability
* gh-108747: Add unit tests for site.{usercustomize,sitecustomize} hooks (#109470)Charles Machalow2023-10-182-0/+40
|
* gh-110938: More syntax tests for PEP695 funcs and classes (#110986)Nikita Sobolev2023-10-181-0/+15
|
* gh-109975: What's new in 3.13: longer full support (#110997)Hugo van Kemenade2023-10-181-0/+5
|
* gh-110961: Fixed asyncio.wait docstring to remove deprecated coroutine ↵Bar Harel2023-10-181-2/+0
| | | | | reference (#111017) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* Regen Doc/requirements-oldest-sphinx.txt (#111012)Victor Stinner2023-10-181-2/+1
| | | | Fix https://github.com/python/cpython/security/dependabot/4: use urllib3 version 2.0.7.
* gh-76785: Clean Up the Channels Module (gh-110568)Eric Snow2023-10-173-297/+335
|
* gh-85283: Build _uuid extension with limited C API (#111010)Victor Stinner2023-10-173-4/+7
|
* gh-84570: Add Timeouts to SendChannel.send() and RecvChannel.recv() (gh-110567)Eric Snow2023-10-178-47/+202
|
* 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)