]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
12 months agogh-125741: Update `build.yml` for the new check_autoconf_regen job (#125772)
Adam Turner [Mon, 21 Oct 2024 10:54:54 +0000 (11:54 +0100)] 
gh-125741: Update `build.yml` for the new check_autoconf_regen job (#125772)

12 months agogh-125313: Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes (...
Y5 [Mon, 21 Oct 2024 09:35:54 +0000 (17:35 +0800)] 
gh-125313: Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes (#125317)

Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes.

Signed-off-by: y5c4l3 <y5c4l3@proton.me>
12 months agoDoc: Fix typos (#125728)
ember91 [Mon, 21 Oct 2024 08:44:18 +0000 (10:44 +0200)] 
Doc: Fix typos (#125728)

12 months agogh-125519: Improve traceback if `importlib.reload()` is called with a non-module...
Alex Waygood [Mon, 21 Oct 2024 06:53:21 +0000 (07:53 +0100)] 
gh-125519: Improve traceback if `importlib.reload()` is called with a non-module object (#125520)

12 months agogh-99030: Added documentation links for types and exceptions (GH-123857)
RUANG (Roy James) [Mon, 21 Oct 2024 00:36:27 +0000 (08:36 +0800)] 
gh-99030: Added documentation links for types and exceptions (GH-123857)

* Added documentation links for types and exceptions

* Shortened description sentences

* Change content

* Change documentation

* Move seealso

* Add a spaces

12 months agogh-125698: Restore EXEEXT in configure and Make (#125758)
Erlend E. Aasland [Sun, 20 Oct 2024 21:08:01 +0000 (23:08 +0200)] 
gh-125698: Restore EXEEXT in configure and Make (#125758)

This reverts commit e924bb667.

12 months agogh-125741: Update check_generated_files CI to use our published container image ...
Donghee Na [Sun, 20 Oct 2024 07:55:26 +0000 (16:55 +0900)] 
gh-125741: Update check_generated_files CI to use our published container image (gh-125744)

12 months agogh-125698: Replace EXEEXT with EXE_SUFFIX (#125699)
Erlend E. Aasland [Sun, 20 Oct 2024 01:10:17 +0000 (03:10 +0200)] 
gh-125698: Replace EXEEXT with EXE_SUFFIX (#125699)

12 months agoDoc: Fix pluralization in os.process_cpu_count() documentation (#125678)
Tom Most [Sun, 20 Oct 2024 00:48:06 +0000 (17:48 -0700)] 
Doc: Fix pluralization in os.process_cpu_count() documentation (#125678)

12 months agogh-125378: Trigger a repeat for the full multi-line statement for empty line command...
Tian Gao [Sat, 19 Oct 2024 21:46:57 +0000 (14:46 -0700)] 
gh-125378: Trigger a repeat for the full multi-line statement for empty line command (#125717)

12 months agogh-124984: Enhance `ssl` thread safety (#124993)
Peter Bierma [Sat, 19 Oct 2024 21:16:36 +0000 (17:16 -0400)] 
gh-124984: Enhance `ssl` thread safety (#124993)

Make SSL objects thread safe in Free Theaded build by
using critical sections.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months agogh-125398: Convert paths in venv activate script when using Git Bash under Windows...
Julien [Sat, 19 Oct 2024 17:34:41 +0000 (13:34 -0400)] 
gh-125398: Convert paths in venv activate script when using Git Bash under Windows (GH-125399)

* Convert paths in venv activate script when using Git Bash under Windows

With https://github.com/python/cpython/pull/112508 the check to converts paths when running on Windows was changed from using the non-posix environment variable `$OSTYPE` to using `uname` instead.

However this missed the fact that when running under Git Bash on Windows, uname reports `MINGW*` (`$OSTYPE` is still `msys`).

This results in `$PATH` being set to something like `D:\a\github-actions-shells\github-actions-shells\venv/Scripts:…`, instead of `/d/a/github-actions-shells/github-actions-shells/venv/Scripts`.

Notably, the Git Bash is the bash shell that’s used for GitHub Actions Windows runners, and ships with VSCode.

12 months agogh-125522: Fix bare except in test_math.testTan (#125544)
Irit Katriel [Sat, 19 Oct 2024 11:49:14 +0000 (12:49 +0100)] 
gh-125522: Fix bare except in test_math.testTan (#125544)

12 months agogh-52551: Use wcsftime() to implement time.strftime() on Windows (GH-125658)
Serhiy Storchaka [Sat, 19 Oct 2024 08:29:51 +0000 (11:29 +0300)] 
gh-52551: Use wcsftime() to implement time.strftime() on Windows (GH-125658)

12 months agoGH-99749: Add What's New entry for GH-124456 (GH-125671)
Savannah Ostrowski [Sat, 19 Oct 2024 08:26:46 +0000 (01:26 -0700)] 
GH-99749: Add What's New entry for GH-124456 (GH-125671)

12 months agoGH-125277: Increase minimum supported Sphinx to 7.2.6 (#125368)
Adam Turner [Sat, 19 Oct 2024 03:59:22 +0000 (04:59 +0100)] 
GH-125277: Increase minimum supported Sphinx to 7.2.6 (#125368)

12 months agogh-124694: In test_interpreter_pool, Restore the Asyncio Event Loop Policy During...
Eric Snow [Fri, 18 Oct 2024 22:05:12 +0000 (16:05 -0600)] 
gh-124694: In test_interpreter_pool, Restore the Asyncio Event Loop Policy During Cleanup (gh-125708)

This resolves a failure on the android buildbot.

12 months agogh-125207: Fix MSVC 1935 build with JIT (#125209)
Michael Droettboom [Fri, 18 Oct 2024 19:51:29 +0000 (15:51 -0400)] 
gh-125207: Fix MSVC 1935 build with JIT (#125209)

* gh-125207: Use {0} array initializers

* Simplify, as suggested in PR

* Revert change to explicitly specify length

12 months agogh-125703: Correctly honour tracemalloc hooks on specialized DECREF paths (#125704)
Pablo Galindo Salgado [Fri, 18 Oct 2024 16:09:34 +0000 (17:09 +0100)] 
gh-125703: Correctly honour tracemalloc hooks on specialized DECREF paths (#125704)

12 months agogh-125604: Move _Py_AuditHookEntry, etc. Out of pycore_runtime.h (gh-125605)
Eric Snow [Fri, 18 Oct 2024 15:26:08 +0000 (09:26 -0600)] 
gh-125604: Move _Py_AuditHookEntry, etc. Out of pycore_runtime.h (gh-125605)

This is essentially a cleanup, moving a handful of API declarations to the header files where they fit best, creating new ones when needed.

We do the following:

* add pycore_debug_offsets.h and move _Py_DebugOffsets, etc. there
* inline struct _getargs_runtime_state and struct _gilstate_runtime_state in _PyRuntimeState
* move struct _reftracer_runtime_state to the existing pycore_object_state.h
* add pycore_audit.h and move to it _Py_AuditHookEntry , _PySys_Audit(), and _PySys_ClearAuditHooks
* add audit.h and cpython/audit.h and move the existing audit-related API there
*move the perfmap/trampoline API from cpython/sysmodule.h to cpython/ceval.h, and remove the now-empty cpython/sysmodule.h

12 months agoAdd tests for time.strftime() with invalid format string (GH-125696)
Serhiy Storchaka [Fri, 18 Oct 2024 13:51:29 +0000 (16:51 +0300)] 
Add tests for time.strftime() with invalid format string (GH-125696)

12 months agogh-124102: Clean up unsupported VS and WiX detections (GH-124784)
Wulian [Fri, 18 Oct 2024 12:48:18 +0000 (20:48 +0800)] 
gh-124102: Clean up unsupported VS and WiX detections (GH-124784)

12 months agogh-123610: Added additional types to ctypes/wintypes.py (GH-124086)
RUANG (Roy James) [Fri, 18 Oct 2024 12:45:17 +0000 (20:45 +0800)] 
gh-123610: Added additional types to ctypes/wintypes.py (GH-124086)

12 months agogh-125660: Reject invalid unicode escapes for Python implementation of JSON decoder...
Nice Zombies [Fri, 18 Oct 2024 12:29:47 +0000 (14:29 +0200)] 
gh-125660: Reject invalid unicode escapes for Python implementation of JSON decoder (GH-125683)

12 months agogh-125682: Reject non-ASCII digits in the Python implementation of JSON decoder ...
Nice Zombies [Fri, 18 Oct 2024 12:26:29 +0000 (14:26 +0200)] 
gh-125682: Reject non-ASCII digits in the Python implementation of JSON decoder (GH-125687)

12 months agogh-125620: Skip check_resource_tracker_death on NetBSD due to long wait for SIGKILL...
Furkan Onder [Fri, 18 Oct 2024 02:08:34 +0000 (05:08 +0300)] 
gh-125620: Skip check_resource_tracker_death on NetBSD due to long wait for SIGKILL process termination (GH-125621)

* Skip test_resource_tracker_sigkill on NetBSD

12 months agogh-125600: Only show stale code warning on source code display commands (#125601)
Tian Gao [Fri, 18 Oct 2024 00:29:11 +0000 (17:29 -0700)] 
gh-125600: Only show stale code warning on source code display commands (#125601)

12 months agogh-125667: Statically Initialize the Arg Converter Data Values in _interpqueuesmodule...
Eric Snow [Thu, 17 Oct 2024 23:49:15 +0000 (17:49 -0600)] 
gh-125667: Statically Initialize the Arg Converter Data Values in _interpqueuesmodule.c (gh-125668)

12 months agogh-125017: Fix refleak from GH-125636 (GH-125664)
Zachary Ware [Thu, 17 Oct 2024 22:21:32 +0000 (17:21 -0500)] 
gh-125017: Fix refleak from GH-125636 (GH-125664)

12 months agogh-125541: Make Ctrl-C interrupt `threading.Lock.acquire()` on Windows (#125546)
Sam Gross [Thu, 17 Oct 2024 18:10:55 +0000 (14:10 -0400)] 
gh-125541: Make Ctrl-C interrupt `threading.Lock.acquire()` on Windows (#125546)

12 months agogh-118986: expose `socket.IPV6_RECVERR` (#118987)
chrysn [Thu, 17 Oct 2024 17:49:12 +0000 (19:49 +0200)] 
gh-118986: expose `socket.IPV6_RECVERR` (#118987)

12 months agogh-125017: Fix crash on premature access to classmethod/staticmethod annotations...
Jelle Zijlstra [Thu, 17 Oct 2024 16:45:25 +0000 (09:45 -0700)] 
gh-125017: Fix crash on premature access to classmethod/staticmethod annotations (#125636)

12 months agogh-113570: reprlib.repr does not use builtin __repr__ for reshadowed builtins (GH...
George Pittock [Thu, 17 Oct 2024 16:34:37 +0000 (17:34 +0100)] 
gh-113570: reprlib.repr does not use builtin __repr__ for reshadowed builtins (GH-113577)

12 months agogh-52551: Fix encoding issues in strftime() (GH-125193)
Serhiy Storchaka [Thu, 17 Oct 2024 15:46:59 +0000 (18:46 +0300)] 
gh-52551: Fix encoding issues in strftime() (GH-125193)

Fix time.strftime(), the strftime() method and formatting of the
datetime classes datetime, date and time.

* Characters not encodable in the current locale are now acceptable in
  the format string.
* Surrogate pairs and sequence of surrogatescape-encoded bytes are no
  longer recombinated.
* Embedded null character no longer terminates the format string.

This fixes also gh-78662 and gh-124531.

12 months agogh-125625: Check for `py -3.13` in PCbuild/find_python.bat (GH-125626)
Wulian [Thu, 17 Oct 2024 15:40:30 +0000 (23:40 +0800)] 
gh-125625: Check for `py -3.13` in PCbuild/find_python.bat (GH-125626)

12 months agogh-123370: Fix the canvas not clearing after running turtledemo.clock (#123457)
Wulian [Thu, 17 Oct 2024 15:23:37 +0000 (23:23 +0800)] 
gh-123370: Fix the canvas not clearing after running turtledemo.clock (#123457)

Rewriting the day and date every tick somehow prevented them from being removed either by clicking STOP or loading another example.  The solution is to rewrite them only when they change.

12 months agoGH-99108: Make vectorized versions of Blake2 available on x86, too (#125244)
Jonathan Protzenko [Thu, 17 Oct 2024 15:08:43 +0000 (08:08 -0700)] 
GH-99108: Make vectorized versions of Blake2 available on x86, too (#125244)

Accomplished by updating HACL* vendored code from hacl-star/hacl-star@a6a09496d9cff652b567d26f2c3ab012321b632a to hacl-star/hacl-star@315a9e491d2bc347b9dae99e0ea506995ea84d9d

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Zachary Ware <zach@python.org>
12 months agogh-125644: Update `locations.md` reference (#125645)
Emmanuel Ferdman [Thu, 17 Oct 2024 14:33:37 +0000 (17:33 +0300)] 
gh-125644: Update `locations.md` reference (#125645)

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
12 months agogh-123153: Fix PGO builds with free-threading on Windows (#125607)
Michael Droettboom [Thu, 17 Oct 2024 12:20:30 +0000 (08:20 -0400)] 
gh-123153: Fix PGO builds with free-threading on Windows (#125607)

* gh-123153: Fix PGO builds with free-threading

* Redo how the #define works

12 months agogh-95836: Add custom type converter examples to argparse tutorial (GH-125376)
Savannah Ostrowski [Thu, 17 Oct 2024 11:41:22 +0000 (04:41 -0700)] 
gh-95836: Add custom type converter examples to argparse tutorial (GH-125376)

12 months agogh-125542: Deprecate prefix_chars in ArgumentParser.add_argument_group() (GH-125563)
Savannah Ostrowski [Thu, 17 Oct 2024 09:11:47 +0000 (02:11 -0700)] 
gh-125542: Deprecate prefix_chars in ArgumentParser.add_argument_group() (GH-125563)

12 months agoGH-99749: Add optional feature to suggest correct names (ArgumentParser) (GH-124456)
Savannah Ostrowski [Thu, 17 Oct 2024 07:07:37 +0000 (00:07 -0700)] 
GH-99749: Add optional feature to suggest correct names (ArgumentParser) (GH-124456)

12 months agogh-124694: Add concurrent.futures.InterpreterPoolExecutor (gh-124548)
Eric Snow [Wed, 16 Oct 2024 22:50:46 +0000 (16:50 -0600)] 
gh-124694: Add concurrent.futures.InterpreterPoolExecutor (gh-124548)

This is an implementation of InterpreterPoolExecutor that builds on ThreadPoolExecutor.

(Note that this is not tied to PEP 734, which is strictly about adding a new stdlib module.)

Possible future improvements:

* support passing a script for the initializer or to submit()
* support passing (most) arbitrary functions without pickling
* support passing closures
* optionally exec functions against __main__ instead of the their original module

12 months agogh-125620: Remove unnecessary import of subprocess in spawnv_passfds (#125624)
Furkan Onder [Wed, 16 Oct 2024 22:42:29 +0000 (01:42 +0300)] 
gh-125620: Remove unnecessary import of subprocess in spawnv_passfds (#125624)

Remove unnecessary import of subprocess in multiprocessing.util.spawnv_passfds.

12 months agogh-125550: Enable py.exe to detect Store installs of 3.14 (GH-125551)
Steve Dower [Wed, 16 Oct 2024 22:05:20 +0000 (23:05 +0100)] 
gh-125550: Enable py.exe to detect Store installs of 3.14 (GH-125551)

12 months agogh-115382: Fix cross compiles when host and target use same SOABI
Vincent Fazio [Wed, 16 Oct 2024 22:01:42 +0000 (17:01 -0500)] 
gh-115382: Fix cross compiles when host and target use same SOABI

Co-authored-by: Erlend E. Aasland <erlend@python.org>
12 months agogh-125615: Fix grammar nit in tutorial's interactive interpreter appendix (GH-125617)
Cornelius Roemer [Wed, 16 Oct 2024 20:53:30 +0000 (22:53 +0200)] 
gh-125615: Fix grammar nit in tutorial's interactive interpreter appendix (GH-125617)

Replace "without ... nor" with "with neither ... nor"

12 months agogh-125451: Fix deadlock in ProcessPoolExecutor shutdown (#125492)
Sam Gross [Wed, 16 Oct 2024 15:39:17 +0000 (11:39 -0400)] 
gh-125451: Fix deadlock in ProcessPoolExecutor shutdown (#125492)

There was a deadlock when `ProcessPoolExecutor` shuts down at the same
time that a queueing thread handles an error processing a task.

Don't use `_shutdown_lock` to protect the `_ThreadWakeup` pipes -- use
an internal lock instead. This fixes the ordering deadlock where the
`ExecutorManagerThread` holds the `_shutdown_lock` and joins the
queueing thread, while the queueing thread is attempting to acquire the
`_shutdown_lock` while closing the `_ThreadWakeup`.

12 months agoCI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (#125592)
Kirill Podoprigora [Wed, 16 Oct 2024 14:27:19 +0000 (17:27 +0300)] 
CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (#125592)

* Bump mypy to 1.12 & Python to 3.13

* Remove unnecessary `type: ignore`

12 months agogh-125584: Require network resource in ``test_urllib2.HandlerTests.test_ftp_error...
Michał Górny [Wed, 16 Oct 2024 13:24:41 +0000 (15:24 +0200)] 
gh-125584: Require network resource in ``test_urllib2.HandlerTests.test_ftp_error`` (#125586)

12 months agogh-125444: Fix illegal instruction for older Arm architectures (#125574)
Diego Russo [Wed, 16 Oct 2024 13:13:07 +0000 (14:13 +0100)] 
gh-125444: Fix illegal instruction for older Arm architectures (#125574)

On Arm v5 it is not possible to get the thread ID via c13 register
hence the illegal instruction. The c13 register started to provide
thread ID since Arm v6K architecture variant. Other variants of
Arm v6 (T2, Z and base) don’t provide the thread ID via c13.
For the sake of simplicity we group v5 and v6 together and
consider that instructions for Arm v7 only.

12 months agogh-125217: Turn off optimization around_PyEval_EvalFrameDefault to avoid MSVC crash...
Michael Droettboom [Wed, 16 Oct 2024 12:51:15 +0000 (08:51 -0400)] 
gh-125217: Turn off optimization around_PyEval_EvalFrameDefault to avoid MSVC crash (#125477)

12 months agogh-124872: Replace enter/exit events with "switched" (#125532)
Kirill Podoprigora [Wed, 16 Oct 2024 11:53:21 +0000 (14:53 +0300)] 
gh-124872: Replace enter/exit events with "switched" (#125532)

Users want to know when the current context switches to a different
context object.  Right now this happens when and only when a context
is entered or exited, so the enter and exit events are synonymous with
"switched".  However, if the changes proposed for gh-99633 are
implemented, the current context will also switch for reasons other
than context enter or exit.  Since users actually care about context
switches and not enter or exit, replace the enter and exit events with
a single switched event.

The former exit event was emitted just before exiting the context.
The new switched event is emitted after the context is exited to match
the semantics users expect of an event with a past-tense name.  If
users need the ability to clean up before the switch takes effect,
another event type can be added in the future.  It is not added here
because YAGNI.

I skipped 0 in the enum as a matter of practice.  Skipping 0 makes it
easier to troubleshoot when code forgets to set zeroed memory, and it
aligns with best practices for other tools (e.g.,
https://protobuf.dev/programming-guides/dos-donts/#unspecified-enum).

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
12 months agoMerge remote-tracking branch 'upstream/main'
Hugo van Kemenade [Tue, 15 Oct 2024 22:13:48 +0000 (01:13 +0300)] 
Merge remote-tracking branch 'upstream/main'

12 months agoUpdate verison options in crash issue template (GH-125555)
Zachary Ware [Tue, 15 Oct 2024 22:08:00 +0000 (17:08 -0500)] 
Update verison options in crash issue template (GH-125555)

12 months agoPost 3.14.0a1
Hugo van Kemenade [Tue, 15 Oct 2024 21:44:52 +0000 (00:44 +0300)] 
Post 3.14.0a1

12 months agoIssue template: Remove 3.8 and add 3.14 version (#125552)
Kirill Podoprigora [Tue, 15 Oct 2024 21:25:20 +0000 (00:25 +0300)] 
Issue template: Remove 3.8 and add 3.14 version (#125552)

12 months agogh-58956: Set f_trace on frames with breakpoints after setting a new breakpoint ...
Tian Gao [Tue, 15 Oct 2024 19:56:33 +0000 (12:56 -0700)] 
gh-58956: Set f_trace on frames with breakpoints after setting a new breakpoint (#124454)

12 months agoPython 3.14.0a1 v3.14.0a1
Hugo van Kemenade [Tue, 15 Oct 2024 19:29:35 +0000 (22:29 +0300)] 
Python 3.14.0a1

12 months agogh-125115: Pass unknown pdb command line args to script instead of fail (#125424)
Tian Gao [Tue, 15 Oct 2024 19:30:28 +0000 (12:30 -0700)] 
gh-125115: Pass unknown pdb command line args to script instead of fail (#125424)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
12 months agogh-124218: Use per-thread refcounts for code objects (#125216)
Sam Gross [Tue, 15 Oct 2024 19:06:41 +0000 (15:06 -0400)] 
gh-124218: Use per-thread refcounts for code objects (#125216)

Use per-thread refcounting for the reference from function objects to
their corresponding code object. This can be a source of contention when
frequently creating nested functions. Deferred refcounting alone isn't a
great fit here because these references are on the heap and may be
modified by other libraries.

12 months agogh-92953: Improve nextpool/prevpool comment. (gh-125545)
Neil Schemenauer [Tue, 15 Oct 2024 18:47:20 +0000 (11:47 -0700)] 
gh-92953: Improve nextpool/prevpool comment. (gh-125545)

The meaning of these links depends on which list the pool is part of.
They are only the same size class if on the "usedpools" list.

12 months agogh-125206: Bug in ctypes with old libffi is fixed (#125322)
Mikhail Efimov [Tue, 15 Oct 2024 16:17:10 +0000 (19:17 +0300)] 
gh-125206: Bug in ctypes with old libffi is fixed (#125322)

Workaround for old libffi versions is added.
Module ctypes now supports C11 double complex only with libffi >= 3.3.0.

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
12 months agogh-124375: Avoid calling `_PyMem_ProcessDelayed` on other thread states (#124459)
Sam Gross [Tue, 15 Oct 2024 16:09:35 +0000 (12:09 -0400)] 
gh-124375: Avoid calling `_PyMem_ProcessDelayed` on other thread states (#124459)

This fixes a crash when running the PyO3 test suite on the free-threaded
build. The `qsbr` field is initialized after the `PyThreadState` is
added to the interpreter's linked list -- it might still be NULL.

Instead, we "steal" the queue of to-be-freed memory blocks. This is
always initialized (possibly empty) and protected by the stop the world
pause.

12 months agogh-125522 : add explicit exception types to bare excepts in tests (#125523)
Irit Katriel [Tue, 15 Oct 2024 16:00:04 +0000 (17:00 +0100)] 
gh-125522 : add explicit exception types to bare excepts in tests (#125523)

12 months agogh-89819: Add argument_default and conflict_handler to add_argument_group() docs...
Savannah Ostrowski [Tue, 15 Oct 2024 15:48:28 +0000 (08:48 -0700)] 
gh-89819: Add argument_default and conflict_handler to add_argument_group() docs (GH-125379)

12 months agogh-100141: Allow pdb to deal with empty file (#125425)
Tian Gao [Tue, 15 Oct 2024 15:45:23 +0000 (08:45 -0700)] 
gh-100141: Allow pdb to deal with empty file (#125425)

12 months agogh-125451: Skip concurrent.futures test_processes_terminate() (#125533)
Victor Stinner [Tue, 15 Oct 2024 15:42:55 +0000 (17:42 +0200)] 
gh-125451: Skip concurrent.futures test_processes_terminate() (#125533)

The test hangs randomly. It tries to serialize local lock and a local
function which are not possible.

12 months agogh-119786: fix typo in compiler.md (#125456)
Mikhail Efimov [Tue, 15 Oct 2024 15:38:19 +0000 (18:38 +0300)] 
gh-119786: fix typo in compiler.md (#125456)

12 months agogh-125422: Don't set the caller's f_trace if it's botframe (#125427)
Tian Gao [Tue, 15 Oct 2024 14:51:37 +0000 (07:51 -0700)] 
gh-125422: Don't set the caller's f_trace if it's botframe (#125427)

12 months agogh-125512: Revert "gh-124872: Replace enter/exit events with "switched" (#124776...
Kirill Podoprigora [Tue, 15 Oct 2024 14:42:16 +0000 (17:42 +0300)] 
gh-125512: Revert "gh-124872: Replace enter/exit events with "switched" (#124776)" (#125513)

12 months agogh-125514: fix bug in test_traceback utility. Specify exception types in except:...
Irit Katriel [Tue, 15 Oct 2024 14:11:02 +0000 (15:11 +0100)] 
gh-125514: fix bug in test_traceback utility. Specify exception types in except: clauses (#125516)

12 months agogh-125517: Fix unreachable code warnings in `_testembed.c` (#125518)
sobolevn [Tue, 15 Oct 2024 13:12:32 +0000 (16:12 +0300)] 
gh-125517: Fix unreachable code warnings in `_testembed.c` (#125518)

12 months agogh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed...
Petr Viktorin [Tue, 15 Oct 2024 11:29:43 +0000 (13:29 +0200)] 
gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed bytes (#125042)

12 months agogh-119535: Support 𝜋thon in Python 3.14 venvs (#125035)
foreignmeloman [Tue, 15 Oct 2024 10:26:19 +0000 (14:26 +0400)] 
gh-119535: Support 𝜋thon in Python 3.14 venvs (#125035)

12 months agogh-125196: Use PyUnicodeWriter in HAMT (#125458)
Victor Stinner [Tue, 15 Oct 2024 09:47:36 +0000 (11:47 +0200)] 
gh-125196: Use PyUnicodeWriter in HAMT (#125458)

12 months agogh-125234: Make PyInitConfig_Free(NULL) a no-op (#125266)
RUANG (Roy James) [Tue, 15 Oct 2024 09:21:16 +0000 (17:21 +0800)] 
gh-125234: Make PyInitConfig_Free(NULL) a no-op (#125266)

12 months agogh-53203: Fix strptime() tests for %X on glibc < 2.29 (#125469)
Serhiy Storchaka [Tue, 15 Oct 2024 08:05:40 +0000 (11:05 +0300)] 
gh-53203: Fix strptime() tests for %X on glibc < 2.29 (#125469)

12 months agogh-123299: Copyedit "What's New in Python 3.14" (#125438)
Hugo van Kemenade [Tue, 15 Oct 2024 07:39:15 +0000 (10:39 +0300)] 
gh-123299: Copyedit "What's New in Python 3.14" (#125438)

12 months agoDoc: Update CVE URL (#125489)
Mariusz Felisiak [Tue, 15 Oct 2024 07:29:08 +0000 (09:29 +0200)] 
Doc: Update CVE URL (#125489)

12 months agogh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (#125416)
Sam Gross [Tue, 15 Oct 2024 00:09:48 +0000 (20:09 -0400)] 
gh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (#125416)

We previously used `AC_RUN_IF_ELSE` with a short test program to detect
if `-latomic` is needed, but that requires choosing a specific default
value when cross-compiling because the test program is not run.
Some cross compilation targets like `wasm32-emscripten` do not support
`-latomic`, while other cross compilation targets, like
`arm-linux-gnueabi` require it.

12 months agogh-124958: Revert "gh-125472: Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture...
Thomas Grainger [Mon, 14 Oct 2024 22:45:58 +0000 (23:45 +0100)] 
gh-124958: Revert "gh-125472: Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles ... (#125486)

* Revert "gh-125472: Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#12… (#125476)"

This reverts commit e99650b80ace3893c2a80b3f2a4aca99cb305191.

* fix incompatability with gh-124392

12 months agogh-124944: Add socket.SO_ORIGINAL_DST (#124945)
Steven Jin [Mon, 14 Oct 2024 22:36:38 +0000 (18:36 -0400)] 
gh-124944: Add socket.SO_ORIGINAL_DST (#124945)

12 months agogh-85453: Improve variable mark up for datetime.rst (#120702)
edson duarte [Mon, 14 Oct 2024 22:02:58 +0000 (19:02 -0300)] 
gh-85453: Improve variable mark up for datetime.rst (#120702)

Variables and literals are marked up using backticks.

12 months agoFix idlelib typos (#125484)
Terry Jan Reedy [Mon, 14 Oct 2024 21:11:58 +0000 (17:11 -0400)] 
Fix idlelib typos (#125484)

Propagate fixes in Doc/library/idle.rst to help.html.
Change 'interruptable' to 'interruptible' in run.py.
The latter was reported by ember91 in PR 125473.

12 months agogh-125470: Fix warning in `Python/generated_cases.c.h` (#125471)
sobolevn [Mon, 14 Oct 2024 20:46:17 +0000 (23:46 +0300)] 
gh-125470: Fix warning in `Python/generated_cases.c.h` (#125471)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
12 months agogh-124872: Replace enter/exit events with "switched" (#124776)
Richard Hansen [Mon, 14 Oct 2024 19:28:41 +0000 (15:28 -0400)] 
gh-124872: Replace enter/exit events with "switched" (#124776)

Users want to know when the current context switches to a different
context object.  Right now this happens when and only when a context
is entered or exited, so the enter and exit events are synonymous with
"switched".  However, if the changes proposed for gh-99633 are
implemented, the current context will also switch for reasons other
than context enter or exit.  Since users actually care about context
switches and not enter or exit, replace the enter and exit events with
a single switched event.

The former exit event was emitted just before exiting the context.
The new switched event is emitted after the context is exited to match
the semantics users expect of an event with a past-tense name.  If
users need the ability to clean up before the switch takes effect,
another event type can be added in the future.  It is not added here
because YAGNI.

I skipped 0 in the enum as a matter of practice.  Skipping 0 makes it
easier to troubleshoot when code forgets to set zeroed memory, and it
aligns with best practices for other tools (e.g.,
https://protobuf.dev/programming-guides/dos-donts/#unspecified-enum).

12 months agogh-125472: Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#12...
Kirill Podoprigora [Mon, 14 Oct 2024 17:59:13 +0000 (20:59 +0300)] 
gh-125472: Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#12… (#125476)

Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#124959)"

This reverts commit d5dbbf4372cd3dbf3eead1cc70ddc4261c061fd9.

12 months agogh-119786: [doc] broken link and typo fix in interpreter_definition.md (#125455)
Mikhail Efimov [Mon, 14 Oct 2024 17:24:54 +0000 (20:24 +0300)] 
gh-119786: [doc] broken link and typo fix in interpreter_definition.md  (#125455)

12 months agogh-125461: Remove Python 2 from identifiers in doc (GH-125462)
Paul Hoffman [Mon, 14 Oct 2024 15:26:57 +0000 (08:26 -0700)] 
gh-125461: Remove Python 2 from identifiers in doc (GH-125462)

Remove Python 2 from identifiers in doc

12 months agogh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#124959)
Thomas Grainger [Mon, 14 Oct 2024 15:19:56 +0000 (16:19 +0100)] 
gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#124959)

12 months agogh-112088: aclocal version is updated to 1.16.5 in docs (#125457)
Mikhail Efimov [Mon, 14 Oct 2024 14:53:08 +0000 (17:53 +0300)] 
gh-112088: aclocal version is updated to 1.16.5 in docs (#125457)

12 months agogh-111178: fix USAN failures for `partialobject` (#124733)
Bénédikt Tran [Mon, 14 Oct 2024 14:23:05 +0000 (16:23 +0200)] 
gh-111178: fix USAN failures for `partialobject` (#124733)

12 months agogh-124960: Fixed `barry_as_FLUFL` future flag does not work in new REPL (#124999)
Wulian [Mon, 14 Oct 2024 13:53:50 +0000 (21:53 +0800)] 
gh-124960: Fixed `barry_as_FLUFL` future flag does not work in new REPL (#124999)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
12 months agogh-53203: Fix strptime() for %c, %x and %X formats on many locales (GH-125406)
Serhiy Storchaka [Mon, 14 Oct 2024 13:29:20 +0000 (16:29 +0300)] 
gh-53203: Fix strptime() for %c, %x and %X formats on many locales (GH-125406)

Fixed most locales that use non-ASCII digits, like Persian, Burmese,
Odia and Shan.

12 months agoGH-125323: Convert DECREF_INPUTS_AND_REUSE_FLOAT into a function that takes PyStackRe...
Mark Shannon [Mon, 14 Oct 2024 13:18:57 +0000 (14:18 +0100)] 
GH-125323: Convert DECREF_INPUTS_AND_REUSE_FLOAT into a function that takes PyStackRefs. (GH-125439)

12 months agogh-125139: use `_PyRecursiveMutex` in `_thread.RLock` (#125144)
Kumar Aditya [Mon, 14 Oct 2024 08:36:31 +0000 (14:06 +0530)] 
gh-125139: use `_PyRecursiveMutex` in `_thread.RLock` (#125144)

12 months agogh-121798: Add class method Decimal.from_number() (GH-121801)
Serhiy Storchaka [Mon, 14 Oct 2024 08:24:01 +0000 (11:24 +0300)] 
gh-121798: Add class method Decimal.from_number() (GH-121801)

It is an alternate constructor which only accepts a single numeric argument.
Unlike to Decimal.from_float() it accepts also Decimal.
Unlike to the standard constructor, it does not accept strings and tuples.

12 months agogh-125323: Remove some unsafe Py_DECREFs in bytecodes.c, replacing them with PyStackR...
Ken Jin [Mon, 14 Oct 2024 08:17:51 +0000 (16:17 +0800)] 
gh-125323: Remove some unsafe Py_DECREFs in bytecodes.c, replacing them with PyStackRef_CLOSEs (GH-125324)

12 months agogh-121797: Add class method Fraction.from_number() (GH-121800)
Serhiy Storchaka [Mon, 14 Oct 2024 07:54:59 +0000 (10:54 +0300)] 
gh-121797: Add class method Fraction.from_number() (GH-121800)

It is an alternative constructor which only accepts a single numeric argument.
Unlike to Fraction.from_float() and Fraction.from_decimal() it accepts any
real numbers supported by the standard constructor (int, float, Decimal,
Rational numbers, objects with as_integer_ratio()).
Unlike to the standard constructor, it does not accept strings.