Commit Graph

122993 Commits

Author SHA1 Message Date
Miss Islington (bot) 112b1704fa
[3.13] gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 (GH-124028) (#124029)
gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 (GH-124028)

pyrepl: Support Del, PgUp, and PgDn on TERM=vt100

From Fedora's /etc/inputrc:

    "\e[5~": history-search-backward
    "\e[6~": history-search-forward
    "\e[3~": delete-char

Fixes https://github.com/python/cpython/issues/124027
(cherry picked from commit f4e5643df6)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2024-09-13 01:36:34 +00:00
Thomas Wouters 660baa14d6 Post 3.13.0rc2 2024-09-07 02:21:10 +02:00
Thomas Wouters ec61006963 Python 3.13.0rc2 2024-09-06 23:15:21 +02:00
Miss Islington (bot) 72cdd2ade6
[3.13] gh-123780: Make test_pkgutil clean up `spam` module (GH-123036) (#123781)
gh-123780: Make test_pkgutil clean up `spam` module (GH-123036)
(cherry picked from commit eca3fe40c2)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2024-09-06 22:57:46 +02:00
Miss Islington (bot) e62cb77c25
[3.13] gh-123523: Rework typing documentation for generators and coroutines, and link to it from `collections.abc` docs (GH-123544) (#123790)
gh-123523: Rework typing documentation for generators and coroutines, and link to it from `collections.abc` docs (GH-123544)
(cherry picked from commit 56e4a417ce)

Co-authored-by: Stanislav Terliakov <50529348+sterliakov@users.noreply.github.com>
2024-09-06 22:56:37 +02:00
Miss Islington (bot) 905288824d
[3.13] gh-123321: Make Parser/myreadline.c locking safe in free-threaded build (GH-123690) (#123798)
gh-123321: Make Parser/myreadline.c locking safe in free-threaded build (GH-123690)

Use a `PyMutex` to avoid the race in mutex initialization. Use relaxed
atomics to avoid the data race on reading `_PyOS_ReadlineTState` when
checking for re-entrant calls.
(cherry picked from commit 0c080d7c77)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2024-09-06 22:55:42 +02:00
Miss Islington (bot) e68f30ecd2
[3.13] gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD compatibility (GH-123717) (#123752)
gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD compatibility (GH-123717)
(cherry picked from commit 42f52431e9)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
2024-09-06 22:55:29 +02:00
Miss Islington (bot) 5c3078d6e5
[3.13] gh-120221: Support KeyboardInterrupt in asyncio REPL (GH-123795) (#123799)
This switches the main pyrepl event loop to always be non-blocking so that it
can listen to incoming interruptions from other threads.

This also resolves invalid display of exceptions from other threads
(gh-123178).

This also fixes freezes with pasting and an active input hook.
(cherry picked from commit 033510e11d)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-09-06 22:25:19 +02:00
Miss Islington (bot) 66b15381f1
[3.13] gh-109975: Add links to py-free-threading.github.io (GH-123776) (#123794)
Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2024-09-06 20:46:40 +03:00
Savannah Ostrowski eac2fdacfb
[3.13] GH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors (GH-123759)
(cherry picked from commit 1fbc118c5d)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
2024-09-06 09:02:32 -07:00
Victor Stinner d053204b73
[3.13] gh-123747: Avoid static_assert() in internal header files (#123779) (#123785)
gh-123747: Avoid static_assert() in internal header files (#123779)

(cherry picked from commit ef4b69d2be)
2024-09-06 14:41:09 +00:00
Miss Islington (bot) 2cc1899b93
[3.13] gh-119310: Fix encoding when reading old history file (GH-121779) (#123784)
(cherry picked from commit e95984826e)

Co-authored-by: aorcajo <589252+aorcajo@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-09-06 16:23:47 +02:00
Miss Islington (bot) c46ad20d41
[3.13] gh-123207: Clarify the documentation for the mro lookup for super() (GH-123417) (#123732)
(cherry picked from commit 327463aef1)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2024-09-06 15:45:22 +02:00
Miss Islington (bot) 402b5f204a
[3.13] gh-123463: Include logging_flow diagram in non-HTML docs (GH-123464) (#123666)
(cherry picked from commit 7d2c2f24da)

Co-authored-by: Alexander Bessman <bessman@users.noreply.github.com>
2024-09-06 15:44:07 +02:00
Miss Islington (bot) e443187fce
[3.13] gh-123657: Fix crash and refleak in `decimal.getcontext()` (GH-123703) (GH-123774)
(cherry picked from commit 853588e24c)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
2024-09-06 15:18:01 +02:00
Miss Islington (bot) c787a5161c
[3.13] gh-119034, REPL: Change page up/down keys to search in history (GH-123607) (GH-123773)
Change <page up> and <page down> keys of the Python REPL to history
search forward/backward.

(cherry picked from commit 8311b11800)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-09-06 14:04:11 +02:00
Miss Islington (bot) b221c5bba1
[3.13] gh-111201: fix auto-indent in pyrepl for muliple pound comments (GH-123196) (GH-123764)
(cherry picked from commit d683f49a7b)

Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
2024-09-06 13:09:22 +02:00
Miss Islington (bot) 37e1f8d2a0
[3.13] gh-103066: Add links and `help` in site.py constants (GH-103777) (#123762)
Co-authored-by: David Caron <dcaron05@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-09-06 11:08:29 +03:00
Miss Islington (bot) 8ed77c1afc
[3.13] Ensure clang++ is autodetected on iOS. (gh-123749) (#123758)
Ensure clang++ is autodetected on iOS. (gh-123749)
(cherry picked from commit d359c7c47b)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2024-09-06 10:13:27 +08:00
Miss Islington (bot) fb50266c4b
[3.13] gh-123275: Add tests for `PYTHON_GIL=1` and `-Xgil=1` (gh-123754) (gh-123755)
gh-123275: Add tests for `PYTHON_GIL=1` and `-Xgil=1` (gh-123754)
(cherry picked from commit fe24b718d2)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2024-09-06 11:02:05 +09:00
Miss Islington (bot) 92b9c4482f
[3.13] gh-123275: Support `-Xgil=1` and `PYTHON_GIL=1` on non-free-threaded builds (gh-123276) (gh-123753)
gh-123275: Support `-Xgil=1` and `PYTHON_GIL=1` on non-free-threaded builds (gh-123276)
(cherry picked from commit 84ad264ce6)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2024-09-06 10:09:35 +09:00
Miss Islington (bot) e5568e5e9d
[3.13] Swap the and from in sentence in init_config.rst (GH-120086) (#123744)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2024-09-05 20:26:23 +00:00
Miss Islington (bot) ff9ece98e2
[3.13] gh-85453: Improve instance attributes mark up on datetime.rst (GH-123655) (#123740)
Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-05 18:16:48 +00:00
Miss Islington (bot) 5e03734c94
[3.13] gh-123240: Raise input audit events in the new REPL (GH-123274) (#123737)
(cherry picked from commit aa1339aaaa)

Co-authored-by: sobolevn <mail@sobolevn.me>
2024-09-05 17:45:20 +02:00
Miss Islington (bot) f48746b204
[3.13] gh-123418: Update macOS installer to use OpenSSL 3.0.15 (GH-123684) (#123729)
(cherry picked from commit 092abc4060)

Co-authored-by: Zachary Ware <zach@python.org>
2024-09-05 15:17:35 +02:00
Miss Islington (bot) 9810dfa352
[3.13] gh-123678: Upgrade libexpat 2.6.3 (GH-123689) (GH-123707)
gh-123678: Upgrade libexpat 2.6.3 (GH-123689)

(cherry picked from commit 40bdb0deee)

Co-authored-by: Seth Michael Larson <seth@python.org>
2024-09-05 13:37:40 +02:00
Miss Islington (bot) 3765181359
[3.13] gh-123392: Clarify wording regarding parameters that are functions to be called (GH-123394) (GH-123664)
(cherry picked from commit c08ede2714)

Co-authored-by: ryan-duve <ryan-duve@users.noreply.github.com>
2024-09-05 12:49:51 +02:00
Miss Islington (bot) d8324335b5
[3.13] gh-123418: Update Android build to use OpenSSL 3.0.15 (GH-123685) (#123715)
gh-123418: Update Android build to use OpenSSL 3.0.15 (GH-123685)
(cherry picked from commit 1fdfce9452)

Co-authored-by: Zachary Ware <zach@python.org>
2024-09-04 23:08:38 +00:00
Miss Islington (bot) 3b37658646
[3.13] gh-118508: Clarify which characters are matched by `\s` (GH-119155) (#123670)
gh-118508: Clarify which characters are matched by `\s` (GH-119155)

Clarify re syntax
(cherry picked from commit 22fdb8cf89)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
2024-09-04 15:36:14 -07:00
Miss Islington (bot) ad944b5e1f
[3.13] gh-123700: Update OpenSSL versions in multissltests and CI (GH-123702)
Remove EOL 1.1.1w from CI and move it to the 'old' set in multissltests,
add latest 3.3.2 to both CI and multissltests.

(cherry picked from commit d83e30cadd)

Co-authored-by: Zachary Ware <zach@python.org>
2024-09-04 16:31:01 -05:00
Miss Islington (bot) 9b541ac9ac
[3.13] gh-123418: Update OpenSSL to 3.0.15 on Windows (GH-123686)
(cherry picked from commit d2eafe2f48)

Co-authored-by: Zachary Ware <zach@python.org>
2024-09-04 16:21:12 -05:00
Miss Islington (bot) e3b4564f6c
[3.13] gh-123418: Update CI to use fresh OpenSSL releases (GH-123696)
Also adds openssl/openssl GitHub URL template for newer OpenSSL downloads
(cherry picked from commit 56b00f4705)

Co-authored-by: Zachary Ware <zach@python.org>
2024-09-04 14:33:56 -05:00
Miss Islington (bot) 9193d2957f
[3.13] gh-123321: Fix Parser/myreadline.c to prevent a segfault during a multi-threaded race (GH-123323) (#123676)
gh-123321: Fix Parser/myreadline.c to prevent a segfault during a multi-threaded race (GH-123323)
(cherry picked from commit a4562fedad)

Co-authored-by: Bar Harel <bharel@barharel.com>
2024-09-04 15:49:27 +00:00
Miss Islington (bot) e4516911fe
[3.13] gh-123580: Fix `signed_number` token in documentation (GH-123582) (GH-123623)
gh-123580: Fix `signed_number` token in documentation (GH-123582)

(cherry picked from commit 9e079c220b)

Co-authored-by: CBerJun <121291537+CBerJun@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2024-09-04 11:18:42 +02:00
Miss Islington (bot) 3dd5ce3768
[3.13] Add shims for iOS C++ compilation (GH-123620) (#123656)
Add shims for iOS C++ compilation (GH-123620)

Add shims for iOS C++ compilation.
(cherry picked from commit 135dad9bd7)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2024-09-04 00:52:13 +00:00
Miss Islington (bot) aeb39b72b2
[3.13] gh-123621: Fix `datamodel.rst` with proper `dict` notation (GH-123648) (#123653)
gh-123621: Fix `datamodel.rst` with proper `dict` notation (GH-123648)
(cherry picked from commit cfbc841ef3)

Co-authored-by: Lipták Attila (Flash) <113017309+AttilaLiptak@users.noreply.github.com>
2024-09-03 20:12:17 +00:00
Miss Islington (bot) 95ebca1e99
[3.13] gh-123579: Document exclamation token (GH-123612) (#123637)
(cherry picked from commit 68fe5758bf)

Co-authored-by: Shaygan Hooshyari <sh.hooshyari@gmail.com>
2024-09-03 15:07:13 +00:00
Miss Islington (bot) 67851201d8
[3.13] gh-123572: Fix key codes in VK_MAP in windows_console.py (GH-122692) (#123632)
gh-123572: Fix key codes in VK_MAP in windows_console.py (GH-122692)
(cherry picked from commit 782217f28f)

Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
2024-09-03 15:01:14 +01:00
Miss Islington (bot) 48941399e3
[3.13] gh-121804: always show error location for SyntaxError's in basic repl (GH-123202) (#123631)
gh-121804: always show error location for SyntaxError's in basic repl (GH-123202)
(cherry picked from commit 6822cb23c6)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2024-09-03 13:06:31 +00:00
Petr Viktorin d655c65561
[3.13] gh-123091: Use more _Py_IsImmortalLoose() (GH-123602) (GH-123622)
Switch more _Py_IsImmortal(...) assertions to _Py_IsImmortalLoose(...)

The remaining calls to _Py_IsImmortal are in free-threaded-only code,
initialization of core objects, tests, and guards that fall back to
code that works with mortal objects.

(cherry picked from commit 57c471a688)
2024-09-03 12:36:42 +02:00
Miss Islington (bot) 7761ddcfed
[3.13] gh-123409: fix `IPv6Address.reverse_pointer` for IPv4-mapped addresses (GH-123419) (#123606)
gh-123409: fix `IPv6Address.reverse_pointer` for IPv4-mapped addresses (GH-123419)

Fix functionality that was broken with better textual representation for IPv4-mapped addresses (gh-87799)
(cherry picked from commit 77a2fb4bf1)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-03 01:19:46 +02:00
Miss Islington (bot) f8124237e7
[3.13] gh-123458: Skip SBOM generation if no git repository is detected (GH-123507) (#123616)
gh-123458: Skip SBOM generation if no git repository is detected (GH-123507)
(cherry picked from commit db42934270)

Co-authored-by: Seth Michael Larson <seth@python.org>
2024-09-03 01:15:48 +02:00
Miss Islington (bot) 59e2a0922b
[3.13] Rewrite idlelib/Icons/README.txt (GH-123329) (#123330)
(cherry picked from commit 6401cdf908)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-09-02 17:56:16 +02:00
Miss Islington (bot) 80e0326b53
[3.13] gh-98442: fix locations of with statement's cleanup instructions (GH-120763) (#120786)
gh-98442: fix locations of with statement's cleanup instructions (GH-120763)
(cherry picked from commit 55596ae044)


gh-98442: fix location of with statement's cleanup instructions

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2024-09-02 15:46:41 +00:00
Miss Islington (bot) 494181e44d
[3.13] gh-93691: fix too broad source locations of with-statement instructions (GH-120125) (#123604)
gh-93691: fix too broad source locations of with-statement instructions (GH-120125)
(cherry picked from commit eca3f7762c)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2024-09-02 14:53:39 +00:00
Miss Islington (bot) 3b3a1a8e7e
[3.13] gh-101525: Skip test_gdb if the binary is relocated by BOLT. (gh-118572) (#123601)
gh-101525: Skip test_gdb if the binary is relocated by BOLT. (gh-118572)
(cherry picked from commit f95fc4de11)

Co-authored-by: Donghee Na <donghee.na@python.org>
2024-09-02 23:10:52 +09:00
Wei-Hsiang (Matt) Wang 05dcc81601
[3.13] gh-123517: Remove unnecessary `:meth:` parentheses (gh-123518) (GH-123577) 2024-09-02 16:00:04 +02:00
Victor Stinner 10735bff9e
[3.13] gh-123091: Use _Py_IsImmortalLoose() (#123511) (#123600)
gh-123091: Use _Py_IsImmortalLoose() (#123511)

Use _Py_IsImmortalLoose() in bytesobject.c, typeobject.c
and ceval.c.

(cherry picked from commit f1a0d96f41)
2024-09-02 15:23:29 +02:00
Miss Islington (bot) b76a4a5db7
[3.13] gh-116263: Do not rollover empty files in RotatingFileHandler (GH-122788) (#122814)
gh-116263: Do not rollover empty files in RotatingFileHandler (GH-122788)
(cherry picked from commit 6094c6fc2f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-09-02 12:07:27 +00:00
Miss Islington (bot) 39061814f2
[3.13] Fixes typo in idlelib/idle_test/example_stub.pyi (GH-122520) (#122738)
Fixes typo in idlelib/idle_test/example_stub.pyi (GH-122520)

(cherry picked from commit dbdbef3668)

Co-authored-by: Jonathon Vandezande <jevandezande@gmail.com>
2024-09-02 11:26:55 +00:00