Commit Graph

124171 Commits

Author SHA1 Message Date
Miss Islington (bot) ff3f6588c3
[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 014c7f9047)

Co-authored-by: Victor Stinner <vstinner@python.org>
2025-04-16 14:21:58 +00:00
Miss Islington (bot) ee8f681252
[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 c35c7353eb)

Co-authored-by: sobolevn <mail@sobolevn.me>
2025-04-16 14:19:46 +02:00
Miss Islington (bot) 8128bcfa08
[3.13] gh-127591: Fix altering environment in test_urllib2 (unsetting no_proxy) (GH-132584) (GH-132585)
(cherry picked from commit 8b7cb947c5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-04-16 11:06:53 +00:00
Miss Islington (bot) 08faa2aeac
[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 82f74eb234)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-04-16 07:44:47 +00:00
Miss Islington (bot) 2a1a337d28
[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 4f10b93d1b)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-04-15 23:42:27 +01:00
Miss Islington (bot) a3a3bfd01c
[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 884df116d7)

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>
2025-04-15 19:05:28 +00:00
Miss Islington (bot) 11617d5a7f
[3.13] Fix argument order in multinomial() example (gh-132557) (gh-132560) 2025-04-15 16:56:57 +00:00
Miss Islington (bot) 6d48194d9f
[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 b6c552f9e6)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-04-15 11:38:20 +00:00
Serhiy Storchaka f218549afc
[3.13] gh-124476: Fix decoding from the locale encoding in the C.UTF-8 locale (GH-132477) (ПР-132528)
(cherry picked from commit 102f825c51)
2025-04-14 18:59:07 +00:00
Miss Islington (bot) bdff88b9aa
[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 939476bbbb)

Co-authored-by: Jeremy Fleischman <jeremyfleischman@gmail.com>
2025-04-14 16:52:36 +00:00
Victor Stinner 866b6359e5
[3.13] gh-46236: Add missing PyUnicode_FromOrdinal() doc (#132040) (#132521)
gh-46236: Add missing PyUnicode_FromOrdinal() doc (#132040)

(cherry picked from commit 8768df2fe9)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
2025-04-14 16:48:40 +00:00
Serhiy Storchaka d321b6ec82
[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 1fc1df8dcc)
2025-04-14 19:36:04 +03:00
Miss Islington (bot) a50aa3325b
[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 45c447bf91)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-04-14 15:29:20 +00:00
Miss Islington (bot) fd0bba67c4
[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 ce753517a8)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-04-14 11:42:45 +00:00
Tomas R. 5f1eaff5b5
[3.13] gh-132435: Test syntax warnings in a finally block (GH-132436) (GH-132503)
(cherry picked from commit 887eabc5a7)
2025-04-14 10:21:36 +03:00
Miss Islington (bot) ff9198dab3
[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 f7b24ffefd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-04-14 06:38:13 +00:00
Miss Islington (bot) f206b98c18
[3.13] gh-101100: Fix sphinx warnings in `library/plistlib.rst` (GH-132422) (#132485)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
2025-04-13 18:41:56 +00:00
Miss Islington (bot) d021b719ed
[3.13] gh-132111: Document dataclasses.InitVar (GH-132446) (#132483)
gh-132111: Document dataclasses.InitVar (GH-132446)
(cherry picked from commit 281fc338fd)

Co-authored-by: Tapeline <mail@tapeline.dev>
2025-04-13 16:53:40 +00:00
Serhiy Storchaka 54e1b63333
[3.13] gh-132099: Fix documentation for the BTPROTO_HCI protocol (GH-132118) (GH-132482)
(cherry picked from commit 1d97488c95)
2025-04-13 16:27:41 +00:00
Vinay Sajip 1dcdac6e08
[3.13] gh-132106: Ensure that running `logging.handlers.QueueListener… (GH-132471)
Cherry-picked using 5863cd70b8
2025-04-13 13:00:50 +01:00
Tomas R. 4ff5d88fb1
[3.13] gh-131927: Prevent emitting compiler warnings twice (GH-131993) (GH-132463)
(cherry picked from commit 3d08c8ad20)
2025-04-13 08:42:04 +00:00
Miss Islington (bot) ff66901d8a
[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 64b066ad29)

Co-authored-by: Felix Scherz <felixwscherz@gmail.com>
2025-04-13 07:41:26 +00:00
Miss Islington (bot) 244a642443
[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 f69b344e09)

Co-authored-by: Yongzi Li <1538321957@qq.com>
2025-04-13 07:24:46 +00:00
Serhiy Storchaka 5be7505730
[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 f2f86d3f45)
2025-04-13 01:22:41 +03:00
Kumar Aditya 67b1c765ef
[3.13] gh-132213: use relaxed atomics for set hash (#132447) 2025-04-12 18:20:24 +00:00
Miss Islington (bot) f943376ca8
[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 842ab81517)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-04-12 16:43:28 +00:00
Miss Islington (bot) 1884a3bbd1
[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 1e5798e372)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
2025-04-12 15:42:26 +00:00
Miss Islington (bot) 70c4bd63d4
[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 891465fc7a)

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>
2025-04-12 12:25:51 +00:00
Miss Islington (bot) 17b61394ee
[3.13] gh-123441: Update Belorussian spelling (GH-132409) (GH-132432)
(cherry picked from commit ad3bbe8fbc)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-04-12 10:42:31 +00:00
Miss Islington (bot) 0aabe44fa8
[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 2aab2db146)

Co-authored-by: Nicolas Trangez <ikke@nicolast.be>
2025-04-12 09:14:07 +00:00
Miss Islington (bot) 089c43f160
[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 3e1a47bdb4)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
2025-04-11 15:24:16 +00:00
Miss Islington (bot) d8de992de2
[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 f23052591a)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-04-11 15:10:14 +00:00
Donghee Na 793293dcb9
[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
2025-04-11 06:52:46 -07:00
Miss Islington (bot) 88c1ca9eba
[3.13] gh-131127: Minimal build support on systems using LibreSSL (GH-131128) (GH-132392)
(cherry picked from commit 1b49c8c71b)

Co-authored-by: Collin Funk <collin.funk1@gmail.com>
2025-04-11 13:00:34 +00:00
Miss Islington (bot) 2b61f6ac39
[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 fcf2d07228)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-10 15:15:58 +00:00
Miss Islington (bot) ce921075e8
[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 055c739536)

Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
2025-04-10 14:01:51 +00:00
Miss Islington (bot) c1744902c7
[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>
2025-04-10 13:48:57 +00:00
Miss Islington (bot) 6c8d527937
[3.13] gh-130320: gettext: Test fallback translations (GH-130321) (GH-132359)
(cherry picked from commit 4d58c8cb24)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
2025-04-10 12:20:36 +00:00
Miss Islington (bot) fc85256f89
[3.13] Fix example code in curses tutorial (GH-126446) (#132362)
Co-authored-by: Jiayu Yi <yijiayu@gmail.com>
2025-04-10 12:13:50 +00:00
Miss Islington (bot) 8e017f2f48
[3.13] Docs: Add a missing trailing full stop (GH-130561) (#132358)
Co-authored-by: Liam DeVoe <orionldevoe@gmail.com>
2025-04-10 11:57:40 +00:00
Miss Islington (bot) b328e4bc57
[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>
2025-04-10 11:27:20 +00:00
Adam Turner f24f241802
[3.13] Generate social media preview cards for the documentation (GH-132101) (#132344) 2025-04-10 06:39:46 +01:00
Miss Islington (bot) f30a2512d2
[3.13] Escape hyphens in manpage (GH-132291) (#132334)
Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
2025-04-09 22:47:32 +00:00
Miss Islington (bot) c2538bf77f
[3.13] Remove a duplicate word in the Makefile (GH-132301) (#132325)
Co-authored-by: Chu <tomzz233333@gmail.com>
2025-04-09 22:57:54 +01:00
Miss Islington (bot) 70f04ea404
[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>
2025-04-09 18:44:49 +00:00
Miss Islington (bot) e2d13b42ff
[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 3feac7a093)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-04-09 10:50:24 +00:00
Serhiy Storchaka 8e97bd7ef4
[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 7ebbd27144)
2025-04-09 09:18:31 +00:00
Miss Islington (bot) 099b3013fa
[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 16dcb576f7)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-04-09 01:37:26 +02:00
Miss Islington (bot) c3c8e31547
[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 efd8aca62c)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2025-04-08 21:28:35 +00:00
Miss Islington (bot) 10fe658f34
[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 ab64130b57)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2025-04-08 17:19:40 -04:00