]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Fri, 25 Apr 2025 02:09:58 +0000 (04:09 +0200)]
[3.13] gh-98347: Add links to python-isal in the documentation (GH-98637) (#132894)
gh-98347: Add links to python-isal in the documentation (GH-98637)
Clearly note that this is primarily intended for users for who zlib/gzip is a bottleneck.
(cherry picked from commit
b1fc8b69ec4c29026cd8786fc5da0c498c7dcd57 )
Co-authored-by: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Thu, 24 Apr 2025 22:11:18 +0000 (00:11 +0200)]
[3.13] Differentiate bitwise OR from the word "or" (GH-132890) (#132891)
Differentiate bitwise OR from the word "or" (GH-132890)
(cherry picked from commit
15ff60aff0ca28b23c89cb1c0fc8f1f8997ed035 )
Co-authored-by: Brett Cannon <brett@python.org>
Serhiy Storchaka [Thu, 24 Apr 2025 15:47:01 +0000 (18:47 +0300)]
[3.13] Use os.openpty() instead of pty.openpty() in test_ioctl (GH-132878)
pty.openpty() does not work on Android, and it is easier to check
availability of os.openpty.
Miss Islington (bot) [Thu, 24 Apr 2025 14:27:41 +0000 (16:27 +0200)]
[3.13] Fix a grammar error in the `Py_ALWAYS_INLINE` doc (GH-129304) (#132877)
Co-authored-by: Kuba_Z2 <77853483+KubaZ2@users.noreply.github.com>
Miss Islington (bot) [Thu, 24 Apr 2025 14:09:03 +0000 (16:09 +0200)]
[3.13] gh-128185: Align Decimal docs with spec (case irrelevant for nan/inf) (GH-128323) (#132875)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Thu, 24 Apr 2025 14:03:02 +0000 (16:03 +0200)]
[3.13] gh-122399: change webbrowser.rst to better describe the contents of controller object (GH-122407) (#132874)
Co-authored-by: Jordi Burguet-Castell <jordi.burguet.castell@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 23 Apr 2025 21:40:25 +0000 (23:40 +0200)]
[3.13] gh-109981: Resolve situation on iOS regarding fd_count. (GH-132823) (#132824)
Modifies the test helper that counts the list of open file descriptors to use
the optimised ``/dev/fd`` approach on all Apple platforms, not just macOS. This
avoids crashes caused by guarded file descriptors.
(cherry picked from commit
862fd890361005598a6f4614ea0608c8447831c2 )
Co-authored-by: John <johnzhou721@gmail.com>
Serhiy Storchaka [Wed, 23 Apr 2025 19:17:51 +0000 (22:17 +0300)]
[3.13] gh-83994, gh-132843: Fix and improve test_ioctl (GH-132848) (GH-132850)
* Skip test_ioctl_tcflush if termios.TCFLSH is not available.
* Do not skip ALL ioctl() tests when /dev/tty is not available.
(cherry picked from commit
4b4b9fbb06198f65424ed5be06c59f8b2801b99b )
Miss Islington (bot) [Wed, 23 Apr 2025 18:08:46 +0000 (20:08 +0200)]
[3.13] gh-132742: Update documentation for the fcntl module (GH-132765) (GH-132832)
(cherry picked from commit
5f50541ebd420a2d21a20c6f492e343657e06c1a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 23 Apr 2025 14:12:03 +0000 (16:12 +0200)]
[3.13] gh-132713: Fix typing.Union[index] race condition (GH-132802) (#132839)
gh-132713: Fix typing.Union[index] race condition (GH-132802)
Add union_init_parameters() helper function. Use a critical section
to initialize the 'parameters' member.
(cherry picked from commit
dc3e9638c22fc1fa807a88c32316ac2558a4b879 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Victor Stinner [Wed, 23 Apr 2025 13:44:33 +0000 (15:44 +0200)]
[3.13] gh-132713: Fix repr(list) race condition (#132801) (#132809)
Hold a strong reference to the item while calling repr(item).
(cherry picked from commit
a4ea80d52394bafffb2257abbe815c7ffdb003a3 )
sobolevn [Tue, 22 Apr 2025 15:57:34 +0000 (18:57 +0300)]
[3.13] Update `pre-commit` repos (GH-132792) (#132804)
(cherry picked from commit
87b1ea016b1454b1e83b9113fa9435849b7743aa )
Miss Islington (bot) [Mon, 21 Apr 2025 22:42:55 +0000 (00:42 +0200)]
[3.13] gh-132769: Refactor possible read-out-of-bounds in `lexer.c` (GH-132770) (#132788)
gh-132769: Refactor possible read-out-of-bounds in `lexer.c` (GH-132770)
(cherry picked from commit
ea8ec95cfadbf58a11ef8e41341254d982a1a479 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Gregory P. Smith [Mon, 21 Apr 2025 21:55:57 +0000 (14:55 -0700)]
[3.13] gh-122179: Fix hashlib.file_digest and non-blocking I/O (GH-132787)
gh-122179: Fix hashlib.file_digest and non-blocking I/O (GH-122183)
* Fix hashlib.file_digest and non-blocking I/O
* Add documentation around this behavior
* Add versionchanged
(cherry picked from commit
2b47f46d7dc30d27b2486991fea4acd83553294b )
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Peter Bierma [Mon, 21 Apr 2025 21:38:51 +0000 (17:38 -0400)]
[3.13] gh-132747: Fix `NULL` dereference when calling a method's `__get__` manually (GH-132772) (#132786)
(cherry picked from commit
fa70bf85931eff62cb24fb2f5b7e86c1dcf642d0 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Mon, 21 Apr 2025 07:55:13 +0000 (09:55 +0200)]
[3.13] gh-85583: Add an overview of formatted string literals (f-strings) to ``str`` (GH-132689) (#132767)
gh-85583: Add an overview of formatted string literals (f-strings) to ``str`` (GH-132689)
(cherry picked from commit
fee808936fd04e850a62c9610498bbb2360efd31 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Serhiy Storchaka [Mon, 21 Apr 2025 07:10:31 +0000 (10:10 +0300)]
[3.13] gh-132753: Argument Clinic: Fix support of c_default for the bool converter (GH-132754) (GH-132766)
(cherry picked from commit
78cfee6f0920ac914ed179c013f61c53ede16fa9 )
Miss Islington (bot) [Mon, 21 Apr 2025 06:49:45 +0000 (08:49 +0200)]
[3.13] gh-132742: Add more tests for fcntl.ioctl() (GH-132756) (GH-132764)
Test with different types of argument: integer, mutable and immutable
buffers, immutable buffer with mutable_flag set to false.
(cherry picked from commit
a04390b4dad071195f834db347aa686292811051 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 20 Apr 2025 17:48:16 +0000 (19:48 +0200)]
[3.13] gh-129098: avoid using content of `_pyrepl/__main__.py` when reporting tracebacks (GH-130721) (#132755)
gh-129098: avoid using content of `_pyrepl/__main__.py` when reporting tracebacks (GH-130721)
(cherry picked from commit
492e3e6976d05b8de1892c37c900ada23eaeaf06 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sun, 20 Apr 2025 01:12:26 +0000 (03:12 +0200)]
[3.13] gh-129327: revise hashlib documentation to account for FIPS removing sha1 (GH-132729) (#132740)
gh-129327: revise hashlib documentation to account for FIPS removing sha1 (GH-132729)
* gh-129327: revise hashlib documentation to account for FIPS removing sha1
More generally, the current documentation is a bit scattered, talking
about what terms are "equal" despite those terms not being very
interesting and given the term "secure hash", probably wrong (because
md5 and sha1 are not secure anymore).
Let's talk about cryptographically secure instead, and note that two of
them aren't. And then we can also link to the source for NIST going
through the removal process for SHA1.
* Add Gregors Suggestion
* Clean up
---------
(cherry picked from commit
a16586c9e7a9accfe26489191b5b1ee39657ee5b )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Eli Schwartz <eschwartz@gentoo.org>
Peter Bierma [Sat, 19 Apr 2025 14:29:05 +0000 (10:29 -0400)]
[3.13] gh-132673: Fix a crash with zero-alignment in `ctypes.Structure` (#132695)
Miss Islington (bot) [Sat, 19 Apr 2025 14:20:46 +0000 (16:20 +0200)]
[3.13] Docs: Fix REPL example in `Doc/library/shutil.rst` (GH-132700) (#132728)
Docs: Fix REPL example in `Doc/library/shutil.rst` (GH-132700)
(cherry picked from commit
e154e4db3684696d29725112f0fcc69e05c40cd1 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Fri, 18 Apr 2025 20:49:23 +0000 (22:49 +0200)]
[3.13] gh-129719: Restore missing `socket.CAN_RAW_ERR_FILTER` on Linux (GH-129721) (#132702)
gh-129719: Restore missing `socket.CAN_RAW_ERR_FILTER` on Linux (GH-129721)
(cherry picked from commit
ce31ae5209c976d28d1c21fcbb06c0ae5e50a896 )
Co-authored-by: Jeroen Bogers <11465689+jbogers@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Fri, 18 Apr 2025 19:35:35 +0000 (21:35 +0200)]
[3.13] gh-132396: Resolve 'redefinition of unused name' errors in ``Lib/test/`` (GH-132397) (#132699)
gh-132396: Resolve 'redefinition of unused name' errors in ``Lib/test/`` (GH-132397)
(cherry picked from commit
1d5dc5f1c37ce28a635386189020cf49b3f7f1c3 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Fri, 18 Apr 2025 17:47:25 +0000 (19:47 +0200)]
[3.13] Minor doc edit: Make multinomial() the first math example (gh-132697) (gh-132698)
Łukasz Langa [Fri, 18 Apr 2025 15:41:42 +0000 (17:41 +0200)]
[3.13] gh-129958: Properly disallow newlines in format specs in single-quoted f-strings (GH-130063) (GH-132692)
(cherry picked from commit
2f8b08da475152adea59b6bf98e2d0cb73dd8a59 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Fri, 18 Apr 2025 13:48:23 +0000 (15:48 +0200)]
[3.13] gh-130861: Add clarification to the perf docs on optimization levels (GH-131098) (#132687)
Miss Islington (bot) [Fri, 18 Apr 2025 12:51:02 +0000 (14:51 +0200)]
[3.13] gh-132553: Build the perf tool without buildid cache (GH-132663) (GH-132681)
(cherry picked from commit
e01e5829020e517eb68a47da4dd65926a9d144de )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Fri, 18 Apr 2025 12:17:36 +0000 (14:17 +0200)]
[3.13] gh-132674: fix `_hashopenssl.c` compiler warnings on free-threaded build (GH-132675) (#132677)
gh-132674: fix `_hashopenssl.c` compiler warnings on free-threaded build (GH-132675)
(cherry picked from commit
2df0f8804701cc17674e5b4e90499e9fac71d0e1 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Fri, 18 Apr 2025 12:14:40 +0000 (14:14 +0200)]
[3.13] gh-132668: Remove outdated description of `POP_JUMP_*` instructions (GH-132669) (#132680)
gh-132668: Remove outdated description of `POP_JUMP_*` instructions (GH-132669)
(cherry picked from commit
7e2672cfcf993e957c9966a88931fe6571affd24 )
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Miss Islington (bot) [Fri, 18 Apr 2025 04:02:18 +0000 (06:02 +0200)]
[3.13] Docs: Migrate entirely to PSF hosted plausible for analytics (GH-132648) (#132660)
Docs: Migrate entirely to PSF hosted plausible for analytics (GH-132648)
(cherry picked from commit
1d529cbc892b824b387d672899265ed4258b2222 )
Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
Miss Islington (bot) [Thu, 17 Apr 2025 19:37:30 +0000 (21:37 +0200)]
gh-132649: Allow passing --include-tcltk to PC\layout on Windows ARM64 (GH-132650)
(cherry picked from commit
b87189deae7cdd65083da60cf3ba6e5bba117663 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Bartosz Sławecki [Thu, 17 Apr 2025 09:21:56 +0000 (11:21 +0200)]
[3.13] gh-130070: Fix `exec(<string>, closure=<non-None>)` unexpected path (GH-130071) (#132627)
gh-130070: Fix `exec(<string>, closure=<non-None>)` unexpected path (#130071)
Fixed an assertion error (so, it could be reproduced only in builds with assertions enabled)
for `exec` when the `source` argument is a string and the `closure` argument is not `None`.
Co-authored-by: sobolevn <mail@sobolevn.me>
(cherry picked from commit
954b2cf031fb84ff3386251d5c45281f47229003 )
Miss Islington (bot) [Wed, 16 Apr 2025 20:02:39 +0000 (22:02 +0200)]
[3.13] gh-132608: Fix a sample code coloring for ast.While (GH-132609) (#132612)
Miss Islington (bot) [Wed, 16 Apr 2025 17:50:31 +0000 (19:50 +0200)]
[3.13] typing docs: Clarify Protocol / runtime_checkable docs (GH-132606) (#132607)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Wed, 16 Apr 2025 15:45:29 +0000 (17:45 +0200)]
[3.13] typing: Add missing test case for Protocol inheritance (GH-132597) (#132603)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 16 Apr 2025 14:21:58 +0000 (16:21 +0200)]
[3.13] gh-130052: Fix search_map_for_section() error handling (GH-132594) (#132598)
gh-130052: Fix search_map_for_section() error handling (GH-132594)
* Don't call close() if the file descriptor is negative.
* If close() fails, chain the existing exception.
(cherry picked from commit
014c7f90478780b18d0e33d456483178c8dcc665 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 16 Apr 2025 12:19:46 +0000 (14:19 +0200)]
[3.13] gh-130941: Fix `configparser` parsing values with `allow_no_value` and `interpolation` set (GH-130949) (#132588)
gh-130941: Fix `configparser` parsing values with `allow_no_value` and `interpolation` set (GH-130949)
(cherry picked from commit
c35c7353eb8fbccff2d3a6ab664426b31af00d4d )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Wed, 16 Apr 2025 11:06:53 +0000 (13:06 +0200)]
[3.13] gh-127591: Fix altering environment in test_urllib2 (unsetting no_proxy) (GH-132584) (GH-132585)
(cherry picked from commit
8b7cb947c5046d8fb32aad532048de87e09ed3f9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 16 Apr 2025 07:44:47 +0000 (09:44 +0200)]
[3.13] gh-132535: Fix resource warnings in test_timeout (GH-132572) (GH-132580)
They were emitted if internet connection was not available.
(cherry picked from commit
82f74eb2344cdb3197c726d1216e413ee61a30b3 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 15 Apr 2025 22:42:27 +0000 (00:42 +0200)]
[3.13] Docs: Synchronise ``indexsidebar.html`` with docsbuild-scripts (GH-132567) (#132573)
Docs: Synchronise ``indexsidebar.html`` with docsbuild-scripts (GH-132567)
(cherry picked from commit
4f10b93d1b2f887b42ad59168a9fcbe75bdaaf87 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 15 Apr 2025 19:05:28 +0000 (21:05 +0200)]
[3.13] gh-114713: Handle case of an empty string passed to `zoneinfo.ZoneInfo` (GH-114731) (#132563)
gh-114713: Handle case of an empty string passed to `zoneinfo.ZoneInfo` (GH-114731)
(cherry picked from commit
884df116d79b05d9342e05e50484d61c684ecb8b )
Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Tue, 15 Apr 2025 16:56:57 +0000 (18:56 +0200)]
[3.13] Fix argument order in multinomial() example (gh-132557) (gh-132560)
Miss Islington (bot) [Tue, 15 Apr 2025 11:38:20 +0000 (13:38 +0200)]
[3.13] gh-132176: Fix crash on `type()` when `tuple` subclass passed as `bases` (GH-132212) (#132548)
gh-132176: Fix crash on `type()` when `tuple` subclass passed as `bases` (GH-132212)
(cherry picked from commit
b6c552f9e614bab4acf21584baed997f57e74114 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
Serhiy Storchaka [Mon, 14 Apr 2025 18:59:07 +0000 (21:59 +0300)]
[3.13] gh-124476: Fix decoding from the locale encoding in the C.UTF-8 locale (GH-132477) (ПР-132528)
(cherry picked from commit
102f825c5112cbe6985edc0971822b07bd778135 )
Miss Islington (bot) [Mon, 14 Apr 2025 16:52:36 +0000 (18:52 +0200)]
[3.13] gh-131803: Clarify that you must register signal handlers for set_wakeup_fd (GH-131859) (#132522)
gh-131803: Clarify that you must register signal handlers for set_wakeup_fd (GH-131859)
(cherry picked from commit
939476bbbb57ec3348c60df7c8f67c92038c8c89 )
Co-authored-by: Jeremy Fleischman <jeremyfleischman@gmail.com>
Victor Stinner [Mon, 14 Apr 2025 16:48:40 +0000 (18:48 +0200)]
[3.13] gh-46236: Add missing PyUnicode_FromOrdinal() doc (#132040) (#132521)
gh-46236: Add missing PyUnicode_FromOrdinal() doc (#132040)
(cherry picked from commit
8768df2fe94a8444baff47a5b8c7414a2118731a )
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Serhiy Storchaka [Mon, 14 Apr 2025 16:36:04 +0000 (19:36 +0300)]
[3.13] gh-132099: Harmonize Bluetooth address handling (GH-132486) (GH-132497)
Now all protocols always accept the Bluetooth address as string and
getsockname() always returns the Bluetooth address as string.
* BTPROTO_SCO now accepts not only bytes, but str.
* BTPROTO_SCO now checks address for embedded null.
* On *BSD, BTPROTO_HCI now accepts str instead of bytes.
* On FreeBSD, getsockname() for BTPROTO_HCI now returns str instead of bytes.
* On NetBSD and DragonFly BSD, BTPROTO_HCI now checks address for embedded null.
(cherry picked from commit
1fc1df8dcc7a853b0649bc8df37cd07cbd2b6230 )
Miss Islington (bot) [Mon, 14 Apr 2025 15:29:20 +0000 (17:29 +0200)]
[3.13] gh-132515: de-duplicate `test_dataclass_derived_generic_from_slotted_base` (GH-132516) (#132518)
gh-132515: de-duplicate `test_dataclass_derived_generic_from_slotted_base` (GH-132516)
(cherry picked from commit
45c447bf91ffabe4c0ba6d18f37d4e58925d5c91 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Mon, 14 Apr 2025 11:42:45 +0000 (13:42 +0200)]
[3.13] gh-86513: improve docs of loop.call_exception_handler (GH-132466) (#132487)
gh-86513: improve docs of loop.call_exception_handler (GH-132466)
(cherry picked from commit
ce753517a87eec776c176f3245ce5d1554a59341 )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Tomas R. [Mon, 14 Apr 2025 07:21:36 +0000 (09:21 +0200)]
[3.13] gh-132435: Test syntax warnings in a finally block (GH-132436) (GH-132503)
(cherry picked from commit
887eabc5a74316708460120d60d0fa4f8bdf5960 )
Miss Islington (bot) [Mon, 14 Apr 2025 06:38:13 +0000 (08:38 +0200)]
[3.13] gh-124986: Fix test_no_leaking in test_subprocess on NetBSD and FreeBSD (GH-132476) (GH-132498)
On platforms where the file descriptor limit is larger than FD_SETSIZE
that test was always skipped (FreeBSD) or always failing (NetBSD).
(cherry picked from commit
f7b24ffefda839f367b048c06879df6bded128a1 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 13 Apr 2025 18:41:56 +0000 (20:41 +0200)]
[3.13] gh-101100: Fix sphinx warnings in `library/plistlib.rst` (GH-132422) (#132485)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Miss Islington (bot) [Sun, 13 Apr 2025 16:53:40 +0000 (18:53 +0200)]
[3.13] gh-132111: Document dataclasses.InitVar (GH-132446) (#132483)
gh-132111: Document dataclasses.InitVar (GH-132446)
(cherry picked from commit
281fc338fdf57ef119e213bf1b2c772261c359c1 )
Co-authored-by: Tapeline <mail@tapeline.dev>
Serhiy Storchaka [Sun, 13 Apr 2025 16:27:41 +0000 (19:27 +0300)]
[3.13] gh-132099: Fix documentation for the BTPROTO_HCI protocol (GH-132118) (GH-132482)
(cherry picked from commit
1d97488c957f4595f8c3ea42e24c1995b23e39d4 )
Vinay Sajip [Sun, 13 Apr 2025 12:00:50 +0000 (13:00 +0100)]
[3.13] gh-132106: Ensure that running `logging.handlers.QueueListener… (GH-132471)
Cherry-picked using
5863cd70b8782313b52bb8c71a4127d7ea4c50e9
Tomas R. [Sun, 13 Apr 2025 08:42:04 +0000 (10:42 +0200)]
[3.13] gh-131927: Prevent emitting compiler warnings twice (GH-131993) (GH-132463)
(cherry picked from commit
3d08c8ad20dfabd4864be139cd9c2eb5602ccdfe )
Miss Islington (bot) [Sun, 13 Apr 2025 07:41:26 +0000 (09:41 +0200)]
[3.13] gh-132354: document return value for `asyncio.Task.cancel` (GH-132374) (#132465)
gh-132354: document return value for `asyncio.Task.cancel` (GH-132374)
(cherry picked from commit
64b066ad298506f715647c9a2524c9fbbc764cc2 )
Co-authored-by: Felix Scherz <felixwscherz@gmail.com>
Miss Islington (bot) [Sun, 13 Apr 2025 07:24:46 +0000 (09:24 +0200)]
[3.13] Fix a typo in c-api/typeobj.rst (GH-132317) (#132464)
Fix a typo in c-api/typeobj.rst (GH-132317)
(cherry picked from commit
f69b344e0944bd8d59d2dc4d98e988cc4dbfadf3 )
Co-authored-by: Yongzi Li <1538321957@qq.com>
Serhiy Storchaka [Sat, 12 Apr 2025 22:22:41 +0000 (01:22 +0300)]
[3.13] gh-132429: Fix support of Bluetooth sockets on NetBSD and DragonFly BSD (GH-132431) (GH-132458)
Also fix a compiler warning on FreeBSD.
(cherry picked from commit
f2f86d3f459a89273ea22389bb57eed402908302 )
Kumar Aditya [Sat, 12 Apr 2025 18:20:24 +0000 (23:50 +0530)]
[3.13] gh-132213: use relaxed atomics for set hash (#132447)
Miss Islington (bot) [Sat, 12 Apr 2025 16:43:28 +0000 (18:43 +0200)]
[3.13] gh-132185: Speed up expanduser() test with large password database (GH-132231) (GH-132443)
Use only a limited number of randomly selected entries.
(cherry picked from commit
842ab815177549b9d4bec576d8f2c8f240b63506 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 12 Apr 2025 15:42:26 +0000 (17:42 +0200)]
[3.13] Docs: Fix specifications of `gcvisitobjects_t` (GH-132433) (#132441)
Docs: Fix specifications of `gcvisitobjects_t` (GH-132433)
`gcvisitobjects_t` callbacks should return 1 for the iteration to continue instead of 0.
(cherry picked from commit
1e5798e37255e921beae2aaa8329d5c48a2ef230 )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Miss Islington (bot) [Sat, 12 Apr 2025 12:25:51 +0000 (14:25 +0200)]
[3.13] gh-58211: Add tests for the `__self__` attribute of builtins functions (GH-113575) (#132437)
gh-58211: Add tests for the `__self__` attribute of builtins functions (GH-113575)
---------
(cherry picked from commit
891465fc7a6cf096d5d58db70532e2f3809b1c24 )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 12 Apr 2025 10:42:31 +0000 (12:42 +0200)]
[3.13] gh-123441: Update Belorussian spelling (GH-132409) (GH-132432)
(cherry picked from commit
ad3bbe8fbcc9045c436b0c5e49b1aec018c59c2d )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Sat, 12 Apr 2025 09:14:07 +0000 (11:14 +0200)]
[3.13] GH-132417: ctypes: Fix potential `Py_DECREF(NULL)` when handling functions returning `PyObject *` (GH-132418) (#132425)
GH-132417: ctypes: Fix potential `Py_DECREF(NULL)` when handling functions returning `PyObject *` (GH-132418)
Some functions (such as `PyErr_Occurred`) with a `restype` set to `ctypes.py_object` may return NULL without setting an exception.
(cherry picked from commit
2aab2db1461ef49b42549255af16a74b1bf8a5ef )
Co-authored-by: Nicolas Trangez <ikke@nicolast.be>
Miss Islington (bot) [Fri, 11 Apr 2025 15:24:16 +0000 (17:24 +0200)]
[3.13] gh-132356: Find the correct group name in test_group_no_follow_symlinks (GH-132357) (#132404)
gh-132356: Find the correct group name in test_group_no_follow_symlinks (GH-132357)
Find the correct group name in test_group_no_follow_symlinks
(cherry picked from commit
3e1a47bdb468d02665c137d84dd44500a557b58b )
Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
Miss Islington (bot) [Fri, 11 Apr 2025 15:10:14 +0000 (17:10 +0200)]
[3.13] CI: Update outdated references to Python version and GH issues (GH-132394) (#132402)
CI: Update outdated references to Python version and GH issues (GH-132394)
(cherry picked from commit
f23052591a60f588c432795f1ac687e709d97386 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Donghee Na [Fri, 11 Apr 2025 13:52:46 +0000 (06:52 -0700)]
[3.13] gh-130834: Fix free-threaded build with JIT for aarch64 linux (#132368)
* [3.13] gh-130834: Fix free-threaded build with JIT for arm
* lint
Miss Islington (bot) [Fri, 11 Apr 2025 13:00:34 +0000 (15:00 +0200)]
[3.13] gh-131127: Minimal build support on systems using LibreSSL (GH-131128) (GH-132392)
(cherry picked from commit
1b49c8c71b90bfa97df5633e2bbf51d4a6e22a57 )
Co-authored-by: Collin Funk <collin.funk1@gmail.com>
Miss Islington (bot) [Thu, 10 Apr 2025 15:15:58 +0000 (17:15 +0200)]
[3.13] gh-132316: Require `socket` and `GITHUB_TOKEN` env to use `GitHubArtifactDatabase` (GH-132348) (#132367)
gh-132316: Require `socket` and `GITHUB_TOKEN` env to use `GitHubArtifactDatabase` (GH-132348)
(cherry picked from commit
fcf2d07228ada64bc864380cd8e3e304d9768caa )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 10 Apr 2025 14:01:51 +0000 (16:01 +0200)]
[3.13] CI: set correct working directory for Hypothesis cache (GH-119345) (#132364)
CI: set correct working directory for Hypothesis cache (GH-119345)
Set cwd for Hypothesis database
(cherry picked from commit
055c739536ad63b55ad7cd0b91ccacc33064fe11 )
Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
Miss Islington (bot) [Thu, 10 Apr 2025 13:48:57 +0000 (15:48 +0200)]
[3.13] gh-106482: Clarify documentation of character set in RE (GH-106517) (#132365)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Martin Panter <vadmium@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 10 Apr 2025 12:20:36 +0000 (14:20 +0200)]
[3.13] gh-130320: gettext: Test fallback translations (GH-130321) (GH-132359)
(cherry picked from commit
4d58c8cb247b585051bfbacd79f77aafd18986b7 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Thu, 10 Apr 2025 12:13:50 +0000 (14:13 +0200)]
[3.13] Fix example code in curses tutorial (GH-126446) (#132362)
Co-authored-by: Jiayu Yi <yijiayu@gmail.com>
Miss Islington (bot) [Thu, 10 Apr 2025 11:57:40 +0000 (13:57 +0200)]
[3.13] Docs: Add a missing trailing full stop (GH-130561) (#132358)
Co-authored-by: Liam DeVoe <orionldevoe@gmail.com>
Miss Islington (bot) [Thu, 10 Apr 2025 11:27:20 +0000 (13:27 +0200)]
[3.13] gh-72631: Fix wrong documentation for GzipFile.peek (GH-29820) (#132353)
Co-authored-by: 180909 <wjh180909@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Adam Turner [Thu, 10 Apr 2025 05:39:46 +0000 (06:39 +0100)]
[3.13] Generate social media preview cards for the documentation (GH-132101) (#132344)
Miss Islington (bot) [Wed, 9 Apr 2025 22:47:32 +0000 (00:47 +0200)]
[3.13] Escape hyphens in manpage (GH-132291) (#132334)
Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
Miss Islington (bot) [Wed, 9 Apr 2025 21:57:54 +0000 (23:57 +0200)]
[3.13] Remove a duplicate word in the Makefile (GH-132301) (#132325)
Co-authored-by: Chu <tomzz233333@gmail.com>
Miss Islington (bot) [Wed, 9 Apr 2025 18:44:49 +0000 (20:44 +0200)]
[3.13] gh-130587: Invoke regen-token rst with rstfile as an argument (GH-132304) (#132327)
Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
Miss Islington (bot) [Wed, 9 Apr 2025 10:50:24 +0000 (12:50 +0200)]
[3.13] gh-131434: Improve error reporting for incorrect format in strptime() (GH-131568) (GH-132309)
In particularly, fix regression in detecting stray % at the end of the
format string.
(cherry picked from commit
3feac7a093b3fcd549c5dc54277f26f585f2ab0c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Wed, 9 Apr 2025 09:18:31 +0000 (12:18 +0300)]
[3.13] gh-130631: Make join_header_words() more similar to the original Perl version (GH-130632) (GH-132303)
* Always quote strings with non-ASCII characters.
* Allow some non-separator and non-control characters (like "." or "-")
be unquoted.
* Always quote strings that end with "\n".
* Use the fullmatch() method for clarity and optimization.
(cherry picked from commit
7ebbd271444d89218870169624921b795a717470 )
Miss Islington (bot) [Tue, 8 Apr 2025 23:37:26 +0000 (01:37 +0200)]
[3.13] gh-131507: Add a way to recreate the `Misc/mypy` symlinks if missing (GH-132274) (#132293)
They will be removed in source tarballs so they don't appear in the SBOM.
(cherry picked from commit
16dcb576f7623e19f22be631bbc0e565335da969 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Tue, 8 Apr 2025 21:28:35 +0000 (23:28 +0200)]
[3.13] gh-106670: Fix a typo in doc of pdb's exceptions command (GH-132277) (#132279)
gh-106670: Fix a typo in doc of pdb's exceptions command (GH-132277)
(cherry picked from commit
efd8aca62c214dde6115822a659403fb05340680 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Tue, 8 Apr 2025 21:19:40 +0000 (23:19 +0200)]
[3.13] gh-132250: Clear error in lsprof callback when method descriptor raises an excep… (GH-132251) (#132281)
gh-132250: Clear error in lsprof callback when method descriptor raises an excep… (GH-132251)
(cherry picked from commit
ab64130b572424695bf072f7608a536997dce14f )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Thomas Wouters [Tue, 8 Apr 2025 17:22:26 +0000 (19:22 +0200)]
Merge branch '3.13' of https://github.com/python/cpython into 3.13
Thomas Wouters [Tue, 8 Apr 2025 17:19:59 +0000 (19:19 +0200)]
Post 3.13.3
Miss Islington (bot) [Tue, 8 Apr 2025 15:36:52 +0000 (17:36 +0200)]
[3.13] gh-132063: ensure that `ProcessPoolExecutor` does not swallow falsey exceptions (GH-132129) (#132275)
gh-132063: ensure that `ProcessPoolExecutor` does not swallow falsey exceptions (GH-132129)
(cherry picked from commit
933c6653cba235b3af2250bb19713694b560c367 )
Co-authored-by: Duprat <yduprat@gmail.com>
Thomas Wouters [Tue, 8 Apr 2025 13:53:49 +0000 (15:53 +0200)]
Python 3.13.3
Miss Islington (bot) [Tue, 8 Apr 2025 11:19:40 +0000 (13:19 +0200)]
[3.13] gh-117779: Fix reading duplicated entries in zipfile by name (GH-129254) (GH-132263)
(cherry picked from commit
0f04f2456a2ff996cc670342a287928ab5f9b706 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Peter Bierma [Tue, 8 Apr 2025 11:02:29 +0000 (07:02 -0400)]
[3.13] gh-131998: Fix `NULL` dereference when using an unbound method descriptor in a specialized code path (GH-132000) (#132262)
(cherry picked from commit
ac3c439cdfee8452f2bcceacd67a1f4e423ac3cf )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Mark Shannon <mark@hotpy.org>
Serhiy Storchaka [Tue, 8 Apr 2025 10:43:04 +0000 (13:43 +0300)]
[3.13] gh-71339: Use new assertion methods in test_import and test_importlib (GH-129052) (#129123)
(cherry picked from commit
f7cc7d296c2cbb33d3f0bde4ace82e8569f7dbc3 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 8 Apr 2025 10:31:47 +0000 (12:31 +0200)]
[3.13] gh-102136: Add -m to options that work with -i (GH-119271) (GH-119285)
(cherry picked from commit
172690227e771c2e8ab137815073e3a172c08dec )
Co-authored-by: Melanie Arbor <hellomelaniec@gmail.com>
Miss Islington (bot) [Tue, 8 Apr 2025 09:08:06 +0000 (11:08 +0200)]
[3.13] gh-130164: Fix inspect.Signature.bind() handling of positional-only args without defaults (GH-130192) (GH-130271)
Follow-up to
9c15202 .
(cherry picked from commit
dab456dcefd886bde44eb204dc6f1b2f14de0e9d )
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Miss Islington (bot) [Tue, 8 Apr 2025 08:51:39 +0000 (10:51 +0200)]
[3.13] gh-132021: Add bool type to the list of allowed JSON key types (GH-132048) (#132255)
gh-132021: Add bool type to the list of allowed JSON key types (GH-132048)
(cherry picked from commit
403886c28ddb350bbcaea478f8d754ed14e10337 )
Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
sobolevn [Tue, 8 Apr 2025 08:47:24 +0000 (11:47 +0300)]
[3.13] gh-130775: Allow negative locations in `ast` (GH-130795) (#132243)
(cherry picked from commit
bc5233b6a5cdd8f77a4737ce317f94110869c082 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 8 Apr 2025 08:46:13 +0000 (10:46 +0200)]
[3.13] gh-132174: Fix function name in error message of `_interpreters.run_string` (GH-132175) (#132209)
gh-132174: Fix function name in error message of `_interpreters.run_string` (GH-132175)
(cherry picked from commit
f2daa96c81a45b26bdcf3d5c3887cec02137974e )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Miss Islington (bot) [Tue, 8 Apr 2025 08:45:21 +0000 (10:45 +0200)]
[3.13] gh-115684: Clarify datetime `replace` documentation (GH-116519) (#131676)
gh-115684: Clarify datetime `replace` documentation (GH-116519)
* Clarify datetime `replace` documentation
In GH-115684, HopedForLuck noted that `datetime.date.replace()`
documentation was confusing because it looked like it would be changing
immutable objects.
This documentation change specifies that the `replace()` methods in
`datetime` return new objects. This uses similar wording to the
documentation for `datetime.combine()`, which specifies that a new
datetime is returned. This is also similar to wording for
`string.replace()`, except `string.replace()` emphasizes that a "copy"
is returned.
Resolves GH-115684.
* Include reviewer comments
Thanks Privat33r-dev for the comments!
---------
(cherry picked from commit
d2d886215cf694d5f3e7f0cbd76507a96bac322b )
Co-authored-by: David Lowry-Duda <david@lowryduda.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
Miss Islington (bot) [Tue, 8 Apr 2025 07:51:18 +0000 (09:51 +0200)]
[3.13] Add psfhosted Plausible instance to analytics (GH-132252) (#132253)
Add psfhosted Plausible instance to analytics (GH-132252)
(cherry picked from commit
40844164b1d1d0f072990ff94202c348771676d6 )
Co-authored-by: Ee Durbin <ewdurbin@gmail.com>