]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Adam Turner [Tue, 23 Jul 2024 12:30:06 +0000 (13:30 +0100)]
GH-121970: Remove ``escape4chm`` (#122065)
Russell Keith-Magee [Tue, 23 Jul 2024 10:17:50 +0000 (20:17 +1000)]
gh-121832: Skip subinterpreter static type check on iOS to restore test suite. (GH-122150)
Sebastian Rittau [Tue, 23 Jul 2024 09:59:28 +0000 (11:59 +0200)]
gh-122088: Copy the coroutine status of the underlying callable in `@warnings.deprecated` (#122086)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Xie Yanbo [Tue, 23 Jul 2024 09:04:14 +0000 (17:04 +0800)]
Fix typos in comments and exception message (#122147)
Sam Gross [Tue, 23 Jul 2024 08:47:14 +0000 (04:47 -0400)]
gh-120974: Make _asyncio._enter_task atomic in the free-threaded build (#122138)
Use `PyDict_SetDefaultRef` to set the current task in a single operation
under the dictionary's lock.
Donghee Na [Tue, 23 Jul 2024 00:22:04 +0000 (09:22 +0900)]
gh-121996: Introduce --disable-safety and --enable-slower-safety options (#122054)
* gh-121996: Introduce --disable-safty and --enable-slower-safty
* Update GA
* fix
* Address code review
* Update CI
Jelle Zijlstra [Mon, 22 Jul 2024 21:12:43 +0000 (14:12 -0700)]
gh-121637: Syntax error for optimized-away incorrect await (#121656)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Serhiy Storchaka [Mon, 22 Jul 2024 18:43:00 +0000 (21:43 +0300)]
Refactor test_capi.test_long (GH-122113)
Share common code for tests for PyLong_As*() functions.
Co-authored-by: Victor Stinner <vstinner@python.org>
Sam Gross [Mon, 22 Jul 2024 17:33:40 +0000 (13:33 -0400)]
Revert "gh-121946: Temporarily switch to llvm-17 in TSan CI (#121975)" (#122032)
This reverts commit
12c1afa9d153fbdf78c970054c08c755f504c5e9 .
The LLVM 18 Ubuntu package is working now.
Irit Katriel [Mon, 22 Jul 2024 16:48:30 +0000 (17:48 +0100)]
gh-121404: move calculation of module start location from compiler_body up to compiler_codegen (#122127)
Sam Gross [Mon, 22 Jul 2024 16:08:27 +0000 (12:08 -0400)]
gh-100240: Use a consistent implementation for freelists (#121934)
This combines and updates our freelist handling to use a consistent
implementation. Objects in the freelist are linked together using the
first word of memory block.
If configured with freelists disabled, these operations are essentially
no-ops.
HarryLHW [Mon, 22 Jul 2024 15:05:23 +0000 (23:05 +0800)]
gh-121795: Improve performance of set membership testing from set arguments (#121796)
Bradley Reynolds [Mon, 22 Jul 2024 15:03:20 +0000 (10:03 -0500)]
Remove now unused function from itertools tests (#122100)
Bénédikt Tran [Mon, 22 Jul 2024 14:04:17 +0000 (16:04 +0200)]
gh-119698: deprecate ``symtable.Class.get_methods`` (#121902)
Łukasz Langa [Mon, 22 Jul 2024 11:04:08 +0000 (13:04 +0200)]
gh-121957: Emit audit events for `python -i` and `python -m asyncio` (GH-121958)
Relatedly, emit the `cpython.run_startup` event from the Python version of
`PYTHONSTARTUP` handling.
Łukasz Langa [Mon, 22 Jul 2024 11:03:07 +0000 (13:03 +0200)]
gh-111051: [tests] Wait a second to support filesystems with low-resolution mtime (GH-121959)
Ville Skyttä [Mon, 22 Jul 2024 01:14:25 +0000 (04:14 +0300)]
Docs: spelling and grammar fixes (#122084)
Corrected some grammar and spelling issues in documentation.
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Russell Keith-Magee [Sun, 21 Jul 2024 23:36:08 +0000 (09:36 +1000)]
gh-120522: Apply App Store compliance patch during installation (#121947)
Adds a --with-app-store-compliance configuration option that patches out code known to be an issue with App Store review processes. This option is applied automatically on iOS, and optionally on macOS.
Kirill Podoprigora [Sun, 21 Jul 2024 19:48:39 +0000 (22:48 +0300)]
gh-122096: Remove accidentally left debugging prints (#122097)
Sviatoslav Sydorenko (Святослав Сидоренко) [Sun, 21 Jul 2024 19:09:23 +0000 (21:09 +0200)]
Merge Ubuntu test matrices in CI (#121813)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Jakub Kulík [Sun, 21 Jul 2024 16:50:14 +0000 (18:50 +0200)]
gh-118124: fix assert related C++ checks on Solaris/Illumos (#121974)
Fix check for static_assert() for C++ on some platforms.
Andrey Mishchenko [Sun, 21 Jul 2024 06:17:57 +0000 (23:17 -0700)]
Delete stale note about mp.Lock.acquire/SIGINT (#120929)
Raymond Hettinger [Sun, 21 Jul 2024 05:53:26 +0000 (00:53 -0500)]
gh-121977: Add tips for handling unhashable data (#122075)
Barney Gale [Sat, 20 Jul 2024 22:32:52 +0000 (23:32 +0100)]
GH-73991: Support preserving metadata in `pathlib.Path.copytree()` (#121438)
Add *preserve_metadata* keyword-only argument to `pathlib.Path.copytree()`,
defaulting to false. When set to true, we copy timestamps, permissions,
extended attributes and flags where available, like `shutil.copystat()`.
Barney Gale [Sat, 20 Jul 2024 20:14:13 +0000 (21:14 +0100)]
GH-73991: Add `pathlib.Path.rmtree()` (#119060)
Add a `Path.rmtree()` method that removes an entire directory tree, like
`shutil.rmtree()`. The signature of the optional *on_error* argument
matches the `Path.walk()` argument of the same name, but differs from the
*onexc* and *onerror* arguments to `shutil.rmtree()`. Consistency within
pathlib is probably more important.
In the private pathlib ABCs, we add an implementation based on `walk()`.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Adam Turner [Sat, 20 Jul 2024 19:46:41 +0000 (20:46 +0100)]
Docs: Fix duplicate object description warnings (#122068)
Sam Gross [Sat, 20 Jul 2024 14:04:14 +0000 (10:04 -0400)]
gh-121988: Fix test hang when pyrepl is not available (#121990)
Also explicitly fail the test if we timeout while waiting for output so
that this failure mode is caught earlier.
Adam Turner [Sat, 20 Jul 2024 13:44:43 +0000 (14:44 +0100)]
GH-121970: Modernise the patchlevel extension (#121995)
Rafael Fontenelle [Sat, 20 Jul 2024 03:46:57 +0000 (00:46 -0300)]
Docs: Fix a typo in What's New in Python 3.13 (#122051)
Sam Gross [Fri, 19 Jul 2024 19:26:29 +0000 (15:26 -0400)]
gh-121621: Disable asyncio freelist in free-threaded build (#122046)
The futureobj freelist isn't thread-safe. We intend to re-enable the
freelist in a thread-safe way for 3.14 (but not 3.13).
mpage [Fri, 19 Jul 2024 17:22:02 +0000 (10:22 -0700)]
gh-120973: Fix thread-safety issues with `threading.local` (#121655)
This is a small refactoring to the current design that allows us to
avoid manually iterating over threads.
This should also fix gh-118490.
Pablo Galindo Salgado [Fri, 19 Jul 2024 17:08:08 +0000 (19:08 +0200)]
gh-122026: Fix identification of mismatched parentheses inside f-strings (#122028)
Karolina Surma [Fri, 19 Jul 2024 16:48:20 +0000 (18:48 +0200)]
gh-122014: Account for abi_thread in test_sysconfig.test_user_similar (gh-122017)
Rodrigo Oliveira [Fri, 19 Jul 2024 14:47:10 +0000 (14:47 +0000)]
gh-118830: Bump pickle.DEFAULT_PROTOCOL to 5 (GH-119340)
Hugo van Kemenade [Fri, 19 Jul 2024 13:57:14 +0000 (16:57 +0300)]
Docs: move deprecations into include files (#121241)
Petr Viktorin [Fri, 19 Jul 2024 13:52:00 +0000 (15:52 +0200)]
gh-121160: Note that readline libraries using different history formats. (GH-121327)
This is not something we can do too much about, without help from the
underlying libraries.
Adam Turner [Fri, 19 Jul 2024 12:21:56 +0000 (13:21 +0100)]
GH-121970: Rewrite the C-API annotations extension (#121985)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Adam Turner [Fri, 19 Jul 2024 11:48:53 +0000 (12:48 +0100)]
GH-121970: Use Ruff to check and format the docs tools (#122018)
Co-authored-by: Alex Waygood <Alex.Waygood@gmail.com>
Adam Turner [Fri, 19 Jul 2024 10:39:51 +0000 (11:39 +0100)]
GH-121970: Make ``DeprecatedRemoved`` a subclass of ``VersionChange`` (#121971)
Adam Turner [Fri, 19 Jul 2024 09:16:59 +0000 (10:16 +0100)]
GH-121970: Improve the glossary preview in HTML search (#121991)
Serhiy Storchaka [Fri, 19 Jul 2024 08:06:02 +0000 (11:06 +0300)]
gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907)
Adam Turner [Fri, 19 Jul 2024 07:58:19 +0000 (08:58 +0100)]
Docs: Upgrade Sphinx to 7.4 (#121987)
Adam Turner [Fri, 19 Jul 2024 07:33:51 +0000 (08:33 +0100)]
GH-121970: Use ``SphinxDirective`` instead of ``Directive`` (#121972)
Kirill Podoprigora [Fri, 19 Jul 2024 07:30:01 +0000 (10:30 +0300)]
Docs: Fix typo in description of ``INTRINSIC_ASYNC_GEN_WRAP`` (#122004)
Serhiy Storchaka [Fri, 19 Jul 2024 05:06:53 +0000 (08:06 +0300)]
gh-82017: Support as_integer_ratio() in the Fraction constructor (GH-120271)
Any objects that have the as_integer_ratio() method (e.g. numpy.float128)
can now be converted to a fraction.
Tian Gao [Fri, 19 Jul 2024 03:46:24 +0000 (20:46 -0700)]
gh-120289: Add external timer in traverse of _lsprof.Profiler (#121998)
Brandt Bucher [Thu, 18 Jul 2024 21:24:58 +0000 (14:24 -0700)]
GH-118093: Add tier two support to several instructions (GH-121884)
Adam Turner [Thu, 18 Jul 2024 21:05:38 +0000 (22:05 +0100)]
GH-117928: Bump the minimum Sphinx version to 6.2.1 (#121986)
Tian Gao [Thu, 18 Jul 2024 19:47:22 +0000 (12:47 -0700)]
gh-120289: Disallow disable() and clear() in external timer to prevent use-after-free (#120297)
Adam Turner [Thu, 18 Jul 2024 18:38:29 +0000 (19:38 +0100)]
GH-121970: Combine custom Pygments lexers into a package (#121976)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sam Gross [Thu, 18 Jul 2024 17:30:52 +0000 (13:30 -0400)]
gh-121946: Temporarily switch to llvm-17 in TSan CI (#121975)
The Ubuntu package for llvm-18 is broken
Nate Ohlson [Thu, 18 Jul 2024 16:06:51 +0000 (13:06 -0300)]
gh-112301: Add fortify source level 3 to default compiler options (gh-121520)
Vlastimil Zíma [Thu, 18 Jul 2024 13:57:21 +0000 (15:57 +0200)]
gh-65453: Docs - clarify AttributeError behaviour on PropertyMock (GH-121666)
Fixed at EuroPython 24 sprints.
Matthieu Caneill [Thu, 18 Jul 2024 12:48:05 +0000 (14:48 +0200)]
gh-120930: Remove extra blank occuring in wrapped encoded words in email headers (GH-121747)
Gregor [Thu, 18 Jul 2024 12:29:03 +0000 (14:29 +0200)]
gh-121657: Additional `yield from` error test using lambda (GH-121722)
Mark Shannon [Thu, 18 Jul 2024 11:49:24 +0000 (12:49 +0100)]
GH-121784: Generate an error during code gen if a variable is marked `unused`, but is used and thus cached in a prior uop. (#121788)
* Reject uop definitions that declare values as 'unused' that are already cached by prior uops
* Track which variables are defined and only load from memory when needed
* Support explicit `flush` in macro definitions.
* Make sure stack is flushed in where needed.
Mark Shannon [Thu, 18 Jul 2024 11:47:21 +0000 (12:47 +0100)]
GH-120024: Use pointer for stack pointer (GH-121923)
Bernhard M. Wiedemann [Thu, 18 Jul 2024 10:05:39 +0000 (12:05 +0200)]
gh-121874: Define audit-event open parameters consistently (GH-121883)
Use same names for parameters to avoid triggering a race-condition in Sphinx
that causes non-deterministic output.
Jelle Zijlstra [Thu, 18 Jul 2024 08:02:08 +0000 (01:02 -0700)]
gh-121921: Make bogus_code_obj.py crash the interpreter (#121922)
Victor Stinner [Thu, 18 Jul 2024 06:19:32 +0000 (08:19 +0200)]
gh-121266: Remove Py_ALWAYS_INLINE in dictobject.c (#121493)
compare_unicode_generic(), compare_unicode_unicode() and
compare_generic() are callbacks used by do_lookup(). When enabling
assertions, it's not possible to inline these functions.
Sam Gross [Wed, 17 Jul 2024 22:21:24 +0000 (18:21 -0400)]
gh-121621: Move asyncio_running_loop to private struct (#121939)
This avoids changing the ABI and keeps the field in the private struct.
Savannah Ostrowski [Wed, 17 Jul 2024 22:17:47 +0000 (15:17 -0700)]
Add note about PYTHON_JIT environment variable to JIT README (GH-121635)
Victor Stinner [Wed, 17 Jul 2024 19:52:19 +0000 (21:52 +0200)]
gh-121266: Change dict check_lookup() return type to int (#121581)
Victor Stinner [Wed, 17 Jul 2024 19:49:37 +0000 (21:49 +0200)]
gh-121528: Fix _PyObject_Init() assertion for stable ABI (#121725)
Add _Py_IsImmortalLoose() function for assertions.
sobolevn [Wed, 17 Jul 2024 16:13:37 +0000 (19:13 +0300)]
gh-121925: Fix uninitialized variables in `main.c` (#121926)
Łukasz Langa [Wed, 17 Jul 2024 16:05:34 +0000 (18:05 +0200)]
gh-120678: Guard against stdin.fileno() being unavailable (#121924)
Alex Waygood [Wed, 17 Jul 2024 14:18:42 +0000 (15:18 +0100)]
gh-120678: pyrepl: Include globals from modules passed with `-i` (GH-120904)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Terry Jan Reedy [Wed, 17 Jul 2024 13:33:33 +0000 (09:33 -0400)]
gh-78889: Stop IDLE Shell freezes from sys.stdout.shell.xyz (#121876)
Problem occurred when attribute xyz could not be pickled.
Since this is not trivial to selectively fix, block all
attributes (other than 'width'). IDLE does not access them
and they are private implementation details.
Bénédikt Tran [Wed, 17 Jul 2024 13:27:35 +0000 (15:27 +0200)]
gh-119698: fix a special case in `symtable.Class.get_methods` (#121802)
Petr Viktorin [Wed, 17 Jul 2024 09:31:28 +0000 (11:31 +0200)]
gh-121863: Immortalize names in code objects to avoid crash (GH-121903)
Victor Stinner [Wed, 17 Jul 2024 08:26:05 +0000 (10:26 +0200)]
gh-121849: Fix PyUnicodeWriter_WriteSubstring() crash if len=0 (#121896)
Do nothing if start=end.
Rafael Fontenelle [Wed, 17 Jul 2024 07:31:21 +0000 (04:31 -0300)]
Remove duplicate "it" in whatsnew 3.13 (#121580)
Michael [Wed, 17 Jul 2024 07:24:35 +0000 (03:24 -0400)]
Fix Several Typos in Readme & Tests (#121559)
sobolevn [Wed, 17 Jul 2024 07:01:28 +0000 (10:01 +0300)]
gh-121834: Improve `complex` C-API docs (#121835)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
sobolevn [Wed, 17 Jul 2024 07:00:07 +0000 (10:00 +0300)]
gh-121842: Improve coverage of `PyBytes_FromStringAndSize` (#121843)
Wulian233 [Wed, 17 Jul 2024 06:20:55 +0000 (14:20 +0800)]
gh-121453: Update the `Doc/templates/download.html` download files size estimates and support download `.texi` format. (#121454)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Bernhard M. Wiedemann [Wed, 17 Jul 2024 05:34:00 +0000 (07:34 +0200)]
gh-121871: Allow overriding docs build date with SOURCE_DATE_EPOCH (#121872)
Michael Droettboom [Tue, 16 Jul 2024 22:38:29 +0000 (18:38 -0400)]
GH-121583: Remove dependency from pystats.h to internal header file (GH-121587)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Zachary Ware [Tue, 16 Jul 2024 21:26:17 +0000 (16:26 -0500)]
gh-83648: Use versionadded in 'deprecated' description (GH-121877)
Brett Cannon [Tue, 16 Jul 2024 20:00:39 +0000 (13:00 -0700)]
GH-120371: Add WASI SDK 22 support (GH-121870)
Required disabling stub functions now provided by wasi-libc.
Tian Gao [Tue, 16 Jul 2024 19:17:47 +0000 (12:17 -0700)]
gh-118934: Make PyEval_GetLocals return borrowed reference (#119769)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Sam Gross [Tue, 16 Jul 2024 18:58:36 +0000 (14:58 -0400)]
gh-121860: Fix crash when materializing managed dict (#121866)
The object's inline values may be marked invalid if the materialized
dict was already initialized and then deleted.
Pablo Galindo Salgado [Tue, 16 Jul 2024 18:57:22 +0000 (19:57 +0100)]
gh-121130: Fix f-string format specifiers with debug expressions (#121150)
Ken Jin [Tue, 16 Jul 2024 17:09:58 +0000 (01:09 +0800)]
gh-121621: Move asyncio running loop to thread state (GH-121695)
Andreas Stocker [Tue, 16 Jul 2024 15:14:26 +0000 (17:14 +0200)]
gh-59022: Added tests for `pkgutil.extend_path` (#59022) (GH-121673)
This adds tests for the documented behaviour of `pkgutil.extend_path`
regarding different argument types as well as for `*.pkg` files.
Petr Viktorin [Tue, 16 Jul 2024 14:09:08 +0000 (16:09 +0200)]
gh-121160: Add some tests for readline.set_history_length (GH-121326)
Petr Viktorin [Tue, 16 Jul 2024 13:36:21 +0000 (15:36 +0200)]
gh-113993: Don't immortalize in PyUnicode_InternInPlace; keep immortalizing in other API (#121364)
* Switch PyUnicode_InternInPlace to _PyUnicode_InternMortal, clarify docs
* Document immortality in some functions that take `const char *`
This is PyUnicode_InternFromString;
PyDict_SetItemString, PyObject_SetAttrString;
PyObject_DelAttrString; PyUnicode_InternFromString;
and the PyModule_Add convenience functions.
Always point out a non-immortalizing alternative.
* Don't immortalize user-provided attr names in _ctypes
Alyssa Coghlan [Tue, 16 Jul 2024 13:24:45 +0000 (23:24 +1000)]
GH-105879: Note exec/eval keyword change in What's New (GH-121831)
Petr Viktorin [Tue, 16 Jul 2024 13:17:29 +0000 (15:17 +0200)]
gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358)
Older stable ABI extensions are allowed to make immortal objects mortal.
Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).
Sviatoslav Sydorenko (Святослав Сидоренко) [Tue, 16 Jul 2024 12:50:30 +0000 (14:50 +0200)]
🧪🚑 Fix using `check_source` flags as bool (#121848)
Ned Deily [Tue, 16 Jul 2024 10:49:36 +0000 (06:49 -0400)]
gh-120522: Revert "Add a `--with-app-store-compliance` configure option to patch out problematic code" (gh-120984) (#121844)
This reverts commit
48cd104b0cf05dad8958efa9cb9666c029ef9201 prior
to the release of 3.13.0b4 to allow for additional review time.
Lysandros Nikolaou [Tue, 16 Jul 2024 09:35:57 +0000 (11:35 +0200)]
gh-120317: Lock around global state in the tokenize module (#120318)
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
sobolevn [Tue, 16 Jul 2024 08:29:33 +0000 (11:29 +0300)]
gh-121791: Check for `NULL` in `MethodDescriptor2_new` in `_testcapi` (#121792)
edson duarte [Tue, 16 Jul 2024 08:17:00 +0000 (05:17 -0300)]
gh-85453: Fix 'timezone' vs. 'time zone' spelling issues in datetime.rst (#118449)
Russell Keith-Magee [Tue, 16 Jul 2024 04:23:35 +0000 (14:23 +1000)]
gh-120831: Increase the default minimum supported iOS version to 13.0 (#121250)
Increases the default minimum iOS version to 13.0.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Donghee Na [Tue, 16 Jul 2024 01:16:41 +0000 (10:16 +0900)]
gh-121403: Add notes for PyList_GetXXX APIs about the need for init (gh-121626)
Marta Gómez Macías [Mon, 15 Jul 2024 23:38:54 +0000 (01:38 +0200)]
gh-121295: Fix blocked console after interrupting a long paste (GH-121815)
saucoide [Mon, 15 Jul 2024 23:33:57 +0000 (01:33 +0200)]
gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757)
console.compile with the "single" param throws an exception when
there are multiple statements, never allowing to adding newlines
to a pasted code block (gh-121610)
This add a few extra checks to allow extending when in an indented
block, and tests for a few examples
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Tian Gao [Mon, 15 Jul 2024 23:11:02 +0000 (16:11 -0700)]
gh-121814: Only check f_trace_opcodes if Python frame exists (#121818)
Co-authored-by: Matt Wozniski <godlygeek@gmail.com>
Sam Gross [Mon, 15 Jul 2024 22:50:16 +0000 (18:50 -0400)]
gh-121605: Fix test hang when pyrepl is not available (GH-121820)
The fallback repl does not support "exit" without parentheses, so the
test would hang until the timeout expired.