]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
12 months agogh-89762: Document strftime %G, %V, and %u format specifiers (#124572)
RUANG (James Roy) [Mon, 28 Oct 2024 21:53:18 +0000 (05:53 +0800)] 
gh-89762: Document strftime %G, %V, and %u format specifiers (#124572)

12 months agogh-125985: Add free threading scaling micro benchmarks (#125986)
Sam Gross [Mon, 28 Oct 2024 21:47:23 +0000 (17:47 -0400)] 
gh-125985: Add free threading scaling micro benchmarks (#125986)

These consist of a number of short snippets that help identify scaling
bottlenecks in the free threaded interpreter.

The current bottlenecks are in calling functions in benchmarks that call
functions (due to `LOAD_ATTR` not yet using deferred reference counting)
and when accessing thread-local data.

12 months agoGH-125912: Teach the JIT's optimizer about _BINARY_OP_INPLACE_ADD_UNICODE (GH-125935)
Brandt Bucher [Mon, 28 Oct 2024 21:37:16 +0000 (14:37 -0700)] 
GH-125912: Teach the JIT's optimizer about _BINARY_OP_INPLACE_ADD_UNICODE (GH-125935)

12 months agoPre-commit: prevent spaces in news entry paths (#126063)
Hugo van Kemenade [Mon, 28 Oct 2024 21:04:10 +0000 (23:04 +0200)] 
Pre-commit: prevent spaces in news entry paths (#126063)

12 months agoLint GitHub Actions and Dependabot (#126002)
Hugo van Kemenade [Mon, 28 Oct 2024 18:59:35 +0000 (20:59 +0200)] 
Lint GitHub Actions and Dependabot (#126002)

12 months agogh-126081: For PRs labeled with "type-feature", require a core review (GH-126082)
Łukasz Langa [Mon, 28 Oct 2024 17:15:46 +0000 (18:15 +0100)] 
gh-126081: For PRs labeled with "type-feature", require a core review (GH-126082)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
12 months agoGH-125515: Reduce number of compiler warnings in generated code (GH-125697)
Mark Shannon [Mon, 28 Oct 2024 10:30:31 +0000 (10:30 +0000)] 
GH-125515: Reduce number of compiler warnings in generated code (GH-125697)

12 months agogh-126035: add missing whitespace to *Py_EnterRecursiveCall() messages (#126036)
Bénédikt Tran [Sun, 27 Oct 2024 21:55:48 +0000 (22:55 +0100)] 
gh-126035: add missing whitespace to *Py_EnterRecursiveCall() messages (#126036)

12 months agogh-124295: Skip translation tests when pygettext is missing (GH-126051)
Tomas R. [Sun, 27 Oct 2024 18:09:08 +0000 (19:09 +0100)] 
gh-124295: Skip translation tests when pygettext is missing (GH-126051)

12 months agogh-125966: fix use-after-free on `fut->fut_callback0` due to an evil callback's ...
Bénédikt Tran [Sun, 27 Oct 2024 17:10:10 +0000 (18:10 +0100)] 
gh-125966: fix use-after-free on `fut->fut_callback0` due to an evil callback's `__eq__` in asyncio (#125967)

12 months agogh-124295: Add translation tests for argparse (GH-124803)
Tomas R. [Sun, 27 Oct 2024 16:52:31 +0000 (17:52 +0100)] 
gh-124295: Add translation tests for argparse (GH-124803)

12 months agogh-125984: fix use-after-free on `fut->fut_{callback,context}0` due to an evil `loop...
Bénédikt Tran [Sun, 27 Oct 2024 15:04:43 +0000 (16:04 +0100)] 
gh-125984: fix use-after-free on `fut->fut_{callback,context}0` due to an evil `loop.__getattribute__` (#126003)

12 months agogh-126018: Avoid aborting due to unnecessary assert in `sys.audit` (#126020)
devdanzin [Sun, 27 Oct 2024 14:41:42 +0000 (11:41 -0300)] 
gh-126018: Avoid aborting due to unnecessary assert in `sys.audit` (#126020)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
12 months agogh-126012: Add `__class_getitem__` to `memoryview` (#126013)
Brian Schubert [Sun, 27 Oct 2024 10:36:03 +0000 (06:36 -0400)] 
gh-126012: Add `__class_getitem__` to `memoryview` (#126013)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
12 months agogh-125633: Add function `ispackage` to stdlib `inspect` (#125634)
Zhikang Yan [Sun, 27 Oct 2024 04:57:43 +0000 (12:57 +0800)] 
gh-125633: Add function `ispackage` to stdlib `inspect` (#125634)

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
12 months agoAndroid: Update tests for newly-available functions affected by SELinux (#126015)
Malcolm Smith [Sun, 27 Oct 2024 02:35:53 +0000 (02:35 +0000)] 
Android: Update tests for newly-available functions affected by SELinux (#126015)

Skip tests on Android that involve use of SELinux-protected methods.

12 months agogh-125666: Avoid PyREPL exiting when a null byte is in input (#125732)
devdanzin [Sun, 27 Oct 2024 01:23:53 +0000 (22:23 -0300)] 
gh-125666: Avoid PyREPL exiting when a null byte is in input (#125732)

12 months agogh-125593: Use colors to highlight error locations in tracebacks from exception group...
Bogdan Romanyuk [Sun, 27 Oct 2024 00:57:10 +0000 (03:57 +0300)] 
gh-125593: Use colors to highlight error locations in tracebacks from exception group (#125681)

12 months agogh-94512: Fix forced arg format in posixmodule.c clinic code (#122516)
Bénédikt Tran [Sat, 26 Oct 2024 21:40:31 +0000 (23:40 +0200)] 
gh-94512: Fix forced arg format in posixmodule.c clinic code (#122516)

12 months agogh-89640: properly detect float word ordering on Linux (#125571)
Erlend E. Aasland [Sat, 26 Oct 2024 15:46:46 +0000 (17:46 +0200)] 
gh-89640: properly detect float word ordering on Linux (#125571)

autoconf-archive patch by Dan Amelang.

12 months agoFix a typo in ``Doc/tutorial/errors.rst`` exception output (#126001)
Bogdana Vereha [Sat, 26 Oct 2024 15:26:35 +0000 (17:26 +0200)] 
Fix a typo in ``Doc/tutorial/errors.rst`` exception output (#126001)

12 months agoUpdate CODEOWNERS (#126005)
Guido van Rossum [Sat, 26 Oct 2024 15:24:51 +0000 (08:24 -0700)] 
Update CODEOWNERS (#126005)

12 months agogh-125698: Autoconf: Sync EXEEXT and ac_exeext (#125995)
Erlend E. Aasland [Sat, 26 Oct 2024 15:11:42 +0000 (17:11 +0200)] 
gh-125698: Autoconf: Sync EXEEXT and ac_exeext (#125995)

12 months agogh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon` (#125970) 125389/head
Bénédikt Tran [Fri, 25 Oct 2024 18:15:09 +0000 (20:15 +0200)] 
gh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon` (#125970)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
12 months agogh-125783: Add tests to prevent regressions with the combination of `ctypes` and...
Jun Komoda [Fri, 25 Oct 2024 16:31:35 +0000 (01:31 +0900)] 
gh-125783: Add tests to prevent regressions with the combination of `ctypes` and metaclasses. (GH-125881)

12 months agoGH-125911: Call combine_symbol_mask on the initial trampoline of a trace (GH-125973)
Nadeshiko Manju [Fri, 25 Oct 2024 15:43:02 +0000 (23:43 +0800)] 
GH-125911: Call combine_symbol_mask on the initial trampoline of a trace (GH-125973)

12 months agogh-120313: amend documentation regarding `ctypes._CFuncPtr` (GH-120989)
Bénédikt Tran [Fri, 25 Oct 2024 13:32:23 +0000 (15:32 +0200)] 
gh-120313: amend documentation regarding `ctypes._CFuncPtr` (GH-120989)

improve docs

12 months agoGH-125789: fix `fut._callbacks` to always return a copy of callbacks (#125922)
Kumar Aditya [Fri, 25 Oct 2024 12:49:30 +0000 (18:19 +0530)] 
GH-125789: fix `fut._callbacks` to always return a copy of callbacks (#125922)

Fix `asyncio.Future._callbacks` to always return a copy of the internal list of callbacks to avoid mutation from user code affecting the internal state.

12 months agogh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR) (#125583)
Victor Stinner [Fri, 25 Oct 2024 09:14:52 +0000 (11:14 +0200)] 
gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR) (#125583)

Replace PyUnicode_FromStringAndSize(NULL, 0)
with Py_GetConstant(Py_CONSTANT_EMPTY_STR).

12 months agogh-121654: Add PyType_Freeze() function (#122457)
Victor Stinner [Fri, 25 Oct 2024 09:12:48 +0000 (11:12 +0200)] 
gh-121654: Add PyType_Freeze() function (#122457)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
12 months agogh-84545: Clarify the 'extend' action documentation in argparse (GH-125870)
Serhiy Storchaka [Fri, 25 Oct 2024 08:41:38 +0000 (11:41 +0300)] 
gh-84545: Clarify the 'extend' action documentation in argparse (GH-125870)

12 months agogh-123930: Correct test of attribute failure to account for iOS (#125959)
Russell Keith-Magee [Fri, 25 Oct 2024 07:18:45 +0000 (15:18 +0800)] 
gh-123930: Correct test of attribute failure to account for iOS (#125959)

Update a test of importing attributes from binary modules to account for iOS conditions.

12 months agoFixed a few type mismatches in pdb (#125952)
Tian Gao [Fri, 25 Oct 2024 04:17:58 +0000 (21:17 -0700)] 
Fixed a few type mismatches in pdb (#125952)

12 months agoIncrease minimum Android API level to 24 (#125946)
Malcolm Smith [Fri, 25 Oct 2024 00:41:07 +0000 (01:41 +0100)] 
Increase minimum Android API level to 24 (#125946)

Minimum Android API level has been increased to 24 (Android 7.0).

12 months agogh-125942: Android: set stdout to `errors="backslashreplace"` (#125943)
Malcolm Smith [Fri, 25 Oct 2024 00:35:41 +0000 (01:35 +0100)] 
gh-125942: Android: set stdout to `errors="backslashreplace"` (#125943)

Android stdout/err streams now use `backslashreplace` encoding to ensure readability of the Android log.

12 months agogh-125940: Android: support 16 KB pages (#125941)
Malcolm Smith [Thu, 24 Oct 2024 23:51:16 +0000 (00:51 +0100)] 
gh-125940: Android: support 16 KB pages (#125941)

Modify Android build tooling to use 16kB pages.

12 months agogh-125245: Fix race condition when importing `collections.abc` (#125415)
Sam Gross [Thu, 24 Oct 2024 22:12:51 +0000 (18:12 -0400)] 
gh-125245: Fix race condition when importing `collections.abc` (#125415)

If multiple threads concurrently imported `collections.abc`, some of the
threads might incorrectly see the "shim" `Lib/collections/abc.py` module
instead of the correct `Lib/_collections_abc.py` module.  This affected
both the free threading build and the default GIL-enabled build.

12 months agogh-125900: Clean-up logic around immortalization in free-threading (#125901)
Sam Gross [Thu, 24 Oct 2024 22:09:59 +0000 (18:09 -0400)] 
gh-125900: Clean-up logic around immortalization in free-threading (#125901)

* Remove `@suppress_immortalization` decorator
* Make suppression flag per-thread instead of per-interpreter
* Suppress immortalization in `eval()` to avoid refleaks in three tests
  (test_datetime.test_roundtrip, test_logging.test_config8_ok, and
   test_random.test_after_fork).
* frozenset() is constant, but not a singleton. When run multiple times,
  the test could fail due to constant interning.

12 months agogh-125933: Add ARIA labels to select elements in the version switcher (#125934)
Kerim Kabirov [Thu, 24 Oct 2024 20:52:21 +0000 (22:52 +0200)] 
gh-125933: Add ARIA labels to select elements in the version switcher (#125934)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
12 months agogh-123930: Better error for "from imports" when script shadows module (#123929)
Shantanu [Thu, 24 Oct 2024 19:11:12 +0000 (12:11 -0700)] 
gh-123930: Better error for "from imports" when script shadows module (#123929)

12 months agogh-118950: Fix SSLProtocol.connection_lost not being called when OSError is thrown...
Javad Shafique [Thu, 24 Oct 2024 17:41:16 +0000 (19:41 +0200)] 
gh-118950: Fix SSLProtocol.connection_lost not being called when OSError is thrown (#118960)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
12 months agogh-125864: Propagate `pickle.loads()` failures in `InterpreterPoolExecutor` (gh-125898)
Peter Bierma [Thu, 24 Oct 2024 16:51:45 +0000 (12:51 -0400)] 
gh-125864: Propagate `pickle.loads()` failures in `InterpreterPoolExecutor` (gh-125898)

Authored-by: Peter Bierma <zintensitydev@gmail.com>
12 months agogh-124218: Avoid refcount contention on builtins module (GH-125847)
Sam Gross [Thu, 24 Oct 2024 16:44:38 +0000 (12:44 -0400)] 
gh-124218: Avoid refcount contention on builtins module (GH-125847)

This replaces `_PyEval_BuiltinsFromGlobals` with
`_PyDict_LoadBuiltinsFromGlobals`, which returns a new reference
instead of a borrowed reference. Internally, the new function uses
per-thread reference counting when possible to avoid contention on the
refcount fields on the builtins module.

12 months agogh-125909: Avoid a redirect when linking to the devguide (#125826)
partev [Thu, 24 Oct 2024 16:41:01 +0000 (12:41 -0400)] 
gh-125909: Avoid a redirect when linking to the devguide (#125826)

12 months agogh-125842: Fix `sys.exit(0xffff_ffff)` on Windows (#125896)
Sam Gross [Thu, 24 Oct 2024 16:03:50 +0000 (12:03 -0400)] 
gh-125842: Fix `sys.exit(0xffff_ffff)` on Windows (#125896)

On Windows, `long` is a signed 32-bit integer so it can't represent
`0xffff_ffff` without overflow. Windows exit codes are unsigned 32-bit
integers, so if a child process exits with `-1`, it will be represented
as `0xffff_ffff`.

Also fix a number of other possible cases where `_Py_HandleSystemExit`
could return with an exception set, leading to a `SystemError` (or
fatal error in debug builds) later on during shutdown.

12 months agogh-125859: Fix crash when `gc.get_objects` is called during GC (#125882)
Sam Gross [Thu, 24 Oct 2024 13:33:11 +0000 (09:33 -0400)] 
gh-125859: Fix crash when `gc.get_objects` is called during GC (#125882)

This fixes a crash when `gc.get_objects()` or `gc.get_referrers()` is
called during a GC in the free threading build.

Switch to `_PyObjectStack` to avoid corrupting the `struct worklist`
linked list maintained by the GC. Also, don't return objects that are frozen
(`gc.freeze()`) or in the process of being collected to more closely match
the behavior of the default build.

12 months agoGH-125868: Fix STORE_ATTR_WITH_HINT specialization (GH-125876)
Mark Shannon [Thu, 24 Oct 2024 10:57:02 +0000 (11:57 +0100)] 
GH-125868: Fix STORE_ATTR_WITH_HINT specialization (GH-125876)

12 months agoFix typo in garbage_collector.md (#125556)
Marat Sharafutdinov [Thu, 24 Oct 2024 02:04:49 +0000 (05:04 +0300)] 
Fix typo in garbage_collector.md (#125556)

12 months agogh-125614: annotationlib: Fix bug where not all Stringifiers are converted (#125635)
Jelle Zijlstra [Wed, 23 Oct 2024 23:27:55 +0000 (16:27 -0700)] 
gh-125614: annotationlib: Fix bug where not all Stringifiers are converted (#125635)

12 months agogh-125884: Support breakpoint on functions with annotations (#125892)
Tian Gao [Wed, 23 Oct 2024 22:04:30 +0000 (15:04 -0700)] 
gh-125884: Support breakpoint on functions with annotations (#125892)

12 months agogh-121938: ctypes: Skip test of _pack_-ed struct with c_int64 on x86 (GH-125877)
Petr Viktorin [Wed, 23 Oct 2024 21:37:06 +0000 (23:37 +0200)] 
gh-121938: ctypes: Skip test of _pack_-ed struct with c_int64 on x86 (GH-125877)

The current auto-generated tests don't cover this; it's instead
tested manually.

12 months agogh-125665: Update turtledemo docstrings with correct file names (#125691)
Wulian [Wed, 23 Oct 2024 20:29:32 +0000 (04:29 +0800)] 
gh-125665: Update turtledemo docstrings with correct file names (#125691)

Co-authored-by: Wulian <xiguawulian@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
12 months agogh-125286: Share the Main Refchain With Legacy Interpreters (gh-125709)
Eric Snow [Wed, 23 Oct 2024 16:10:06 +0000 (10:10 -0600)] 
gh-125286: Share the Main Refchain With Legacy Interpreters (gh-125709)

They used to be shared, before 3.12.  Returning to sharing them resolves a failure on Py_TRACE_REFS builds.

Co-authored-by: Petr Viktorin <encukou@gmail.com>
12 months agogh-119786: move 'changing grammar' checklist from devguide to InternalDocs (#125874)
Irit Katriel [Wed, 23 Oct 2024 13:48:39 +0000 (14:48 +0100)] 
gh-119786: move 'changing grammar' checklist from devguide to InternalDocs (#125874)

12 months agogh-58032: Deprecate the argparse.FileType type converter (GH-124664)
Serhiy Storchaka [Wed, 23 Oct 2024 07:50:29 +0000 (10:50 +0300)] 
gh-58032: Deprecate the argparse.FileType type converter (GH-124664)

12 months agogh-80958: unittest: discovery support for namespace packages as start directory ...
Jacob Walls [Wed, 23 Oct 2024 04:41:33 +0000 (00:41 -0400)] 
gh-80958: unittest: discovery support for namespace packages as start directory (#123820)

12 months agogh-125259: Fix error notes removal in enum initialization (GH-125647)
Mario Šaško [Tue, 22 Oct 2024 20:42:22 +0000 (22:42 +0200)] 
gh-125259: Fix error notes removal in enum initialization (GH-125647)

12 months agogh-125710: [Enum] fix hashable<->nonhashable comparisons for member values (GH-125735)
Ethan Furman [Tue, 22 Oct 2024 18:04:00 +0000 (11:04 -0700)] 
gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values (GH-125735)

12 months agogh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (#125178)
Mikhail Efimov [Tue, 22 Oct 2024 16:00:25 +0000 (19:00 +0300)] 
gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (#125178)

12 months agoDoc: Show object descriptions in the table of contents (#125757)
Adam Turner [Tue, 22 Oct 2024 13:07:09 +0000 (14:07 +0100)] 
Doc: Show object descriptions in the table of contents (#125757)

12 months agogh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356)
Serhiy Storchaka [Tue, 22 Oct 2024 10:57:25 +0000 (13:57 +0300)] 
gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356)

* The parser no longer changes temporarily during parsing.
* Default values are not processed twice.
* Required mutually exclusive groups containing positional arguments are
  now supported.
* The missing arguments report now includes the names of all required
  optional and positional arguments.
* Unknown options can be intermixed with positional arguments in
  parse_known_intermixed_args().

12 months agoGH-125521: Remove `if (true)` from generated output to reduce C compiler warnings...
Mark Shannon [Tue, 22 Oct 2024 09:11:29 +0000 (10:11 +0100)] 
GH-125521: Remove `if (true)` from generated output to reduce C compiler warnings (GH-125700)

12 months agogh-124889: Rework Python generator cache (#125816)
Mikhail Efimov [Tue, 22 Oct 2024 08:42:56 +0000 (11:42 +0300)] 
gh-124889: Rework Python generator cache (#125816)

12 months agogh-125811: Remove DeprecationWarnings in test_peg_generator (#125812)
Mikhail Efimov [Tue, 22 Oct 2024 08:41:30 +0000 (11:41 +0300)] 
gh-125811: Remove DeprecationWarnings in test_peg_generator (#125812)

12 months agofix grammar in comment in dictobject.c (#125822)
Arjun Singh [Tue, 22 Oct 2024 02:48:16 +0000 (08:18 +0530)] 
fix grammar in comment in dictobject.c (#125822)

12 months agogh-119786: [doc] more consistent syntax in InternalDocs (#125815)
Irit Katriel [Mon, 21 Oct 2024 22:37:31 +0000 (23:37 +0100)] 
gh-119786: [doc] more consistent syntax in InternalDocs (#125815)

12 months agogh-125716: Use A Global Mutex When Initializing Global State For The _interpqueues...
Eric Snow [Mon, 21 Oct 2024 21:49:58 +0000 (15:49 -0600)] 
gh-125716: Use A Global Mutex When Initializing Global State For The _interpqueues Module (gh-125803)

This includes a drive-by cleanup in _queues_init() and _queues_fini().

This change also applies to the _interpchannels module.

12 months agogh-124651: Quote template strings in `venv` activation scripts (GH-124712)
Y5 [Mon, 21 Oct 2024 20:48:04 +0000 (04:48 +0800)] 
gh-124651: Quote template strings in `venv` activation scripts (GH-124712)

This patch properly quotes template strings in `venv` activation
scripts. This mitigates potential command injection.

12 months agogh-125716: Raise an Exception If _globals_init() Fails In the _interpqueues Module...
Eric Snow [Mon, 21 Oct 2024 19:39:07 +0000 (13:39 -0600)] 
gh-125716: Raise an Exception If _globals_init() Fails In the _interpqueues Module (gh-125802)

The fix applies to the _interpchannels module as well.

I've also included a drive-by typo fix for _interpqueues.

12 months agogh-53203: Fix test_strptime on Solaris (GH-125785)
Serhiy Storchaka [Mon, 21 Oct 2024 19:17:39 +0000 (22:17 +0300)] 
gh-53203: Fix test_strptime on Solaris (GH-125785)

Use fixed timezone.
Skip roundtrip tests on locales with 2-digit year.

12 months agogh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning a string again (GH...
Serhiy Storchaka [Mon, 21 Oct 2024 18:54:12 +0000 (21:54 +0300)] 
gh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning a string again (GH-125774)

This is a follow up of GH-124974. Only Glibc needed a fix.
Now the returned value is a string consisting of semicolon-separated
symbols on all Posix platforms.

12 months agogh-125767: Fix pickling and copying of super objects (GH-125781)
Serhiy Storchaka [Mon, 21 Oct 2024 18:30:45 +0000 (21:30 +0300)] 
gh-125767: Fix pickling and copying of super objects (GH-125781)

Previously, copying a super object returned a copy of the instance
invoking super(). Pickling a super object could pickle the instance
invoking super() or fail, depending on its type and protocol.

Now deep copying returns a new super object and pickling pickles the super
object. Shallow copying returns the same super object.

12 months agogh-121459: Fix a couple of uses of `PyStackRef_FromPyObjectSteal` (#125711)
mpage [Mon, 21 Oct 2024 18:08:13 +0000 (11:08 -0700)] 
gh-121459: Fix a couple of uses of `PyStackRef_FromPyObjectSteal` (#125711)

* Fix usage of PyStackRef_FromPyObjectSteal in CALL_TUPLE_1

This was missed in gh-124894

* Fix usage of PyStackRef_FromPyObjectSteal in _CALL_STR_1

This was missed in gh-124894

* Regenerate code

12 months agogh-119786: move interpreter doc from devguide to InternalDocs (#125715)
Irit Katriel [Mon, 21 Oct 2024 17:54:24 +0000 (18:54 +0100)] 
gh-119786: move interpreter doc from devguide to InternalDocs (#125715)

12 months agogh-124218: Use per-thread reference counting for globals and builtins (#125713)
Sam Gross [Mon, 21 Oct 2024 16:51:29 +0000 (12:51 -0400)] 
gh-124218: Use per-thread reference counting for globals and builtins (#125713)

Use per-thread refcounting for the reference from function objects to
the globals and builtins dictionaries.

12 months agoDoc: C API: Move `tp_dealloc` paragraph to `tp_dealloc` section (#125737)
Richard Hansen [Mon, 21 Oct 2024 16:46:37 +0000 (12:46 -0400)] 
Doc: C API: Move `tp_dealloc` paragraph to `tp_dealloc` section (#125737)

It looks like commit 43cf44ddcce6b225f959ea2a53e4817244ca6054
(gh-31501) accidentally moved the paragraph to the `tp_finalize`
section when the intent was to move it to the `tp_dealloc` section
(according to the commit message).

Also:
  * Convert the paragraph to a warning.
  * Apply the appropriate font style to `tp_dealloc`.
  * Unlinkify the first mention of `tp_dealloc` since the paragraph is
    already in the `tp_dealloc` section.

12 months agogh-125766: Docs: minor rewording of installation on Linux section (GH-125743)
partev [Mon, 21 Oct 2024 16:18:10 +0000 (12:18 -0400)] 
gh-125766: Docs: minor rewording of installation on Linux section (GH-125743)

12 months agogh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals (#125616)
Tian Gao [Mon, 21 Oct 2024 15:43:08 +0000 (08:43 -0700)] 
gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals (#125616)

12 months agogh-125703: Correctly honour tracemalloc hooks on more PyDECREF specialized paths...
Pablo Galindo Salgado [Mon, 21 Oct 2024 14:39:05 +0000 (15:39 +0100)] 
gh-125703: Correctly honour tracemalloc hooks on more PyDECREF specialized paths (#125712)

12 months agogh-125608: Trigger dictionary watchers when inline values change (#125611)
Sam Gross [Mon, 21 Oct 2024 12:23:38 +0000 (08:23 -0400)] 
gh-125608: Trigger dictionary watchers when inline values change (#125611)

Dictionary watchers on an object's attributes dictionary
(`object.__dict__`) were not triggered when the managed dictionary used
the object's inline values.

12 months agogh-119311: Add missing magic number (3571) for 3.13.0b1 (#125771)
Lumír 'Frenzy' Balhar [Mon, 21 Oct 2024 11:14:02 +0000 (13:14 +0200)] 
gh-119311: Add missing magic number (3571) for 3.13.0b1 (#125771)

Add missing magic number 3571 for 3.13b1

It was added after branching in https://github.com/python/cpython/commit/6394a72e99b342d980297ec437ecafea92a044c4#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4R475

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)