]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 14 Mar 2023 18:52:33 +0000 (11:52 -0700)]
[3.11] gh-102354: change python3 to python in docs examples (GH-102696) (#102697)
gh-102354: change python3 to python in docs examples (GH-102696)
(cherry picked from commit
80abd62647b2a36947a11a6a8e395061be6f0c61 )
Co-authored-by: Paul Watson <paul.hermeneutic@gmail.com>
Miss Islington (bot) [Tue, 14 Mar 2023 09:32:09 +0000 (02:32 -0700)]
gh-100315: clarification to `__slots__` docs. (GH-102621)
refer to tp_itemsize in discussion on "variable-length" built-in types
(cherry picked from commit
88c262c086077377b40dfae5e46f597e28ffe3c9 )
Co-authored-by: T <tnie@tuta.io>
Miss Islington (bot) [Tue, 14 Mar 2023 02:26:11 +0000 (19:26 -0700)]
doc: Remove a duplicate 'versionchanged' in library/asyncio-task (gh-102677)
(cherry picked from commit
7bdb331b67c4aee513e01794ba7dd2c3be43d3ca )
Co-authored-by: Joongi Kim <me@daybreaker.info>
Miss Islington (bot) [Mon, 13 Mar 2023 22:43:16 +0000 (15:43 -0700)]
gh-102627: Replace address pointing toward malicious web page (GH-102630)
* Replace known bad address pointing toward a malicious web page.
(cherry picked from commit
61479d46848bc7a7f9b571b0b09c4a4b4436d839 )
Co-authored-by: Blind4Basics <32236948+Blind4Basics@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 13 Mar 2023 22:17:46 +0000 (15:17 -0700)]
[3.11] gh-102069: Fix `__weakref__` descriptor generation for custom dataclasses (GH-102075) (#102662)
gh-102069: Fix `__weakref__` descriptor generation for custom dataclasses (GH-102075)
(cherry picked from commit
d97757f793ea53dda3cc6882b4a92d3e921b17c9 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Alex Waygood [Mon, 13 Mar 2023 14:31:50 +0000 (14:31 +0000)]
[3.11] Fix duplicated words in the docs (#102644)
(cherry-picked from commit
f6ca71a422 )
With grep utility found some duplicated words
Co-authored-by: Виталий Дмитриев <vitaldmit@bk.ru>
Miss Islington (bot) [Mon, 13 Mar 2023 13:42:30 +0000 (06:42 -0700)]
Fix broken link to MSDN (GH-102355)
(cherry picked from commit
9a8b66b58c74236959a01d579e2c156d9c2e7cb3 )
Co-authored-by: 谭九鼎 <109224573@qq.com>
Miss Islington (bot) [Mon, 13 Mar 2023 11:33:38 +0000 (04:33 -0700)]
gh-101100: Fix Sphinx warnings in `turtle` module (GH-102340)
(cherry picked from commit
78e4e6c3d71980d4e6687f07afa6ddfc83e29b04 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Sun, 12 Mar 2023 23:40:56 +0000 (16:40 -0700)]
GH-101673: Fix pdb bug where local variable changes are lost after longlist (GH-101674)
(cherry picked from commit
5d677c556f03a34d1c2d86e4cc96025870c20c12 )
Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Sun, 12 Mar 2023 17:00:04 +0000 (10:00 -0700)]
[3.11] Fixes duplicated word (GH-102623) (#102624)
Fixes duplicated word (GH-102623)
In line 1627, the end of the sentence reads "only that that it may be." but it should read "only that it may be" (or alternatively "only that that may be").
(cherry picked from commit
e6210621bee4ac10e18b4adc11229b8cc1ee788d )
Co-authored-by: Guido van Rossum <guido@python.org>
Co-authored-by: Hugo Gabriel Eyherabide <hugogabriel.eyherabide@gmail.com>
Irit Katriel [Sat, 11 Mar 2023 15:01:01 +0000 (15:01 +0000)]
[3.11] gh-102493: backport unit test for PyErr_SetObject (#102602)
gh-102493: backport unit test for PyErr_SetObject
Miss Islington (bot) [Sat, 11 Mar 2023 01:46:04 +0000 (17:46 -0800)]
gh-102433: Add tests for how classes with properties interact with `isinstance()` checks on `typing.runtime_checkable` protocols (GH-102449)
(cherry picked from commit
5ffdaf748d98da6065158534720f1996a45a0072 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Carl Meyer <carl@oddbird.net>
Miss Islington (bot) [Fri, 10 Mar 2023 15:54:45 +0000 (07:54 -0800)]
GH-102537: Handle check for PYTHONTZPATH failing in zoneinfo test (GH-102538)
It is possible but unlikely for the `python_tzpath_context` function to fail between the start of the `try` block and the point where `os.environ.get` succeeds, in which case `old_env` will be undefined. In this case, we want to take no action.
Practically speaking this will really only happen in an error condition anyway, so it doesn't really matter, but we should probably do it right anyway.
(cherry picked from commit
64bde502cf89963bc7382b03ea9e1c0967d22e35 )
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
Miss Islington (bot) [Fri, 10 Mar 2023 12:30:24 +0000 (04:30 -0800)]
gh-86509: Add link to Lib/_threading_local.py in threading docs (GH-101824)
(cherry picked from commit
53dceb53ade15587b9cfd30c0a0942232517dee9 )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Wed, 8 Mar 2023 08:30:44 +0000 (00:30 -0800)]
gh-101100: Fix sphinx warnings in `zipapp` and `zipfile` modules (GH-102526)
(cherry picked from commit
1f557f94c2ee98c2a43bd090a7bf3f39a22ed874 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Wed, 8 Mar 2023 08:26:20 +0000 (00:26 -0800)]
GH-102397: Fix segfault from race condition in signal handling (GH-102399)
(cherry picked from commit
1a84cc007e207f2dd61f86a7fc3d86632fdce72f )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Wed, 8 Mar 2023 07:33:52 +0000 (23:33 -0800)]
Fix style in argparse.rst (GH-101733)
(cherry picked from commit
061325e0d2bbec6ff89d03f527c91dc7bfa14003 )
Co-authored-by: Marcin Wieczorek <marcin@marcin.co>
Miss Islington (bot) [Tue, 7 Mar 2023 03:08:14 +0000 (19:08 -0800)]
[3.11] gh-95913: Edit Faster CPython section in 3.11 WhatsNew (GH-98429) (GH-102490)
gh-95913: Edit Faster CPython section in 3.11 WhatsNew (GH-98429)
(cherry picked from commit
80b19a30c0d5f9f8a8651e7f8847c0e68671c89a )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 7 Mar 2023 01:31:48 +0000 (17:31 -0800)]
[3.11] gh-101759: Update macOS installer SQLite 3.40.1 checksum (gh-102485) (GH-102488)
(cherry picked from commit
f9cdeb7b99d408a2e884101ede576952510bcc9b )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Mon, 6 Mar 2023 21:53:47 +0000 (13:53 -0800)]
Add gettext support to tools/extensions/c_annotations.py (GH-101989)
(cherry picked from commit
d959bcd4a0393a120fa12c034de4041037d171c3 )
Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Pablo Galindo Salgado [Mon, 6 Mar 2023 17:13:28 +0000 (18:13 +0100)]
[3.11] gh-102416: Do not memoize incorrectly loop rules in the parser (GH-102467). (#102473)
Miss Islington (bot) [Sun, 5 Mar 2023 22:00:56 +0000 (14:00 -0800)]
gh-102444: Fix minor bugs in `test_typing` highlighted by pyflakes (GH-102445)
(cherry picked from commit
96e10229292145012bc462a6ab3ce1626c8acf71 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sun, 5 Mar 2023 17:55:18 +0000 (09:55 -0800)]
GH-102341: Improve the test function for pow (GH-102342)
(cherry picked from commit
32220543e2db36c6146ff2704ed1714a6adecc1b )
Co-authored-by: Partha P. Mukherjee <ppm.floss@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 5 Mar 2023 15:31:42 +0000 (07:31 -0800)]
Fix unused classes in a typing test (GH-102437)
As part of investigation issue https://github.com/python/cpython/issues/102433, I discovered what I believe to be an error where two classes `CI` and `DI` are not being used. The assertions beneath them act on `C` and `D`, duplicating existing assertions in this test.
(cherry picked from commit
7894bbe94ba319eb650f383cb5196424c77b2cfd )
Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Automerge-Triggered-By: GH:AlexWaygood
Miss Islington (bot) [Sun, 5 Mar 2023 15:18:34 +0000 (07:18 -0800)]
gh-101979: argparse: fix a bug where parentheses in metavar argument of add_argument() were dropped (GH-102318)
(cherry picked from commit
9a478be1a4314734c697dda7a7b0e633a6fb0751 )
Co-authored-by: Yeojin Kim <yeojin.dev@gmail.com>
Miss Islington (bot) [Sun, 5 Mar 2023 11:25:48 +0000 (03:25 -0800)]
gh-102356: Add thrashcan macros to filter object dealloc (GH-102426)
Add thrashcan macros to the deallocator of the filter objects to protect against deeply nested destruction of chains of nested filters.
(cherry picked from commit
66aa78cbe604a7c5731f074b869f92174a8e3b64 )
Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
Miss Islington (bot) [Sun, 5 Mar 2023 09:42:36 +0000 (01:42 -0800)]
[3.11] Move around example in to_bytes() to avoid confusion (GH-101595) (#102434)
Move around example in to_bytes() to avoid confusion (GH-101595)
Moves an example to be closer to the sentence that refers to it.
(cherry picked from commit
5da379ca7dff44b321450800252be01041b3320b )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Sun, 5 Mar 2023 06:36:00 +0000 (22:36 -0800)]
gh-101992: update pstlib module documentation (GH-102133)
(cherry picked from commit
e4609cbe4ca2d3d4fc07c19a7d0bdec52f054c63 )
Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
Ilya Kulakov [Sat, 4 Mar 2023 21:36:42 +0000 (13:36 -0800)]
[3.11] Clarify re docs for byte pattern group names (GH-99308) (#101001)
Fix wording of the deprecation notice in re for 3.11
Miss Islington (bot) [Sat, 4 Mar 2023 14:55:02 +0000 (06:55 -0800)]
gh-102179: Fix `os.dup2` error reporting for negative fds (GH-102180)
(cherry picked from commit
c2bd55d26f8eb2850eb9f9026b5d7f0ed1420b65 )
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Miss Islington (bot) [Sat, 4 Mar 2023 14:46:17 +0000 (06:46 -0800)]
gh-101892: Fix `SystemError` when a callable iterator call exhausts the iterator (GH-101896)
(cherry picked from commit
705487c6557c3d8866622b4d32528bf7fc2e4204 )
Co-authored-by: Raj <51259329+workingpayload@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Fri, 3 Mar 2023 17:27:20 +0000 (09:27 -0800)]
gh-102383: [docs] Arguments of `PyObject_CopyData` are `PyObject *` (GH-102390)
(cherry picked from commit
7b9132057d8f176cb9c40e8324f5122a3132ee58 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 3 Mar 2023 11:00:06 +0000 (03:00 -0800)]
gh-101754: Document that Windows converts keys in `os.environ` to uppercase (GH-101840)
(cherry picked from commit
4e7c0cbf59595714848cf9827f6e5b40c3985924 )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Alex Waygood [Thu, 2 Mar 2023 16:00:06 +0000 (16:00 +0000)]
[3.11] Fix typos in documentation and comments (GH-102374) (#102376)
[3.11] Fix typos in documentation and comments (GH-102374)
Found some duplicate `to`s in the documentation and some code comments and fixed them.
[Misc/NEWS.d/3.12.0a1.rst](https://github.com/python/cpython/blob/
ed55c69ebd74178115cd8b080f7f8e7588cd5fda /Misc/NEWS.d/3.12.0a1.rst) also contains two duplicate `to`s, but I wasn't sure if it's ok to touch that file. Looks auto generated. I'm happy to amend the PR if requested. :)
Automerge-Triggered-By: GH:AlexWaygood
Co-authored-by: Michael K <michael-k@users.noreply.github.com>
Hugo van Kemenade [Thu, 2 Mar 2023 05:43:44 +0000 (07:43 +0200)]
[3.11] gh-90744: Fix erroneous doc links in the sys module (GH-101319) (#102321)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Brad Wolfe <brad.wolfe@gmail.com>
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Fix erroneous doc links in the sys module (#101319)
Miss Islington (bot) [Thu, 2 Mar 2023 03:52:37 +0000 (19:52 -0800)]
[3.11] gh-102088 Optimize iter_index itertools recipe (GH-102360) (GH-102363)
Inada Naoki [Wed, 1 Mar 2023 01:19:16 +0000 (10:19 +0900)]
Doc: Fix minor error in ePub (GH-100614)
Fix issue reported https://mail.python.org/archives/list/docs@python.org/message/KE7OIAO53P4XRC4ZOWPDHA63ZQJCHEC3/
(cherry picked from commit
7d1d66341838d7d1963c9ee7ffca2950d3a751fd )
Miss Islington (bot) [Tue, 28 Feb 2023 06:41:20 +0000 (22:41 -0800)]
IDLE: Simplify DynOptionsMenu __init__code (GH-101371)
Refactor DynOptionMenu's initializer to not copy kwargs dict and use subscripting;
improve its htest.
(cherry picked from commit
c41af812c948ec3cb07b2ef7a46a238f5cab3dc2 )
Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 27 Feb 2023 15:21:27 +0000 (07:21 -0800)]
gh-102296 Document that inspect.Parameter kinds support ordering (GH-102297)
(cherry picked from commit
0db6f442598a1994c37f24e704892a2bb71a0a1b )
Co-authored-by: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com>
Automerge-Triggered-By: GH:AlexWaygood
Miss Islington (bot) [Mon, 27 Feb 2023 07:33:05 +0000 (23:33 -0800)]
gh-101100: Fix sphinx warnings in `types` module (GH-102274)
(cherry picked from commit
101a12c5767a8c6ca6e32b8e24a462d2606d24ca )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sun, 26 Feb 2023 23:09:18 +0000 (15:09 -0800)]
gh-101765: unicodeobject: use Py_XDECREF correctly (GH-102283)
(cherry picked from commit
8d0f09b1beafd95763a5da53acc58dac0bd63a53 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Mark Dickinson [Sun, 26 Feb 2023 14:55:44 +0000 (14:55 +0000)]
[3.11] Add missing 'is' to `cmath.log()` docstring (GH-102049) (#102279)
Fix missing 'is' in cmath.log() docstring.
(cherry picked from commit
71f614ef2a3d66213b9cae807cbbc1ed03741221 )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Sun, 26 Feb 2023 13:28:55 +0000 (05:28 -0800)]
[3.11] [doc] Improve grammar/fix missing word (GH-102060) (GH-102277)
[doc] Improve grammar/fix missing word (GH-102060)
(cherry picked from commit
6daf42b28e1c6d5f0c1a6350cfcc382789e11293 )
Co-authored-by: VMan <vayidm@users.noreply.github.com>
Miss Islington (bot) [Sun, 26 Feb 2023 11:55:25 +0000 (03:55 -0800)]
[3.11] gh-85417: Clarify behaviour on branch cuts in cmath module (GH-102046) (#102276)
gh-85417: Clarify behaviour on branch cuts in cmath module (GH-102046)
This PR updates the cmath module documentation to reflect the reality that Python is almost always (and as far as I can tell, that "almost" can be omitted) running on a machine whose C double supports signed zeros.
* Removes misleading references to functions being continuous from above / below / the left / the right at branch cuts
* Expands the note on branch cuts at the top of the module documentation to explain the double-sided sign-of-zero-based behaviour
(cherry picked from commit
b513c46d998344dc07eb6d510782c2e23d2b859e )
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Miss Islington (bot) [Sun, 26 Feb 2023 02:32:42 +0000 (18:32 -0800)]
gh-102259: Fix re doc issue regarding right square brackets (GH-102264)
(cherry picked from commit
bcadcde7122f6d3d08b35671d67e105149371a2f )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Jelle Zijlstra [Sun, 26 Feb 2023 00:38:19 +0000 (16:38 -0800)]
[3.11] gh-101765: Fix refcount issues in list and unicode pickling (GH-102265) (#102268)
(cherry picked from commit
d71edbd1b7437706519a9786211597d95934331a )
Shantanu [Sat, 25 Feb 2023 23:42:30 +0000 (15:42 -0800)]
[3.11] GH-99818: improve the documentation for zipfile.Path and Traversable (GH-101589) (#102266)
Automerge-Triggered-By: GH:FFY00
(cherry picked from commit
84181c14040ed2befe7f1a55b4f560c80fa61154 )
Co-authored-by: Filipe Laíns <lains@riseup.net>
Miss Islington (bot) [Sat, 25 Feb 2023 21:55:49 +0000 (13:55 -0800)]
gh-101100: Fix sphinx warnings in `typing` module docs (GH-102260)
(cherry picked from commit
a498de4c0ef9e264cab3320afbc4d38df6394800 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 25 Feb 2023 21:15:45 +0000 (13:15 -0800)]
gh-102252: Improve coverage of test_bool.py (GH-102253)
Add tests for conversion from bool to complex.
(cherry picked from commit
41970436373f4be813fe8f5a07b6da04d5f4c80e )
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Kumar Aditya [Sat, 25 Feb 2023 15:30:05 +0000 (21:00 +0530)]
[3.11] GH-102126: fix deadlock at shutdown when clearing thread state… (#102234)
[3.11] GH-102126: fix deadlock at shutdown when clearing thread states (GH-102222)
(cherry picked from commit
5f11478ce7fda826d399530af4c5ca96c592f144 )
Miss Islington (bot) [Sat, 25 Feb 2023 13:29:35 +0000 (05:29 -0800)]
asyncio docs: Fix dangling hyphen (GH-102227)
Currently this gets rendered with a dangling hyphen.
(cherry picked from commit
207e1c5cae11108213dff5ff07443ee4cfa0d2ea )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sat, 25 Feb 2023 09:58:52 +0000 (01:58 -0800)]
gh-101100: Fix Sphinx warnings in `decimal` module (GH-102125)
(cherry picked from commit
b7c11264476ccc11e4bdf4bd3c3664ccd1b7c5f9 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Ionite [Sat, 25 Feb 2023 03:49:59 +0000 (22:49 -0500)]
[3.11] gh-101765: Fix SystemError / segmentation fault in iter `__reduce__` when internal access of `builtins.__dict__` exhausts the iterator (GH-101769) (#102228)
(cherry picked from commit
54dfa14c5a94b893b67a4d9e9e403ff538ce9023 )
Miss Islington (bot) [Sat, 25 Feb 2023 02:55:48 +0000 (18:55 -0800)]
[3.11] gh-95675: fix uid and gid at test_add_dir_getmember (gh-102207) (gh-102231)
gh-95675: fix uid and gid at test_add_dir_getmember (gh-102207)
(cherry picked from commit
56e93c8020e89e1712aa238574bca2076a225028 )
Co-authored-by: Seonkyo Ok <seonkyo.ok@linecorp.com>
Miss Islington (bot) [Fri, 24 Feb 2023 16:21:40 +0000 (08:21 -0800)]
gh-102105 Fix wording in filterfalse/quantify/filter (GH-102189)
(cherry picked from commit
81bf10e4f20a0f6d36b67085eefafdf7ebb97c33 )
Co-authored-by: Stefan Pochmann <609905+pochmann@users.noreply.github.com>
Miss Islington (bot) [Fri, 24 Feb 2023 02:54:47 +0000 (18:54 -0800)]
gh-102158: Add tests for `softkwlist` (GH-102159)
---------
(cherry picked from commit
9f3ecd1aa3566947648a053bd9716ed67dd9a718 )
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 23 Feb 2023 17:11:45 +0000 (09:11 -0800)]
gh-101981: Consolidate macOS configure steps in CI (GH-102131)
(cherry picked from commit
e07b304bb004e1298283c82bd135dd5ef96a90cc )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Automerge-Triggered-By: GH:erlend-aasland
Miss Islington (bot) [Thu, 23 Feb 2023 14:36:28 +0000 (06:36 -0800)]
gh-102151: Correctly fetch CONFIG_ARGS in Tools/freeze/test/freeze.py (GH-102152)
(cherry picked from commit
c3a178398c199038f3a0891d09f0363ec73f3b38 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Thu, 23 Feb 2023 13:38:08 +0000 (05:38 -0800)]
Fix typo in `Py_GetPythonHome` signature (GH-102168)
(cherry picked from commit
9bba8035bd99813203cb3b0de218f9cc3bcdaf2f )
Co-authored-by: Tanner Firl <105078804+TannerFirl@users.noreply.github.com>
Miss Islington (bot) [Thu, 23 Feb 2023 13:35:59 +0000 (05:35 -0800)]
[3.11] gh-100226: Clarify StreamReader.read behavior (GH-101807) (#102001)
gh-100226: Clarify StreamReader.read behavior (GH-101807)
(cherry picked from commit
77d95c83733722ada35eb1ef89ae5b84a51ddd32 )
Co-authored-by: Jan Gosmann <jan@hyper-world.de>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Thu, 23 Feb 2023 00:02:31 +0000 (16:02 -0800)]
Fix syntax error in struct doc example (GH-102160)
Missing closing ) reported on Discuss by Chukwudi Nwachukwu.
(cherry picked from commit
8f647477f0ab5362741d261701b5bcd76bd69ec1 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 22 Feb 2023 21:39:05 +0000 (13:39 -0800)]
GH-101777: `queue.rst`: use 2 spaces after a period to be consistent. (GH-102143)
(cherry picked from commit
96bf24380e44dfa1516d65480250995e737c0cb9 )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Wed, 22 Feb 2023 19:11:59 +0000 (11:11 -0800)]
[3.11] gh-97786: Fix compiler warnings in pytime.c (GH-101826) (#102062)
gh-97786: Fix compiler warnings in pytime.c (GH-101826)
Fixes compiler warnings in pytime.c.
(cherry picked from commit
b1b375e2670a58fc37cb4c2629ed73b045159918 )
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Wed, 22 Feb 2023 11:42:04 +0000 (03:42 -0800)]
[3.11] gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100) (gh-102117)
gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100)
(cherry picked from commit
0d4c7fcd4f078708a5ac6499af378ce5ee8eb211 )
Co-authored-by: Long Vo <long.vo@linecorp.com>
Miss Islington (bot) [Wed, 22 Feb 2023 10:25:17 +0000 (02:25 -0800)]
[3.11] gh-102135: Update turtle docs to rename wikipedia demo to rosette (GH-102137) (GH-102138)
(cherry picked from commit
8d46c7ed5e83e22d55fe4f4e6e873d87f340c1dc )
Co-authored-by: somebody <98094921+UndoneStudios@users.noreply.github.com>
Automerge-Triggered-By: GH:hugovk
Miss Islington (bot) [Wed, 22 Feb 2023 01:34:51 +0000 (17:34 -0800)]
[3.11] gh-95672 fix typo SkitTest to SkipTest (gh-102119) (#102121)
gh-95672 fix typo SkitTest to SkipTest (gh-102119)
(cherry picked from commit
d5c7954d0c3ff874d2d27d33dcc207bb7356f328 )
Co-authored-by: HyunKyun Moon <hyunkyun.moon@linecorp.com>
Miss Islington (bot) [Tue, 21 Feb 2023 15:38:27 +0000 (07:38 -0800)]
gh-102008: simplify test_except_star by using sys.exception() instead of sys.exc_info() (GH-102009)
(cherry picked from commit
c2b85a95a50687a2e5d1873e17266370876e77e9 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Feb 2023 13:01:15 +0000 (05:01 -0800)]
[3.11] gh-101967: add a missing error check (GH-101968) (#102015)
gh-101967: add a missing error check (GH-101968)
(cherry picked from commit
89413bbccb9261b72190e275eefe4b0d49671477 )
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Feb 2023 11:06:20 +0000 (03:06 -0800)]
gh-102011: use sys.exception() instead of sys.exc_info() in docs where possible (GH-102012)
(cherry picked from commit
4d3bc89a3f54c4f09756a9b644b3912bf54191a7 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Feb 2023 10:45:49 +0000 (02:45 -0800)]
gh-100556: Improve clarity of `or` docs (GH-100589)
(cherry picked from commit
b40dd71241f092d90c192ebff5d58cbd7e84dc52 )
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Feb 2023 10:32:58 +0000 (02:32 -0800)]
gh-101777: Make `PriorityQueue` docs slightly clearer (GH-102026)
Adjust wording slightly, and use min(entries) instead of
sorted(list(entries))[0] as an example.
(cherry picked from commit
350ba7c07f8983537883e093c5c623287a2a22e5 )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Feb 2023 03:39:16 +0000 (19:39 -0800)]
[3.11] gh-101961 fileinput.hookcompressed should not set the encoding value for the binary mode (gh-102068) (#102098)
gh-101961 fileinput.hookcompressed should not set the encoding value for the binary mode (gh-102068)
(cherry picked from commit
6f25657b83d7a680a97849490f6e973b3a695e1a )
Co-authored-by: Gihwan Kim <gihwan.kim@linecorp.com>
Miss Islington (bot) [Mon, 20 Feb 2023 23:52:02 +0000 (15:52 -0800)]
[3.11] gh-100210: Correct the comment link for unescaping HTML (GH-100212) (#102044)
gh-100210: Correct the comment link for unescaping HTML (GH-100212)
(cherry picked from commit
9a07eff628c1cd88b7cdda88a8fd0db3fe7ea552 )
gh-100210: correct the comment link for unescaping HTML
Co-authored-by: Jean-Christophe Amiel <jeanchristophe.amiel@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Jason R. Coombs [Mon, 20 Feb 2023 23:22:03 +0000 (18:22 -0500)]
[3.11] gh-101566: Sync with zipp 3.14. (GH-102018). (GH-102090)
(cherry picked from commit
36854bbb240e417c0df6f0014924fcc899388186 )
Backport of bugfix only.
Automerge-Triggered-By: GH:jaraco
Miss Islington (bot) [Mon, 20 Feb 2023 17:33:00 +0000 (09:33 -0800)]
gh-88233: zipfile: handle extras after a zip64 extra (GH-96161)
Previously, any data _after_ the zip64 extra would be removed.
With many new tests.
Fixes GH-88233
(cherry picked from commit
59e86caca812fc993c5eb7dc8ccd1508ffccba86 )
Co-authored-by: Tim Hatch <tim@timhatch.com>
Automerge-Triggered-By: GH:jaraco
Miss Islington (bot) [Mon, 20 Feb 2023 16:24:49 +0000 (08:24 -0800)]
gh-101981: Apply HOMEBREW related environment variables (gh-102074)
(cherry picked from commit
ed01addb59a554804995303ad3e7bf0c6067737b )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Mon, 20 Feb 2023 13:33:21 +0000 (05:33 -0800)]
gh-101981: Build macOS as recommended by the devguide (GH-102070)
(cherry picked from commit
27136310414965a3ea7f835e416cf74b91cefb48 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Automerge-Triggered-By: GH:erlend-aasland
Miss Islington (bot) [Sun, 19 Feb 2023 19:11:40 +0000 (11:11 -0800)]
gh-99735: Use required=True in argparse subparsers example (GH-100927)
(cherry picked from commit
6aab56f3c2ee331116eba242d2fcdca592577328 )
Co-authored-by: Patricio Paez <nospam@pp.com.mx>
Miss Islington (bot) [Sun, 19 Feb 2023 01:04:01 +0000 (17:04 -0800)]
Fix incorrectly documented attribute in csv docs (GH-101250)
(cherry picked from commit
36b670908b3546f46283aae4dbf311e53289f3d1 )
Co-authored-by: Reza Rastak <rezarastak@users.noreply.github.com>
Brian Skinn [Sat, 18 Feb 2023 23:57:06 +0000 (18:57 -0500)]
[3.11] gh-85747: Active voice & suggested edits, 'running/stopping loop' & 'callbacks' subsections of asyncio-eventloop.rst (GH-100270) (#102006)
Note: the `timeout` parameter was not added until 3.12.
(cherry picked from commit
c4de6b1d52304a0a9cdfafc1dad5098993710404 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>.
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
Miss Islington (bot) [Fri, 17 Feb 2023 21:44:45 +0000 (13:44 -0800)]
gh-101739: [Enum] update docs - default boundary for Flag is CONFORM (GH-101746)
(cherry picked from commit
7f1c72175600b21c1c840e8988cc6e6b4b244582 )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Fri, 17 Feb 2023 19:39:14 +0000 (11:39 -0800)]
gh-101992: update plistlib examples to be runnable (GH-101994)
* gh-101992: update plistlib examples to be runnable
* Update Doc/library/plistlib.rst
---------
(cherry picked from commit
a1723caabfcdca5d675c4cb04554fb04c7edf601 )
Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 17 Feb 2023 08:50:46 +0000 (00:50 -0800)]
gh-101973: Fix parameter reference for PyModule_FromDefAndSpec (GH-101976)
(cherry picked from commit
a3bb7fbe7eecfae6bf7b2f0912f9b2b12fac8db1 )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Thu, 16 Feb 2023 15:25:31 +0000 (07:25 -0800)]
gh-93573: Replace wrong example domains in configparser doc (GH-93574)
* Replace bitbucket.org domain by forge.example
* Update example to python.org
* Use explicitly invalid domain
topsecret.server.com domain is not controled by PSF. It's replaced by invalid topsecret.server.example domain. It follows RFC 2606, which advise .example as TLD for documentation.
(cherry picked from commit
924a3bfa28578802eb9ca77a66fb5d4762a62f14 )
Co-authored-by: sblondon <stephane.blondon@gmail.com>
Miss Islington (bot) [Tue, 14 Feb 2023 10:45:42 +0000 (02:45 -0800)]
GH-101898: Fix missing term references for hashable definition (GH-101899)
Fix missing term references for hashable definition
(cherry picked from commit
3690688149dca11589af59b7704541336613199a )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Mon, 13 Feb 2023 20:59:12 +0000 (12:59 -0800)]
gh-101849: Add upgrade codes for old versions of launcher that ended up with later version numbers (GH-101877)
(cherry picked from commit
0c6fe81dce9d6bb1dce5e4503f1b42bc5355ba24 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 13 Feb 2023 09:20:18 +0000 (01:20 -0800)]
Correct trivial grammar in reset_mock docs (GH-101861)
(cherry picked from commit
a1f08f5f19753c7c9295f51b5ae1262c7a1c838f )
Co-authored-by: Steve Kowalik <steven@wedontsleep.org>
Miss Islington (bot) [Sun, 12 Feb 2023 17:28:20 +0000 (09:28 -0800)]
gh-101845: pyspecific: Fix i18n for availability directive (GH-101846)
pyspecific: Fix i18n for availability directive
If the directive has content, the previous code would nest paragraph
nodes from that content inside a general paragraph node, which confuses
Sphinx and leads it to drop the content when translating. Instead, use a
container node for the body.
Also use set_source_info so that any warnings have location info.
(cherry picked from commit
6ef6915d3530e844243893f91bf4bd702dfef570 )
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
Miss Islington (bot) [Sun, 12 Feb 2023 06:33:13 +0000 (22:33 -0800)]
gh-89792: Limit test_tools freeze test build parallelism based on the number of cores (GH-101841)
unhardcode freeze test build parallelism. base it on the number of cpus, don't use more than max(2, os.cpu_count()/3).
(cherry picked from commit
dfc2e065a2e71011017077e549cd2f9bf4944c54 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sun, 12 Feb 2023 05:18:07 +0000 (21:18 -0800)]
gh-89792: Prevent test_tools from copying 1000M of "source" in freeze test (GH-101837)
Prevent test_tools from copying 1000M of "source"
It doesn't need a git repo, just the checkout. We skip .git metadata, Doc/build, Doc/venv, and `__pycache__` subdirs, that developers often have in their clients to reduce the size of the source tree copy ten-fold.
This should significantly reduce IO and presumably time on buildbots during this long test.
(cherry picked from commit
1d194235e4d5981b5fea25c75318d61189103a58 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Erlend E. Aasland [Sat, 11 Feb 2023 08:30:42 +0000 (09:30 +0100)]
[3.11] GH-101696: invalidate type version tag in `_PyStaticType_Dealloc` (GH-101697) (#101722)
[3.11] GH-101696: invalidate type version tag in `_PyStaticType_Dealloc` (GH-101697).
(cherry picked from commit
d9de0792482d2ded364b0c7d2867b97a5da41b12 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Sat, 11 Feb 2023 00:24:28 +0000 (16:24 -0800)]
[3.11] gh-101390: Fix docs for `imporlib.util.LazyLoader.factory` to properly call it a class method (GH-101391) (#GH-101813)
gh-101390: Fix docs for `imporlib.util.LazyLoader.factory` to properly call it a class method (GH-101391)
(cherry picked from commit
17143e2c30ae5e51945e04eeaec7ebb0e1f07fb5 )
Co-authored-by: busywhitespace <busywhitespace@tuta.io>
Hugo van Kemenade [Fri, 10 Feb 2023 22:26:41 +0000 (00:26 +0200)]
[3.11] Docs: Fix getstatus() -> getcode() typos (GH-101296) (#101805)
Erlend E. Aasland [Fri, 10 Feb 2023 21:21:55 +0000 (22:21 +0100)]
[3.11] gh-101759: Update Windows installer to SQLite 3.40.1 (GH-101762) (#101791)
(cherry picked from commit
5d15224011217487e1a174c144af0e5f5826c17c )
Miss Islington (bot) [Fri, 10 Feb 2023 18:01:38 +0000 (10:01 -0800)]
Docs: use parameter list for sqlite3.Cursor.execute* (GH-101782)
(cherry picked from commit
2037ebf81bd4bbe5421421b822bd57cfd665a1e9 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Fri, 10 Feb 2023 17:27:53 +0000 (09:27 -0800)]
gh-101763: Update bundled copy of libffi to 3.4.4 on Windows (GH-101784)
(cherry picked from commit
e1aadedf099e645fd2eb1aa8bdcde5a105cee95d )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Fri, 10 Feb 2023 17:26:27 +0000 (09:26 -0800)]
gh-101517: make bdb avoid looking up in linecache with lineno=None (GH-101787)
(cherry picked from commit
366b94905869d680b3f1d4801fb497e78811e511 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 10 Feb 2023 07:48:53 +0000 (23:48 -0800)]
gh-101759: Update macOS installer to SQLite 3.40.1 (GH-101761)
(cherry picked from commit
d40a23c0a11060ba7fa076d50980c18a11a13a40 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Steve Dower [Thu, 9 Feb 2023 19:28:59 +0000 (19:28 +0000)]
gh-101726: Update the OpenSSL version to 1.1.1t (GH-101727)
Fixes CVE-2023-0286 (High) and a couple of Medium security issues.
https://www.openssl.org/news/secadv/
20230207 .txt
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Thu, 9 Feb 2023 00:11:36 +0000 (16:11 -0800)]
gh-101283: Version was just released, so should be changed in 3.11.3 (GH-101719)
(cherry picked from commit
0e0c5d8baaa6aa91f4221c5aa57d5586e58e8652 )
Co-authored-by: Steve Dower <steve.dower@python.org>