]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
gh-129149: Add fast path in PYLONG_FROM_UINT macro for compact integers (#129168)
Add fast path in PyLong_From*() functions for compact integers.
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Yan Yanchii <yyanchiy@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Sergey B Kirpichev [Thu, 23 Jan 2025 13:55:25 +0000 (16:55 +0300)]
gh-101410: support custom messages for domain errors in the math module (#124299)
This adds basic support to override default messages for domain errors
in the math_1() helper. The sqrt(), atanh(), log2(), log10() and log()
functions were modified as examples. New macro supports gradual
changing of error messages in other 1-arg functions.
Co-authored-by: CharlieZhao <zhaoyu_hit@qq.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Bénédikt Tran [Thu, 23 Jan 2025 13:28:33 +0000 (14:28 +0100)]
gh-126004: Fix positions handling in `codecs.backslashreplace_errors` (#127676)
This fixes how `PyCodec_BackslashReplaceErrors` handles the `start` and `end`
attributes of `UnicodeError` objects via the `_PyUnicodeError_GetParams` helper.
Sergey B Kirpichev [Thu, 23 Jan 2025 12:50:34 +0000 (15:50 +0300)]
gh-128863: Deprecate _PyLong_New() function (#129212)
Victor Stinner [Thu, 23 Jan 2025 12:49:35 +0000 (13:49 +0100)]
gh-129185: Remove internal TRACE_RAW_MALLOC macro (#129218)
Always build tracemalloc with PyMem_RawMalloc() hooks.
Victor Stinner [Thu, 23 Jan 2025 11:07:34 +0000 (12:07 +0100)]
gh-129185: Fix PyTraceMalloc_Untrack() at Python exit (#129191)
Support calling PyTraceMalloc_Track() and PyTraceMalloc_Untrack()
during late Python finalization.
* Call _PyTraceMalloc_Fini() later in Python finalization.
* Test also PyTraceMalloc_Untrack() without the GIL
* PyTraceMalloc_Untrack() now gets the GIL.
* Test also PyTraceMalloc_Untrack() in test_tracemalloc_track_race().
Bénédikt Tran [Thu, 23 Jan 2025 10:44:18 +0000 (11:44 +0100)]
gh-126004: Fix positions handling in `codecs.replace_errors` (#127674)
This fixes how `PyCodec_ReplaceErrors` handles the `start` and `end` attributes
of `UnicodeError` objects via the `_PyUnicodeError_GetParams` helper.
Bénédikt Tran [Thu, 23 Jan 2025 10:42:38 +0000 (11:42 +0100)]
gh-126004: Fix positions handling in `codecs.xmlcharrefreplace_errors` (#127675)
This fixes how `PyCodec_XMLCharRefReplaceErrors` handles the `start` and `end`
attributes of `UnicodeError` objects via the `_PyUnicodeError_GetParams` helper.
Sam Gross [Thu, 23 Jan 2025 09:26:25 +0000 (04:26 -0500)]
Revert "GH-128914: Remove conditional stack effects from `bytecodes.c` and the code generators (GH-128918)" (GH-129202)
The commit introduced a ~2.5-3% regression in the free threading build.
This reverts commit
ab61d3f4303d14a413bc9ae6557c730ffdf7579e .
Sergey B Kirpichev [Thu, 23 Jan 2025 02:54:23 +0000 (05:54 +0300)]
gh-127936, PEP 757: Convert marshal module to use import/export API for ints (#128530)
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Victor Stinner [Thu, 23 Jan 2025 02:11:53 +0000 (03:11 +0100)]
gh-128863: Deprecate _PyLong_Sign() function (#129176)
Replace _PyLong_Sign() with PyLong_GetSign().
Victor Stinner [Thu, 23 Jan 2025 00:57:37 +0000 (01:57 +0100)]
gh-119182: Use public PyUnicodeWriter in Python-ast.c (#129209)
Replace the private _PyUnicodeWriter API with the public
PyUnicodeWriter API.
Use PyUnicodeWriter_WriteRepr() in ast_repr_list().
Victor Stinner [Thu, 23 Jan 2025 00:44:43 +0000 (01:44 +0100)]
gh-119182: Use public PyUnicodeWriter in ast_unparse.c (#129208)
Replace the private _PyUnicodeWriter API with the public
PyUnicodeWriter API.
* Add append_char() function.
* Add APPEND_CHAR() and APPEND_CHAR_FINISH() macros.
* Replace APPEND_STR() and APPEND_STR_FINISH() of single character
with APPEND_CHAR() and APPEND_CHAR_FINISH().
Victor Stinner [Thu, 23 Jan 2025 00:18:26 +0000 (01:18 +0100)]
gh-119182: Use public PyUnicodeWriter in wrap_strftime() (#129206)
Replace the private _PyUnicodeWriter API with the public
PyUnicodeWriter API.
Victor Stinner [Thu, 23 Jan 2025 00:18:03 +0000 (01:18 +0100)]
gh-119182: Use public PyUnicodeWriter in time_strftime() (#129207)
Replace the private _PyUnicodeWriter API with the public
PyUnicodeWriter API.
Hood Chatham [Thu, 23 Jan 2025 00:02:04 +0000 (00:02 +0000)]
gh-128627: Emscripten: Fix address calculation for wasm-gc trampoline (#128782)
Modifies the memory calculation to divide the entire memory address by 4, not just the base address.
Hugo van Kemenade [Wed, 22 Jan 2025 21:22:21 +0000 (23:22 +0200)]
Add colour to GitHub Actions output (#129196)
Kirill Podoprigora [Wed, 22 Jan 2025 20:39:26 +0000 (22:39 +0200)]
gh-129192: Use `EnvironmentVarGuard` to restore environment variables (#129193)
Co-authored-by: Cody Maloney <cmaloney@theoreticalchaos.com>
Łukasz Langa [Wed, 22 Jan 2025 18:27:58 +0000 (19:27 +0100)]
GH-91048: Don't attempt to run on FreeBSD (#129189)
Yury Selivanov [Wed, 22 Jan 2025 16:25:29 +0000 (08:25 -0800)]
GH-91048: Add utils for capturing async call stack for asyncio programs and enable profiling (#124640)
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Pablo Galindo Salgado [Wed, 22 Jan 2025 16:24:54 +0000 (16:24 +0000)]
gh-124363: Treat debug expressions in f-string as raw strings (#128399)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Tomas R. [Wed, 22 Jan 2025 16:15:23 +0000 (17:15 +0100)]
gh-128636: Fix crash in PyREPL when `os.environ` is overwritten with an invalid value (#128653)
Łukasz Langa [Wed, 22 Jan 2025 13:52:45 +0000 (14:52 +0100)]
gh-129158: Fix unwanted trailing whitespace in test_asyncio.test_subprocess (#129181)
Mikhail Efimov [Wed, 22 Jan 2025 12:50:01 +0000 (15:50 +0300)]
gh-125723: Fix crash with f_locals when generator frame outlive their generator (#126956)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Thomas Grainger [Wed, 22 Jan 2025 12:48:33 +0000 (12:48 +0000)]
gh-128770: fix ResourceWarning in test_pyrepl (#128906)
sobolevn [Wed, 22 Jan 2025 12:47:03 +0000 (15:47 +0300)]
gh-128894: Fix `TracebackException._format_syntax_error` on custom `SyntaxError` metadata (#128946)
Pablo Galindo Salgado [Wed, 22 Jan 2025 12:25:42 +0000 (12:25 +0000)]
gh-129158: Ensure we restore unix_events.can_use_pidfd after SubprocessThreadedWatcherTests finishes (#129160)
Victor Stinner [Wed, 22 Jan 2025 11:04:19 +0000 (12:04 +0100)]
gh-128863: Deprecate private C API functions (#128864)
Deprecate private C API functions:
* _PyBytes_Join()
* _PyDict_GetItemStringWithError()
* _PyDict_Pop()
* _PyThreadState_UncheckedGet()
* _PyUnicode_AsString()
* _Py_HashPointer()
* _Py_fopen_obj()
Replace _Py_HashPointer() with Py_HashPointer().
Remove references to deprecated functions.
Mark Shannon [Wed, 22 Jan 2025 10:51:37 +0000 (10:51 +0000)]
GH-128682: Change a couple of functions to only steal references on success. (GH-129132)
Change PyTuple_FromStackRefSteal and PyList_FromStackRefSteal to only steal on success to avoid escaping
Petr Viktorin [Wed, 22 Jan 2025 09:59:20 +0000 (10:59 +0100)]
gh-61103: Add What's New entry for complex types in ctypes (GH-129129)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Joshua Root [Wed, 22 Jan 2025 09:25:30 +0000 (20:25 +1100)]
gh-128902: Fix check for fallthrough attribute support (#128903)
Clang versions prior to 10 (which corresponds to Apple Clang 12) do not
support the GCC extension syntax __attribute__((fallthrough)), but do
evaluate __has_attribute(fallthrough) to 1 because they support the
C++11 style syntax [[fallthrough]]. The only way to tell if the GCC
style syntax is supported is thus to check the clang version.
Ref: https://github.com/llvm/llvm-project/commit/
1e0affb6e564b7361b0aadb38805f26deff4ecfc
Ken Jin [Wed, 22 Jan 2025 01:22:25 +0000 (09:22 +0800)]
gh-128563: Move GO_TO_INSTRUCTION and PREDICT to cases generator (GH-129115)
Tomas R. [Wed, 22 Jan 2025 00:26:37 +0000 (01:26 +0100)]
gh-129093: Fix f-string debug text sometimes getting cut off when expression contains `!` (#129159)
Adam Turner [Tue, 21 Jan 2025 23:28:32 +0000 (23:28 +0000)]
GH-121970: Extract ``pydoc_topics`` into a new extension (#129116)
Daniel Hollas [Tue, 21 Jan 2025 21:06:13 +0000 (21:06 +0000)]
gh-118878: Pyrepl: show completions menu below the current line (#118939)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Lysandros Nikolaou [Tue, 21 Jan 2025 21:04:30 +0000 (22:04 +0100)]
gh-123024: Correctly prepare/restore around help and show-history commands (#124485)
Co-authored-by: Emily Morehouse <emily@cuttlesoft.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Pieter Eendebak [Tue, 21 Jan 2025 20:14:10 +0000 (21:14 +0100)]
gh-126332: Fix pyrepl crash for double ctrl-z in line overflow (#126650)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Michael Kashirin [Tue, 21 Jan 2025 20:05:19 +0000 (23:05 +0300)]
gh-126172: Fix a misleading statement in PYTHON_BASIC_REPL documentation (#127203)
Fix a misleading statement in PYTHON_BASIC_REPL documentation.
Sergey B Kirpichev [Tue, 21 Jan 2025 20:04:07 +0000 (23:04 +0300)]
gh-122845: fix parameter_list_starargs in function definition pseudo-grammar (#122847)
Thanks to Artur Chakhvadze for bugfix.
Tomas R. [Tue, 21 Jan 2025 19:58:44 +0000 (20:58 +0100)]
gh-125553: Fix backslash continuation in `untokenize` (#126010)
Wim Jeantine-Glenn [Tue, 21 Jan 2025 19:52:21 +0000 (13:52 -0600)]
gh-128720: Fix doc inacurracy about __main__.__file__ existence in the REPL (#128721)
Fix doc inacurracy about __main__.__file__ existence in the REPL
Barney Gale [Tue, 21 Jan 2025 18:35:37 +0000 (18:35 +0000)]
GH-128520: Make `pathlib._abc.WritablePath` a sibling of `ReadablePath` (#129014)
In the private pathlib ABCs, support write-only virtual filesystems by
making `WritablePath` inherit directly from `JoinablePath`, rather than
subclassing `ReadablePath`.
There are two complications:
- `ReadablePath.open()` applies to both reading and writing
- `ReadablePath.copy` is secretly an object that supports the *read* side
of copying, whereas `WritablePath.copy` is a different kind of object
supporting the *write* side
We untangle these as follow:
- A new `pathlib._abc.magic_open()` function replaces the `open()` method,
which is dropped from the ABCs but remains in `pathlib.Path`. The
function works like `io.open()`, but additionally accepts objects with
`__open_rb__()` or `__open_wb__()` methods as appropriate for the mode.
These new dunders are made abstract methods of `ReadablePath` and
`WritablePath` respectively. If the pathlib ABCs are made public, we
could consider blessing an "openable" protocol and supporting it in
`io.open()`, removing the need for `pathlib._abc.magic_open()`.
- `ReadablePath.copy` becomes a true method, whereas `WritablePath.copy` is
deleted. A new `ReadablePath._copy_reader` property provides a
`CopyReader` object, and similarly `WritablePath._copy_writer` is a
`CopyWriter` object. Once GH-125413 is resolved, we'll be able to move
the `CopyReader` functionality into `ReadablePath.info` and eliminate
`ReadablePath._copy_reader`.
Michael Droettboom [Tue, 21 Jan 2025 18:13:33 +0000 (13:13 -0500)]
gh-129141: Fix build on gcc-9.4.0 (GH-129142)
Hugo van Kemenade [Tue, 21 Jan 2025 16:10:08 +0000 (18:10 +0200)]
gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars (#127877)
Petr Viktorin [Tue, 21 Jan 2025 15:29:02 +0000 (16:29 +0100)]
gh-128889: Zero out memory ctypes for generated struct layout tests (GH-128944)
Serhiy Storchaka [Tue, 21 Jan 2025 14:45:20 +0000 (16:45 +0200)]
gh-71339: Fix an order-dependent failure in test_unittest (GH-129133)
It failed if it was preceded by test_builtin.
Ken Jin [Tue, 21 Jan 2025 14:17:15 +0000 (22:17 +0800)]
gh-128563: Move lltrace into the frame struct (GH-129113)
Victor Stinner [Tue, 21 Jan 2025 13:43:31 +0000 (14:43 +0100)]
gh-128679: Use _PyThreadState_GET() in tracemalloc.c (#129126)
Replace uncommon PyGILState_GetThisThreadState() with common
_PyThreadState_GET().
Bénédikt Tran [Tue, 21 Jan 2025 11:43:09 +0000 (12:43 +0100)]
gh-129064: Fix RST markup for the NEWS and What's New entries (#129131)
This amends the NEWS and What's New entries introduced in
0a6412f9cc9e694e76299cfbd73ec969b7d47af6 .
Victor Stinner [Tue, 21 Jan 2025 11:02:38 +0000 (12:02 +0100)]
gh-126925: Make PyConfig.use_system_logger read-only (#129124)
The variable is only used once during early Python initialization, it
doesn't make sense to modify it at runtime.
Victor Stinner [Tue, 21 Jan 2025 10:58:43 +0000 (11:58 +0100)]
Remove PyInit__imp() function (#129125)
This function was exposed by mistake to the public C API. It's the
only "PyInit" function which is exposed.
Bénédikt Tran [Tue, 21 Jan 2025 10:50:13 +0000 (11:50 +0100)]
gh-111178: fix UBSan failures in `Modules/_ctypes` (#129071)
This fixes UBSan failures for the following objects:
- `DictRemoverObject` and `StructParamObject`,
- `CDataObject` and `CFieldObject`, and
- `PyCFuncPtrObject` and `PyCArgObject`.
On the default build, we convert the `LOCK_PTR` and `UNLOCK_PTR` macros to
functions with an unused parameter to ease "unused variable" compiler warnings
suppression. Finally, we also remove some redundant casts to `PyObject *`.
Bénédikt Tran [Tue, 21 Jan 2025 10:45:53 +0000 (11:45 +0100)]
gh-127787: allow retrieving the clipped slice length in `_PyUnicodeError_GetParams` (GH-128980)
Petr Viktorin [Tue, 21 Jan 2025 10:28:34 +0000 (11:28 +0100)]
gh-126349: test_turtle: Add cleanup to avoid reference leaks (GH-129079)
Mark Shannon [Tue, 21 Jan 2025 10:15:02 +0000 (10:15 +0000)]
GH-128563: Add new frame owner type for interpreter entry frames (GH-129078)
Add new frame owner type for interpreter entry frames
Petr Viktorin [Tue, 21 Jan 2025 09:59:18 +0000 (10:59 +0100)]
gh-128156: Guard use of `ffi_type_complex_double` on macOS system libffi (GH-128680)
* Determine ffi complex support at runtime
* Also, generate SIMPLE_TYPE_CHARS once at runtime
Mark Shannon [Tue, 21 Jan 2025 09:33:23 +0000 (09:33 +0000)]
GH-127953: Make line number lookup O(1) regardless of the size of the code object (GH-128350)
Serhiy Storchaka [Tue, 21 Jan 2025 09:24:19 +0000 (11:24 +0200)]
gh-71339: Use new assertion methods in test_import and test_importlib (GH-129052)
smelnikov [Tue, 21 Jan 2025 09:22:13 +0000 (13:22 +0400)]
Docs: fix typo in `Doc/howto/mro.rst` (GH-129095)
Hugo van Kemenade [Tue, 21 Jan 2025 09:20:54 +0000 (11:20 +0200)]
gh-128595: Fix `test__colorize` unexpected keyword argument 'file' on buildbots (#129070)
Adam Turner [Mon, 20 Jan 2025 23:53:33 +0000 (23:53 +0000)]
Revert "doc: add social cards generation support in sphinxext-opengraph (#129085)" (#129106)
Adam Turner [Mon, 20 Jan 2025 23:53:08 +0000 (23:53 +0000)]
GH-121970: Extract ``changes`` into a new extension (#129105)
Adam Turner [Mon, 20 Jan 2025 22:32:31 +0000 (22:32 +0000)]
Add Adam Turner to CODEOWNERS (#129104)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Filipe Laíns 🇵🇸 [Mon, 20 Jan 2025 21:25:14 +0000 (21:25 +0000)]
GH-92897: schedule the check_home deprecation to 3.15 (#129102)
Bénédikt Tran [Mon, 20 Jan 2025 20:43:55 +0000 (21:43 +0100)]
gh-111178: fix UBSan failures in `Modules/_multiprocessing/semaphore.c` (#129084)
fix UBSan failures for `SemLockObject`
Filipe Laíns 🇵🇸 [Mon, 20 Jan 2025 20:41:27 +0000 (20:41 +0000)]
doc: add social cards generation support in sphinxext-opengraph (#129085)
Filipe Laíns 🇵🇸 [Mon, 20 Jan 2025 19:04:05 +0000 (19:04 +0000)]
doc: fix venv creating for the local Python using uv (#129094)
Wulian [Mon, 20 Jan 2025 18:12:29 +0000 (02:12 +0800)]
gh-91279: ZipFile.writestr now respect SOURCE_DATE_EPOCH (#124435)
5ec1cff [Mon, 20 Jan 2025 18:04:43 +0000 (02:04 +0800)]
GH-128131: Completely support random read access of uncompressed unencrypted files in ZipFile (#128143)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Thomas Grainger [Mon, 20 Jan 2025 17:13:01 +0000 (17:13 +0000)]
gh-128588: gh-128550: remove eager tasks optimization that missed and introduced incorrect cancellations (#129063)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Mark Shannon [Mon, 20 Jan 2025 17:09:23 +0000 (17:09 +0000)]
GH-128914: Remove conditional stack effects from `bytecodes.c` and the code generators (GH-128918)
Filipe Laíns 🇵🇸 [Mon, 20 Jan 2025 17:03:44 +0000 (17:03 +0000)]
GH-129064: deprecate sysconfig.expand_makefile_vars (#129082)
Thomas Grainger [Mon, 20 Jan 2025 16:53:55 +0000 (16:53 +0000)]
gh-128308: pass `**kwargs` to asyncio task_factory (#128768)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Diego Russo [Mon, 20 Jan 2025 16:51:09 +0000 (16:51 +0000)]
Move to public Linux arm64 hosted runners (#128964)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Peter Bierma [Mon, 20 Jan 2025 16:45:08 +0000 (11:45 -0500)]
gh-118915: C API: Document compiler flag macros (GH-129028)
Peter Bierma [Mon, 20 Jan 2025 15:54:29 +0000 (10:54 -0500)]
Docs C API: Clarify what happens when null bytes are passed to `PyUnicode_AsUTF8` (#127458)
Co-authored-by: Stan U. <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Mark Shannon [Mon, 20 Jan 2025 15:49:15 +0000 (15:49 +0000)]
GH-128939: Refactor JIT optimize structs (GH-128940)
nikalinov [Mon, 20 Jan 2025 15:46:09 +0000 (15:46 +0000)]
gh-129044: Update glossary entry for 'loader' to reflect current import system (#129073)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Victor Stinner [Mon, 20 Jan 2025 15:31:33 +0000 (16:31 +0100)]
gh-129033: Remove _PyInterpreterState_SetConfig() function (#129048)
Remove _PyInterpreterState_GetConfigCopy() and
_PyInterpreterState_SetConfig() private functions. PEP 741 "Python
Configuration C API" added a better public C API: PyConfig_Get() and
PyConfig_Set().
Victor Stinner [Mon, 20 Jan 2025 14:46:45 +0000 (15:46 +0100)]
Add Configuration Options table to PyInitConfig API doc (#129062)
Document PyConfig members:
* dump_refs_file
* stdlib_dir
* use_frozen_modules
* _pystats
Serhiy Storchaka [Mon, 20 Jan 2025 13:30:00 +0000 (15:30 +0200)]
gh-71339: Use new assertion methods in test_ctypes (GH-129054)
Bénédikt Tran [Mon, 20 Jan 2025 13:27:14 +0000 (14:27 +0100)]
gh-128978: Fix a `NameError` in `sysconfig.expand_makefile_vars` (#128979)
This fixes a regression introduced by
4a53a397c311567f05553bc25a28aebaba4f6f65 .
Bénédikt Tran [Mon, 20 Jan 2025 12:50:10 +0000 (13:50 +0100)]
Remove duplicated dict keys in `test_{embed,long}.py` fixtures (#128727)
Erlend E. Aasland [Mon, 20 Jan 2025 12:46:30 +0000 (13:46 +0100)]
gh-111178: Regen clinic and fix exceptions.c post gh-128447 (#129060)
Serhiy Storchaka [Mon, 20 Jan 2025 12:32:27 +0000 (14:32 +0200)]
gh-71339: Use new assertion methods in test_capi (GH-129053)
Erlend E. Aasland [Mon, 20 Jan 2025 11:40:18 +0000 (12:40 +0100)]
gh-111178: Generate correct signature for most self converters (#128447)
Peter Bierma [Mon, 20 Jan 2025 11:34:35 +0000 (06:34 -0500)]
gh-128360: Add `_Py_AssertHoldsTstate` as assertion for holding a thread state (#128361)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Serhiy Storchaka [Mon, 20 Jan 2025 11:32:39 +0000 (13:32 +0200)]
gh-71339: Use new assertion methods in `test_asyncio` (#129051)
Hugo van Kemenade [Mon, 20 Jan 2025 10:52:42 +0000 (12:52 +0200)]
gh-128595: Default to stdout isatty for colour detection instead of stderr (#128498)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Victor Stinner [Mon, 20 Jan 2025 10:42:04 +0000 (11:42 +0100)]
Reorganize the PyInitConfig documentation (#129047)
Document the new PyInitConfig API before the old PyConfig API.
Tomas R. [Mon, 20 Jan 2025 10:11:08 +0000 (11:11 +0100)]
Fix a typo in `syslog`'s error message (#129029)
Victor Stinner [Mon, 20 Jan 2025 10:03:22 +0000 (11:03 +0100)]
gh-129033: Remove _Py_InitializeMain() function (#129034)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Serhiy Storchaka [Mon, 20 Jan 2025 09:22:33 +0000 (11:22 +0200)]
gh-71339: Use new assertion methods in test_traceback (GH-128848)
Serhiy Storchaka [Mon, 20 Jan 2025 09:20:49 +0000 (11:20 +0200)]
gh-71339: Use assertIsSubclass() and assertNotIsSubclass() in test_decimal (GH-128827)
Serhiy Storchaka [Mon, 20 Jan 2025 09:19:43 +0000 (11:19 +0200)]
gh-71339: Use new assertion methods in test_abc (GH-128826)
Serhiy Storchaka [Mon, 20 Jan 2025 09:17:49 +0000 (11:17 +0200)]
gh-71339: Improve error report for types in assertHasAttr() and assertNotHasAttr() (GH-128818)
Serhiy Storchaka [Mon, 20 Jan 2025 09:17:04 +0000 (11:17 +0200)]
gh-71339: Use new assertion methods in test_functools (GH-128829)
Serhiy Storchaka [Mon, 20 Jan 2025 09:16:32 +0000 (11:16 +0200)]
gh-71339: Use assertIsSubclass() and assertNotIsSubclass() in test_collections (GH-128824)
Adam Turner [Mon, 20 Jan 2025 06:11:22 +0000 (06:11 +0000)]
GH-125722: Use long options for Sphinx (#129039)
Adam Turner [Mon, 20 Jan 2025 00:26:24 +0000 (00:26 +0000)]
GH-125722: Increase minimum supported Sphinx to 8.1.3 (#128922)