]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
14 months agogh-123892: Add "_wmi" to sys.stdlib_module_names (#123893)
Victor Stinner [Tue, 10 Sep 2024 09:54:17 +0000 (11:54 +0200)] 
gh-123892: Add "_wmi" to sys.stdlib_module_names (#123893)

14 months agogh-123881: Add additional test coverage for PEP 695 edge cases (#123886)
Jelle Zijlstra [Tue, 10 Sep 2024 07:26:42 +0000 (00:26 -0700)] 
gh-123881: Add additional test coverage for PEP 695 edge cases (#123886)

14 months agoSmall improvements to the itertools docs (GH-123885)
Raymond Hettinger [Tue, 10 Sep 2024 01:57:49 +0000 (20:57 -0500)] 
Small improvements to the itertools docs (GH-123885)

14 months agogh-66449: remove duplicate configparser section in 3.13 whatsnew (#123874)
Anthony Sottile [Mon, 9 Sep 2024 20:40:18 +0000 (16:40 -0400)] 
gh-66449: remove duplicate configparser section in 3.13 whatsnew (#123874)

14 months agogh-122213: Add notes for pickle serialization errors (GH-122214)
Serhiy Storchaka [Mon, 9 Sep 2024 18:28:55 +0000 (21:28 +0300)] 
gh-122213: Add notes for pickle serialization errors (GH-122214)

This allows to identify the source of the error.

14 months agogh-123826: Fix unused function warnings in mimalloc on NetBSD (#123827)
Furkan Onder [Mon, 9 Sep 2024 17:22:28 +0000 (20:22 +0300)] 
gh-123826: Fix unused function warnings in mimalloc on NetBSD (#123827)

14 months agogh-121404: split compile.c into compile.c and codegen.c (#123651)
Irit Katriel [Mon, 9 Sep 2024 17:21:51 +0000 (18:21 +0100)] 
gh-121404: split compile.c into compile.c and codegen.c (#123651)

14 months agogh-84808: socket.connect_ex: Handle negative errno (GH-122304)
Jérôme Duval [Mon, 9 Sep 2024 14:59:13 +0000 (16:59 +0200)] 
gh-84808: socket.connect_ex: Handle negative errno (GH-122304)

POSIX allows errno to be negative.
Even though all currently supported platforms have non-negative errno,
relying on a quirk like that would make Python less portable.

14 months agogh-117482: Simplify the Fix For Builtin Types Slot Wrappers (GH-122865)
Eric Snow [Mon, 9 Sep 2024 14:04:58 +0000 (08:04 -0600)] 
gh-117482: Simplify the Fix For Builtin Types Slot Wrappers (GH-122865)

In gh-121602, I applied a fix to a builtin types initialization bug.
That fix made sense in the context of some broader future changes,
but introduced a little bit of extra complexity. That fix has turned
out to be incomplete for some of the builtin types we haven't
been testing. I found that out while improving the tests.

A while back, @markshannon suggested a simpler fix that doesn't
have that problem, which I've already applied to 3.12 and 3.13.
I'm switching to that here. Given the potential long-term
benefits of the more complex (but still incomplete) approach,
I'll circle back to it in the future, particularly after I've improved
the tests so no corner cases slip through the cracks.

(This is effectively a "forward-port" of 716c677 from 3.13.)

14 months agoMention `curl` in `contextvars` docs (#123838)
sobolevn [Mon, 9 Sep 2024 13:58:49 +0000 (16:58 +0300)] 
Mention `curl` in `contextvars` docs (#123838)

14 months agoFix typos (#123775)
algonell [Mon, 9 Sep 2024 12:58:26 +0000 (15:58 +0300)] 
Fix typos (#123775)

14 months agogh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#123824)
Furkan Onder [Mon, 9 Sep 2024 12:14:23 +0000 (15:14 +0300)] 
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#123824)

Fix test_posix for unsupported posix_fallocate on NetBSD.

14 months agogh-122311: Improve and unify pickle errors (GH-122771)
Serhiy Storchaka [Mon, 9 Sep 2024 12:04:51 +0000 (15:04 +0300)] 
gh-122311: Improve and unify pickle errors (GH-122771)

* Raise PicklingError instead of UnicodeEncodeError, ValueError
  and AttributeError in both implementations.
* Chain the original exception to the pickle-specific one as __context__.
* Include the error message of ImportError and some AttributeError in
  the PicklingError error message.
* Unify error messages between Python and C implementations.
* Refer to documented __reduce__ and __newobj__ callables instead of
  internal methods (e.g. save_reduce()) or pickle opcodes (e.g. NEWOBJ).
* Include more details in error messages (what expected, what got).
* Avoid including a potentially long repr of an arbitrary object in
  error messages.

14 months agogh-123834: Add `symtable` to the list of modules with a CLI (#123835)
Bénédikt Tran [Mon, 9 Sep 2024 11:45:43 +0000 (13:45 +0200)] 
gh-123834: Add `symtable` to the list of modules with a CLI (#123835)

14 months agochore: decimal module macro cleanup (#123791)
Bénédikt Tran [Mon, 9 Sep 2024 09:24:24 +0000 (11:24 +0200)] 
chore: decimal module macro cleanup (#123791)

* protect macros expansion via `do { ... } while (0)` constructions in `_decimal.c`

* Use public macro `Py_UNUSED`

This replaces the usages of the `UNUSED` macro which
was not consistent with the `Py_UNUSED` macro itself.

In addition, this amends the parameter names so that
they match their semantic meanings.

* Remove redundant `PyCFunction` casts

14 months agogh-123843: Remove broken links to the Zope DateTimeWiki (#123846)
Adam Turner [Mon, 9 Sep 2024 02:39:23 +0000 (22:39 -0400)] 
gh-123843: Remove broken links to the Zope DateTimeWiki (#123846)

Co-authored-by: Conrad Bhuiyan-Volkoff <hi@cbv.im>
14 months agogh-108219: Add credits to the free-threading entry in What's New (#123802)
Donghee Na [Sun, 8 Sep 2024 20:20:15 +0000 (05:20 +0900)] 
gh-108219: Add credits to the free-threading entry in What's New (#123802)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Itamar Oren <itamarost@gmail.com>
14 months agogh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071)
Sergey B Kirpichev [Sun, 8 Sep 2024 13:01:54 +0000 (16:01 +0300)] 
gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071)

14 months agogh-123789: `secrets.randbits` returns only non-negative int (#123801)
Wulian [Sun, 8 Sep 2024 04:17:59 +0000 (12:17 +0800)] 
gh-123789: `secrets.randbits` returns only non-negative int (#123801)

14 months agoAdd willingc to CODEOWNERS for Lang Reference Doc (#123812)
Carol Willing [Sat, 7 Sep 2024 18:46:56 +0000 (11:46 -0700)] 
Add willingc to CODEOWNERS for Lang Reference Doc (#123812)

14 months agoRemove excessive backticks in logging doc (#123813)
Wei-Hsiang (Matt) Wang [Sat, 7 Sep 2024 18:09:02 +0000 (02:09 +0800)] 
Remove excessive backticks in logging doc (#123813)

14 months agogh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793)
Seth Michael Larson [Sat, 7 Sep 2024 18:05:58 +0000 (13:05 -0500)] 
gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793)

Make IPv4-mapped IPv6 address properties consistent with IPv4.

14 months agogh-120221: Support KeyboardInterrupt in asyncio REPL (#123795)
Łukasz Langa [Fri, 6 Sep 2024 19:28:29 +0000 (21:28 +0200)] 
gh-120221: Support KeyboardInterrupt in asyncio REPL (#123795)

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.

14 months agogh-123321: Make Parser/myreadline.c locking safe in free-threaded build (#123690)
Sam Gross [Fri, 6 Sep 2024 19:07:08 +0000 (15:07 -0400)] 
gh-123321: Make Parser/myreadline.c locking safe in free-threaded build (#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.

14 months agogh-117657: Fix file descriptor race in test_socket.py (#123697)
Nadeshiko Manju [Fri, 6 Sep 2024 19:00:28 +0000 (03:00 +0800)] 
gh-117657: Fix file descriptor race in test_socket.py (#123697)

14 months agogh-109975: Add links to py-free-threading.github.io (#123776)
Nathan Goldbaum [Fri, 6 Sep 2024 17:12:12 +0000 (11:12 -0600)] 
gh-109975: Add links to py-free-threading.github.io (#123776)

Co-authored-by: Victor Stinner <vstinner@python.org>
14 months agogh-123523: Rework typing documentation for generators and coroutines, and link to...
Stanislav Terliakov [Fri, 6 Sep 2024 16:41:06 +0000 (18:41 +0200)] 
gh-123523: Rework typing documentation for generators and coroutines, and link to it from `collections.abc` docs (#123544)

14 months agogh-121645: Fix typo in PyBytes_Join() doc (#123783)
Victor Stinner [Fri, 6 Sep 2024 14:08:17 +0000 (16:08 +0200)] 
gh-121645: Fix typo in PyBytes_Join() doc (#123783)

14 months agogh-123747: Avoid static_assert() in internal header files (#123779)
Victor Stinner [Fri, 6 Sep 2024 13:52:07 +0000 (15:52 +0200)] 
gh-123747: Avoid static_assert() in internal header files (#123779)

14 months agogh-119310: Fix encoding when reading old history file (#121779)
aorcajo [Fri, 6 Sep 2024 13:40:29 +0000 (15:40 +0200)] 
gh-119310: Fix encoding when reading old history file (#121779)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
14 months agogh-123780: Make test_pkgutil clean up `spam` module (GH-123036)
Malcolm Smith [Fri, 6 Sep 2024 13:23:55 +0000 (14:23 +0100)] 
gh-123780: Make test_pkgutil clean up `spam` module (GH-123036)

14 months agoFix typo in error message misspelling __slotnames__ (GH-115772)
Jay Aljelo Ting [Fri, 6 Sep 2024 11:50:55 +0000 (19:50 +0800)] 
Fix typo in error message misspelling __slotnames__ (GH-115772)

14 months agogh-123657: Fix crash and refleak in `decimal.getcontext()` (GH-123703)
neonene [Fri, 6 Sep 2024 11:15:23 +0000 (20:15 +0900)] 
gh-123657: Fix crash and refleak in `decimal.getcontext()` (GH-123703)

14 months agogh-119034, REPL: Change page up/down keys to search in history (#123607)
Victor Stinner [Fri, 6 Sep 2024 11:15:00 +0000 (13:15 +0200)] 
gh-119034, REPL: Change page up/down keys to search in history (#123607)

Change <page up> and <page down> keys of the Python REPL to history
search forward/backward.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
14 months agogh-111201: fix auto-indent in pyrepl for muliple pound comments (#123196)
Arnon Yaari [Fri, 6 Sep 2024 07:33:40 +0000 (10:33 +0300)] 
gh-111201: fix auto-indent in pyrepl for muliple pound comments (#123196)

14 months agogh-103066: Add links and `help` in site.py constants (#103777)
David Caron [Fri, 6 Sep 2024 07:29:28 +0000 (03:29 -0400)] 
gh-103066: Add links and `help` in site.py constants (#103777)

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>
14 months agoEnsure clang++ is autodetected on iOS. (gh-123749)
Russell Keith-Magee [Fri, 6 Sep 2024 01:36:01 +0000 (09:36 +0800)] 
Ensure clang++ is autodetected on iOS. (gh-123749)

14 months agogh-123275: Add tests for `PYTHON_GIL=1` and `-Xgil=1` (gh-123754)
Peter Bierma [Fri, 6 Sep 2024 01:15:30 +0000 (21:15 -0400)] 
gh-123275: Add tests for `PYTHON_GIL=1` and `-Xgil=1` (gh-123754)

14 months agogh-123718: Fix implicit declaration of 'explicit_memset' for NetBSD 10.0 (#123719)
Furkan Onder [Fri, 6 Sep 2024 00:09:04 +0000 (03:09 +0300)] 
gh-123718: Fix implicit declaration of 'explicit_memset' for NetBSD 10.0 (#123719)

Fix implicit declaration of 'explicit_memset' for NetBSD 10.0 in Lib_Memzero0.c.

14 months agogh-123275: Support `-Xgil=1` and `PYTHON_GIL=1` on non-free-threaded builds (gh-123276)
Peter Bierma [Thu, 5 Sep 2024 23:53:47 +0000 (19:53 -0400)] 
gh-123275: Support `-Xgil=1` and `PYTHON_GIL=1` on non-free-threaded builds (gh-123276)

14 months agogh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD compati...
Furkan Onder [Thu, 5 Sep 2024 23:49:12 +0000 (02:49 +0300)] 
gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD compatibility (#123717)

14 months agogh-123476: Add support for TCP_QUICKACK socket setting to Windows (#123478)
nkinnan [Thu, 5 Sep 2024 20:59:48 +0000 (13:59 -0700)] 
gh-123476: Add support for TCP_QUICKACK socket setting to Windows (#123478)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
14 months agoSwap the and from in sentence in init_config.rst (#120086)
Rafael Fontenelle [Thu, 5 Sep 2024 20:04:15 +0000 (17:04 -0300)] 
Swap the and from in sentence in init_config.rst (#120086)

14 months agogh-85453: Improve instance attributes mark up on datetime.rst (#123655)
edson duarte [Thu, 5 Sep 2024 17:56:52 +0000 (14:56 -0300)] 
gh-85453: Improve instance attributes mark up on datetime.rst (#123655)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
14 months agoGH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors...
Savannah Ostrowski [Thu, 5 Sep 2024 17:56:07 +0000 (10:56 -0700)] 
GH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors (GH-123546)

14 months agogh-123240: Raise input audit events in the new REPL (#123274)
sobolevn [Thu, 5 Sep 2024 15:17:24 +0000 (18:17 +0300)] 
gh-123240: Raise input audit events in the new REPL (#123274)

14 months agogh-123207: Clarify the documentation for the mro lookup for super() (GH-123417)
Pieter Eendebak [Thu, 5 Sep 2024 13:52:04 +0000 (15:52 +0200)] 
gh-123207: Clarify the documentation for the mro lookup for super() (GH-123417)

14 months agogh-123418: Update macOS installer to use OpenSSL 3.0.15 (#123684)
Zachary Ware [Thu, 5 Sep 2024 12:29:36 +0000 (07:29 -0500)] 
gh-123418: Update macOS installer to use OpenSSL 3.0.15 (#123684)

14 months agogh-123465: Allow Py_RELATIVE_OFFSET for __*offset__ members (GH-123474)
Petr Viktorin [Thu, 5 Sep 2024 12:14:05 +0000 (14:14 +0200)] 
gh-123465: Allow Py_RELATIVE_OFFSET for __*offset__ members (GH-123474)

14 months agogh-97588: Move ctypes struct/union layout logic to Python (GH-123352)
Petr Viktorin [Thu, 5 Sep 2024 09:20:07 +0000 (11:20 +0200)] 
gh-97588: Move ctypes struct/union layout logic to Python (GH-123352)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
14 months agogh-123418: Update Android build to use OpenSSL 3.0.15 (GH-123685)
Zachary Ware [Wed, 4 Sep 2024 22:42:58 +0000 (17:42 -0500)] 
gh-123418: Update Android build to use OpenSSL 3.0.15 (GH-123685)

14 months agogh-123678: Upgrade libexpat 2.6.3 (#123689)
Seth Michael Larson [Wed, 4 Sep 2024 19:57:16 +0000 (14:57 -0500)] 
gh-123678: Upgrade libexpat 2.6.3 (#123689)

Upgrade libexpat 2.6.3

14 months agogh-123700: Update OpenSSL versions in multissltests and CI (#123701)
Zachary Ware [Wed, 4 Sep 2024 19:29:41 +0000 (14:29 -0500)] 
gh-123700: Update OpenSSL versions in multissltests and CI (#123701)

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.

14 months agogh-123418: Update CI to use fresh OpenSSL releases (GH-123675)
Zachary Ware [Wed, 4 Sep 2024 18:16:53 +0000 (13:16 -0500)] 
gh-123418: Update CI to use fresh OpenSSL releases (GH-123675)

Also adds openssl/openssl GitHub URL template for newer OpenSSL downloads

14 months agogh-123418: Update OpenSSL to 3.0.15 on Windows (GH-123673)
Zachary Ware [Wed, 4 Sep 2024 17:08:02 +0000 (12:08 -0500)] 
gh-123418: Update OpenSSL to 3.0.15 on Windows (GH-123673)

14 months agogh-123321: Fix Parser/myreadline.c to prevent a segfault during a multi-threaded...
Bar Harel [Wed, 4 Sep 2024 15:21:30 +0000 (18:21 +0300)] 
gh-123321: Fix Parser/myreadline.c to prevent a segfault during a multi-threaded race (#123323)

14 months agogh-118710: Make IPv*Address.version & max_prefixlen available on the class (GH-120698)
Nice Zombies [Wed, 4 Sep 2024 13:51:12 +0000 (15:51 +0200)] 
gh-118710: Make IPv*Address.version & max_prefixlen available on the class (GH-120698)

14 months agogh-123504: Fix regression in `_tkinter` initializer (#123662)
Peter Bierma [Wed, 4 Sep 2024 11:43:50 +0000 (07:43 -0400)] 
gh-123504: Fix regression in `_tkinter` initializer  (#123662)

* Add module traverse function to _tkinter.
* Set m_size to -1 (instead of 0).

14 months agogh-107954, PEP 741: Add PyInitConfig_AddModule() function (#123668)
Victor Stinner [Wed, 4 Sep 2024 11:41:57 +0000 (13:41 +0200)] 
gh-107954, PEP 741: Add PyInitConfig_AddModule() function (#123668)

14 months agogh-123463: Include logging_flow diagram in non-HTML docs (GH-123464)
Alexander Bessman [Wed, 4 Sep 2024 11:14:36 +0000 (13:14 +0200)] 
gh-123463: Include logging_flow diagram in non-HTML docs (GH-123464)

14 months agogh-123392: Clarify wording regarding parameters that are functions to be called ...
ryan-duve [Wed, 4 Sep 2024 11:05:46 +0000 (07:05 -0400)] 
gh-123392: Clarify wording regarding parameters that are functions to be called (GH-123394)

14 months agogh-107954, PEP 741: Adjust Python initialization config (#123663)
Victor Stinner [Wed, 4 Sep 2024 10:58:32 +0000 (12:58 +0200)] 
gh-107954, PEP 741: Adjust Python initialization config (#123663)

Setting dev_mode to 1 in an isolated configuration now enables also
faulthandler.

Moreover, setting "module_search_paths" option with
PyInitConfig_SetStrList() now sets "module_search_paths_set" to 1.

14 months agogh-121423: Improve import time of `socket` (#121424)
Wulian [Wed, 4 Sep 2024 10:00:37 +0000 (18:00 +0800)] 
gh-121423: Improve import time of `socket` (#121424)

Improve import time of `socket` by writing `socket.errorTab`
as a constant and lazy import modules.

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
14 months agogh-122989: Replace duplicate “self.policy.linesep” with “linesep” (#123002)
Damien [Wed, 4 Sep 2024 06:30:25 +0000 (14:30 +0800)] 
gh-122989: Replace duplicate “self.policy.linesep”  with “linesep” (#123002)

`linesep` is already defined as `self.policy.linesep`.  It appears that previous refactor was not completed.

14 months agoAdd shims for iOS C++ compilation (#123620)
Russell Keith-Magee [Wed, 4 Sep 2024 00:28:39 +0000 (08:28 +0800)] 
Add shims for iOS C++ compilation (#123620)

Add shims for iOS C++ compilation.

14 months agogh-123504: Fix reference leak in finalization of `_tkinter` (#123505)
Peter Bierma [Tue, 3 Sep 2024 20:35:57 +0000 (16:35 -0400)] 
gh-123504: Fix reference leak in finalization of `_tkinter` (#123505)

14 months agogh-123621: Fix `datamodel.rst` with proper `dict` notation (#123648)
Lipták Attila (Flash) [Tue, 3 Sep 2024 19:52:00 +0000 (21:52 +0200)] 
gh-123621: Fix `datamodel.rst` with proper `dict` notation (#123648)

14 months agogh-123579: Document exclamation token (#123612)
Shaygan Hooshyari [Tue, 3 Sep 2024 14:49:38 +0000 (07:49 -0700)] 
gh-123579: Document exclamation token (#123612)

14 months agogh-123572: Fix key codes in VK_MAP in windows_console.py (#122692)
devdanzin [Tue, 3 Sep 2024 13:01:21 +0000 (10:01 -0300)] 
gh-123572: Fix key codes in VK_MAP in windows_console.py (#122692)

14 months agogh-121804: always show error location for SyntaxError's in basic repl (#123202)
Sergey B Kirpichev [Tue, 3 Sep 2024 12:37:29 +0000 (15:37 +0300)] 
gh-121804: always show error location for SyntaxError's in basic repl (#123202)

14 months agogh-107954, PEP 741: Add PyInitConfig C API (#123502)
Victor Stinner [Tue, 3 Sep 2024 12:33:49 +0000 (14:33 +0200)] 
gh-107954, PEP 741: Add PyInitConfig C API (#123502)

Add Doc/c-api/config.rst documentation.

14 months agogh-123580: Fix `signed_number` token in documentation (GH-123582)
CBerJun [Tue, 3 Sep 2024 08:01:26 +0000 (04:01 -0400)] 
gh-123580: Fix `signed_number` token in documentation (GH-123582)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
14 months agogh-123430: Add dark mode support to pages generated by http.server (#123475)
Yorik Hansen [Tue, 3 Sep 2024 06:32:11 +0000 (08:32 +0200)] 
gh-123430: Add dark mode support to pages generated by http.server (#123475)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
14 months agogh-121313: multiprocessing: simplify by increasing the connection buffer size to...
Inada Naoki [Tue, 3 Sep 2024 03:32:38 +0000 (12:32 +0900)] 
gh-121313: multiprocessing: simplify by increasing the connection buffer size to 64KiB (GH-123559)

Increases the multiprocessing connection buffer size from 8k to 64k for efficiency, without overallocating.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
14 months agoFix typos in warnings, docstrings, comments and text files (#123597)
abstractee [Tue, 3 Sep 2024 00:20:40 +0000 (01:20 +0100)] 
Fix typos in warnings, docstrings, comments and text files (#123597)

14 months ago gh-107954, PEP 741: Add PyConfig_Get()/Set() functions (#123472)
Victor Stinner [Mon, 2 Sep 2024 21:25:08 +0000 (23:25 +0200)] 
  gh-107954, PEP 741: Add PyConfig_Get()/Set() functions (#123472)

Add PyConfig_Get(), PyConfig_GetInt(), PyConfig_Set() and
PyConfig_Names() functions to get and set the current runtime Python
configuration.

Add visibility and "sys spec" to config and preconfig specifications.

_PyConfig_AsDict() now converts PyConfig.xoptions as a dictionary.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
14 months agogh-123458: Skip SBOM generation if no git repository is detected (#123507)
Seth Michael Larson [Mon, 2 Sep 2024 19:35:30 +0000 (14:35 -0500)] 
gh-123458: Skip SBOM generation if no git repository is detected (#123507)

14 months agogh-121404: enforce that codegen doesn't access compiler, and compiler doesn't use...
Irit Katriel [Mon, 2 Sep 2024 17:23:39 +0000 (18:23 +0100)] 
gh-121404: enforce that codegen doesn't access compiler, and compiler doesn't use codegen macros (#123575)

14 months agogh-123091: Use more _Py_IsImmortalLoose() (GH-123602)
Petr Viktorin [Mon, 2 Sep 2024 16:17:48 +0000 (18:17 +0200)] 
gh-123091: Use more _Py_IsImmortalLoose() (GH-123602)

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.

14 months agoGH-119518: Stop interning strings in pathlib GH-123356)
Barney Gale [Mon, 2 Sep 2024 16:14:09 +0000 (17:14 +0100)] 
GH-119518: Stop interning strings in pathlib GH-123356)

Remove `sys.intern(str(x))` calls when normalizing a path in pathlib. This
speeds up `str(Path('foo/bar'))` by about 10%.

14 months agogh-123409: fix `IPv6Address.reverse_pointer` for IPv4-mapped addresses (GH-123419)
Bénédikt Tran [Mon, 2 Sep 2024 15:05:05 +0000 (17:05 +0200)] 
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)

14 months agogh-101525: Skip test_gdb if the binary is relocated by BOLT. (gh-118572)
Donghee Na [Mon, 2 Sep 2024 13:24:53 +0000 (22:24 +0900)] 
gh-101525: Skip test_gdb if the binary is relocated by BOLT. (gh-118572)

14 months agogh-123091: Use _Py_IsImmortalLoose() (#123511)
Victor Stinner [Mon, 2 Sep 2024 12:25:19 +0000 (14:25 +0200)] 
gh-123091: Use _Py_IsImmortalLoose() (#123511)

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

14 months agogh-118508: Clarify which characters are matched by `\s` (#119155)
Nice Zombies [Mon, 2 Sep 2024 11:48:15 +0000 (13:48 +0200)] 
gh-118508: Clarify which characters are matched by `\s` (#119155)

Clarify re syntax

14 months agogh-123562: Improve `SyntaxError` message for `case ... as a.b` (#123563)
sobolevn [Mon, 2 Sep 2024 11:11:44 +0000 (14:11 +0300)] 
gh-123562: Improve `SyntaxError` message for `case ... as a.b` (#123563)

14 months agogh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (...
sobolevn [Mon, 2 Sep 2024 06:58:38 +0000 (09:58 +0300)] 
gh-123570: Add link to `weakref.ref` from `weakref_slot` docs in `dataclasses` (#123571)

14 months agobuild(deps): bump hypothesis from 6.108.10 to 6.111.2 in /Tools (#123567)
dependabot[bot] [Mon, 2 Sep 2024 05:04:50 +0000 (08:04 +0300)] 
build(deps): bump hypothesis from 6.108.10 to 6.111.2 in /Tools (#123567)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
14 months agogh-109975: Remove dangling angle bracket from 3.13.rst (#123589)
Rafael Fontenelle [Mon, 2 Sep 2024 04:57:56 +0000 (01:57 -0300)] 
gh-109975: Remove dangling angle bracket from 3.13.rst (#123589)

Remove dangling angle bracket from 3.13.rst

14 months agoRemove irrelevant detail from example code. (gh-123587)
Raymond Hettinger [Mon, 2 Sep 2024 01:04:33 +0000 (20:04 -0500)] 
Remove irrelevant detail from example code. (gh-123587)

14 months agoSimplify Property() recipe to focus on the essentials (gh-123585)
Raymond Hettinger [Sun, 1 Sep 2024 22:49:38 +0000 (17:49 -0500)] 
Simplify Property() recipe to focus on the essentials (gh-123585)

14 months agogh-123553: Fix compile warning in `compile.c` (#123578)
sobolevn [Sun, 1 Sep 2024 15:43:45 +0000 (18:43 +0300)] 
gh-123553: Fix compile warning in `compile.c` (#123578)

14 months agogh-118761: Speedup pathlib import by deferring shutil (#123520)
Daniel Hollas [Sun, 1 Sep 2024 14:44:48 +0000 (15:44 +0100)] 
gh-118761: Speedup pathlib import by deferring shutil (#123520)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
14 months agogh-123341: Support `tkinter.Event` type subcript (#123353)
Yoda [Sun, 1 Sep 2024 11:47:07 +0000 (13:47 +0200)] 
gh-123341: Support `tkinter.Event` type subcript (#123353)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
14 months agoBump types-setuptools from 71.1.0.20240726 to 74.0.0.20240831 in /Tools (#123565)
dependabot[bot] [Sun, 1 Sep 2024 10:38:58 +0000 (10:38 +0000)] 
Bump types-setuptools from 71.1.0.20240726 to 74.0.0.20240831 in /Tools (#123565)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
14 months agogh-91126: Docs and tests for slotted dataclasses with `__init_subclass__` (#123342)
sobolevn [Sun, 1 Sep 2024 10:25:34 +0000 (13:25 +0300)] 
gh-91126: Docs and tests for slotted dataclasses with `__init_subclass__` (#123342)

14 months agoBump mypy from 1.11.1 to 1.11.2 in /Tools (#123566)
dependabot[bot] [Sun, 1 Sep 2024 10:10:10 +0000 (10:10 +0000)] 
Bump mypy from 1.11.1 to 1.11.2 in /Tools (#123566)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
14 months agoBump types-psutil from 6.0.0.20240621 to 6.0.0.20240901 in /Tools (#123564)
dependabot[bot] [Sun, 1 Sep 2024 10:09:51 +0000 (11:09 +0100)] 
Bump types-psutil from 6.0.0.20240621 to 6.0.0.20240901 in /Tools (#123564)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
14 months agogh-123553: Fix compiler warning in `Python/compile.c` (#123554)
Kirill Podoprigora [Sun, 1 Sep 2024 06:29:34 +0000 (09:29 +0300)] 
gh-123553: Fix compiler warning in `Python/compile.c` (#123554)

14 months agogh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (#123551)
jlallas384 [Sun, 1 Sep 2024 06:11:40 +0000 (10:11 +0400)] 
gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (#123551)

14 months agoGH-109975: Copyedit 3.13 What's New: Removals (#123529)
Adam Turner [Sun, 1 Sep 2024 05:41:17 +0000 (01:41 -0400)] 
GH-109975: Copyedit 3.13 What's New: Removals (#123529)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>