Commit Graph

123108 Commits

Author SHA1 Message Date
Miss Islington (bot) d4fba9077f
[3.13] GH-109975: Copyedit 3.13 What's New: Copyedit C API deprecations pending removal (GH-124336) (#124362)
GH-109975: Copyedit 3.13 What's New: Copyedit C API deprecations pending removal (GH-124336)
(cherry picked from commit e7d465a607)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-23 13:45:08 -07:00
Miss Islington (bot) 161e155edd
[3.13] GH-109975: Copyedit 3.13 What's New: Trivia (GH-124348) (#124376)
GH-109975: Copyedit 3.13 What's New: Trivia (GH-124348)
(cherry picked from commit 9e55a02fab)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-23 20:23:43 +00:00
Miss Islington (bot) 779a35b56e
[3.13] GH-109975: Copyedit 3.13 What's New: Porting to Python 3.13 (GH-124341) (#124357)
GH-109975: Copyedit 3.13 What's New: Porting to Python 3.13 (GH-124341)

Copyedit Porting to Python 3.13
(cherry picked from commit 2f6d4109b8)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-23 12:56:46 -07:00
Miss Islington (bot) de8dc92db7
[3.13] gh-123880: Allow recursive import of single-phase-init modules (GH-123950) (#124273)
gh-123880: Allow recursive import of single-phase-init modules (GH-123950)

(cherry picked from commit aee219f455)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
2024-09-23 12:56:00 -07:00
Miss Islington (bot) 8d5911ef6b
[3.13] Use pep role instead of url (GH-121611) (#124172)
Use pep role instead of url (GH-121611)
(cherry picked from commit 33eeccf6d4)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2024-09-23 11:39:16 -07:00
Miss Islington (bot) bbec2ea88f
[3.13] Fix "The Matrix" movie release year in `typing.rst` (GH-123965) (#123966)
Fix "The Matrix" movie release year in `typing.rst` (GH-123965)
(cherry picked from commit 3bd942f106)

Co-authored-by: sobolevn <mail@sobolevn.me>
2024-09-23 11:34:44 -07:00
Adam Turner 86f30dd539
[3.13] GH-109975: Copyedit 3.13 What's New: C API (GH-124313) (#124334)
* [3.13] GH-109975: Copyedit 3.13 What's New: C API (GH-124313)
(cherry picked from commit 9d0a75269c)

* gh-118915: Add/fix docs entries for some new 3.13 C API (GH-124134)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-09-23 11:14:13 -07:00
Miss Islington (bot) af8e77e245
[3.13] gh-124194: Fix wrong issue number in What's New in Python 3.8 (GH-124195) (#124197)
gh-124194: Fix wrong issue number in What's New in Python 3.8 (GH-124195)
(cherry picked from commit d8c0fe1944)

Co-authored-by: Bradley Reynolds <bradley.reynolds@darbia.dev>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-23 11:11:55 -07:00
Miss Islington (bot) 3f52fef151
[3.13] GH-103484: Tell linkcheck to ignore debian manpage redirects (GH-123019) (#124137)
GH-103484: Tell linkcheck to ignore debian manpage redirects (GH-123019)
(cherry picked from commit 1054a755a3)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2024-09-23 11:10:59 -07:00
Miss Islington (bot) 355dc72546
[3.13] Docs: Drop letter PDF (GH-123912) (#123998)
Docs: Drop letter PDF (GH-123912)
(cherry picked from commit f5597dbd0e)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-23 11:09:03 -07:00
Adam Turner 0f9c567b97
[3.13] GH-109975: Copyedit 3.13 What's New: New Deprecations (GH-123845) (#124135)
.
(cherry picked from commit 05235e3c16)
2024-09-23 11:08:44 -07:00
Miss Islington (bot) b2ffd492cd
[3.13] Minor edits to the descriptor guide (GH-123928) (#124079)
Minor edits to the descriptor guide (GH-123928)
(cherry picked from commit cd06f5e323)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2024-09-23 11:07:56 -07:00
Miss Islington (bot) 4cd4bf10be
[3.13] gh-122957: Fix test flakiness in asyncio test in free-thread build (GH-124039) (#124067)
gh-122957: Fix test flakiness in asyncio test in free-thread build (GH-124039)
(cherry picked from commit eadb9660ed)

Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2024-09-23 11:07:41 -07:00
Miss Islington (bot) 72139f276e
[3.13] Update to 3.13 the output of exceptions raised (GH-123888) (#124055)
Update to 3.13 the output of exceptions raised (GH-123888)
(cherry picked from commit 39612103dd)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2024-09-23 10:53:31 -07:00
Miss Islington (bot) 6d482ff296
[3.13] Normalize cdecl formatting as found elsewhere on ctypes.rst (GH-121379) (#124056)
Normalize cdecl formatting as found elsewhere on ctypes.rst (GH-121379)
(cherry picked from commit bbb36c0934)

Co-authored-by: utkonos <utkonos@users.noreply.github.com>
2024-09-23 10:53:07 -07:00
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