]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sat, 5 Aug 2023 17:25:21 +0000 (10:25 -0700)]
[3.11] gh-107662: Switch 'any' and 'anext' in functions.rst (GH-107663) (#107665)
gh-107662: Switch 'any' and 'anext' in functions.rst (GH-107663)
Order was reversed in index at top, not in body.
(cherry picked from commit
9ebc6ecbc336d7b17cd158d1a4522f832df3e6e2 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 5 Aug 2023 11:40:44 +0000 (04:40 -0700)]
[3.11] gh-107432 Fix incorrect indentation in annotations HOWTO (GH-107445) (#107655)
gh-107432 Fix incorrect indentation in annotations HOWTO (GH-107445)
gh-107432 Fix incorrect indentation in annotations document
Body text in https://docs.python.org/3/howto/annotations.html was
indented throughout, and was being rendered in blockquote elements.
(cherry picked from commit
5e2746d6e2fb0da29225ead7135f078c5f087b57 )
Co-authored-by: Daniele Procida <daniele@vurt.org>
Hugo van Kemenade [Fri, 4 Aug 2023 21:14:21 +0000 (00:14 +0300)]
[3.11] Docs: upgrade to python-docs-theme 2023.7 (GH-107617) (#107634)
(cherry picked from commit
19f32b24b2e1680ff9929bb64d681397b259c6fb )
Miss Islington (bot) [Fri, 4 Aug 2023 19:11:42 +0000 (12:11 -0700)]
[3.11] Docs: Only include Plausible for html, not for epub etc (GH-107637) (#107643)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 3 Aug 2023 14:09:27 +0000 (07:09 -0700)]
[3.11] gh-107077: Raise SSLCertVerificationError even if the error is set via SSL_ERROR_SYSCALL (GH-107586) (#107588)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: T. Wouters <thomas@python.org>
Miss Islington (bot) [Tue, 1 Aug 2023 20:31:22 +0000 (13:31 -0700)]
[3.11] Clarify `Self` interaction with subclasses (GH-107511) (#107549)
Co-authored-by: Alexandru Mărășteanu <alexei@users.noreply.github.com>
Miss Islington (bot) [Tue, 1 Aug 2023 10:21:08 +0000 (03:21 -0700)]
[3.11] gh-106092: Fix use-after-free crash in frame_dealloc (GH-106875) (#107533)
Miss Islington (bot) [Mon, 31 Jul 2023 21:43:16 +0000 (14:43 -0700)]
[3.11] gh-107507: Replace 'The goals of Argument Clinic' with a summary (GH-107508) (#107517)
Summarise the goals of Argument Clinic in a single sentence.
Mention that Argument Clinic was introduced with PEP-436.
(cherry picked from commit
abb71c6a8f73482c910ffdf050a86089a48e0e60 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Mon, 31 Jul 2023 15:33:07 +0000 (08:33 -0700)]
[3.11] gh-105578: Add more usage examples to `typing.AnyStr` docs (GH-107045) (#107504)
gh-105578: Add more usage examples to `typing.AnyStr` docs (GH-107045)
``typing.AnyStr`` has different semantics to ``str | bytes``, which often leads to user confusion
(cherry picked from commit
f877b32b879f2076bb1c52826af0c28ebf1aaeed )
Co-authored-by: Michael The <michael-the1@users.noreply.github.com>
Łukasz Langa [Mon, 31 Jul 2023 14:40:47 +0000 (14:40 +0000)]
[3.11] gh-105751: Remove obsolete `object` base class in some ctypes tests (GH-107460) (#107502)
(cherry picked from commit
520efecfc3aed34d3a44545c7cd872d1aea8c7dc )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Charlie Zhao [Mon, 31 Jul 2023 13:52:23 +0000 (21:52 +0800)]
[3.11] gh-106263: Fix segfault in `signaldict_repr` in `_decimal` module (#… (#107490)
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
(cherry picked from commit
3979150a0d406707f6d253d7c15fb32c1e005a77 )
Miss Islington (bot) [Mon, 31 Jul 2023 12:32:18 +0000 (05:32 -0700)]
[3.11] gh-106368: Add test for Argument Clinic misbehaving custom converter_init() (GH-107496) (#107500)
(cherry picked from commit
2c5d206b33e4cdcafaaaf1eeaa189c10de332dc5 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Łukasz Langa [Mon, 31 Jul 2023 09:40:20 +0000 (09:40 +0000)]
[3.11] gh-104280: Add test cases for DTrace probes (GH-107125) (#107492)
(cherry picked from commit
a1c737b73d3658be0e1d072a340d42e3d96373c6 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Łukasz Langa [Mon, 31 Jul 2023 09:16:59 +0000 (09:16 +0000)]
[3.11] gh-46376: Return existing pointer when possible in ctypes (GH-107131) (#107488)
(cherry picked from commit
08447b5deb47e2a0df87fa0a0576d300e5c909b4 )
Co-authored-by: Konstantin <kpp.live+github@gmail.com>
Łukasz Langa [Mon, 31 Jul 2023 08:28:45 +0000 (08:28 +0000)]
[3.11] gh-105751, test_ctypes: Remove disabled tests (GH-105826) (#107484)
* The following tests were disabled since the initial ctypes commit
in 2006, commit
babddfca758abe34ff12023f63b18d745fae7ca9 :
* Callbacks.test_char_p()
* DeletePointerTestCase.test_X()
* NumberTestCase.test_perf()
* StructureTestCase.test_subclass_creation()
* Tests.test_X() of test_byteswap
* NumberTestCase.test_bool_from_address() was disabled in 2007 by
commit
5dc4fe09b7648f9801558e766b21a3d3b2dcad3b .
* Remove check_perf() and run_test() of test_numbers.
(cherry picked from commit
8f10140e74d141a0a894702044e213e6f0690d9c )
Co-authored-by: Victor Stinner <vstinner@python.org>
Ned Deily [Mon, 31 Jul 2023 07:25:29 +0000 (03:25 -0400)]
[3.11] gh-99079: add What's New item (GH-107482)
Ned Deily [Mon, 31 Jul 2023 06:16:39 +0000 (02:16 -0400)]
[3.11] gh-99079: Update macOS installer to use OpenSSL 3.0.9. (GH-107476)
Ned Deily [Mon, 31 Jul 2023 06:15:27 +0000 (02:15 -0400)]
[3.11] Update macOS installer screens for 3.11.5. (GH-107477)
da-woods [Sun, 30 Jul 2023 08:48:01 +0000 (09:48 +0100)]
[3.11] Fix the documentation for PyCode_New add qualname parameter (GH-107186) (#107454)
[3.11] Fix the documentation for PyCode_New add `qualname` parameter (GH-107186).
(cherry picked from commit
f2abeb590dae5918388f91b60b31f040d44218f0 )
Miss Islington (bot) [Sat, 29 Jul 2023 18:07:49 +0000 (11:07 -0700)]
[3.11] gh-106634: Corrected minor asyncio doc issues (GH-106671) (#106711)
gh-106634: Corrected minor asyncio doc issues (GH-106671)
(cherry picked from commit
4b4a5b70aa8d47b1e2a0582b741c31b786da762a )
Co-authored-by: Chris Brett <chrisbrett665@gmail.com>
Alex Waygood [Sat, 29 Jul 2023 17:21:45 +0000 (18:21 +0100)]
[3.11] gh-107422: Remove outdated `TypedDict` example from typing docs (#107436) (#107438)
gh-107422: Remove outdated `TypedDict` example from typing docs (#107436)
Co-authored-by: Rakesh Sabale <102187286+ghubrakesh@users.noreply.github.com>
Miss Islington (bot) [Sat, 29 Jul 2023 06:17:20 +0000 (23:17 -0700)]
[3.11] gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386) (GH-107418)
(cherry picked from commit
f2d07d3289947d10b065b2bb7670c8fb6b6582f2 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Sat, 29 Jul 2023 05:56:26 +0000 (08:56 +0300)]
[3.11] gh-107091: Fix some uses of :func: role (GH-107378) (GH-107417)
:c:func: or :c:macro: should be used instead.
(cherry picked from commit
413ba8943e2f1d896a0568eb571a041b88589440 )
justdan6 [Fri, 28 Jul 2023 23:36:54 +0000 (17:36 -0600)]
[3.11] gh-106881: Check for linux/limits.h before including it (#107397) (#107415)
* [3.11] gh-106881: Check for linux/limits.h before including it (#107397)
* Check for linux/limits.h before including it
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit
11c055f5ff1a353de6d2e77f2af24aaa782878ba )
* Fix sphinx-lint error in NEWS entry
Miss Islington (bot) [Fri, 28 Jul 2023 10:36:19 +0000 (03:36 -0700)]
[3.11] gh-107091: Fix some uses of :const: role (GH-107379) (GH-107385)
It is for references, not for literals.
(cherry picked from commit
0aa58fa7a62cd0ee7ec27fa87122425aeff0467d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Fri, 28 Jul 2023 08:31:49 +0000 (11:31 +0300)]
[3.11] gh-107298: Fix yet more Sphinx warnings in the C API doc (GH-107345) (GH-107381)
(cherry picked from commit
983305268e2291b0a7835621b81bf40cba7c27f3 )
Serhiy Storchaka [Fri, 28 Jul 2023 07:03:47 +0000 (10:03 +0300)]
[3.11] gh-107298: Fix more Sphinx warnings in the C API doc (GH-107329) (GH-107377)
Declare the following functions as macros, since they are actually
macros. It avoids a warning on "TYPE" or "macro" argument.
* PyMem_New()
* PyMem_Resize()
* PyModule_AddIntMacro()
* PyModule_AddStringMacro()
* PyObject_GC_New()
* PyObject_GC_NewVar()
* PyObject_New()
* PyObject_NewVar()
(cherry picked from commit
8d61a71f9c81619e34d4a30b625922ebc83c561b )
Co-authored-by: Victor Stinner <vstinner@python.org>
Serhiy Storchaka [Fri, 28 Jul 2023 06:44:54 +0000 (09:44 +0300)]
[3.11] gh-107298: Fix Sphinx warnings in the C API doc (GH-107302) (GH-107373)
(cherry picked from commit
391e03fa05b80d17a14ac88d30c974fa2fa00adb )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 28 Jul 2023 06:36:45 +0000 (23:36 -0700)]
[3.11] gh-104432: Use `memcpy()` to avoid misaligned loads (GH-104433) (#107356)
gh-104432: Use `memcpy()` to avoid misaligned loads (GH-104433)
Fix potential unaligned memory access on C APIs involving returned sequences
of `char *` pointers within the :mod:`grp` and :mod:`socket` modules. These
were revealed using a ``-fsaniziter=alignment`` build on ARM macOS.
(cherry picked from commit
f01e4cedba1a17d321664834bb255d9d04ad16ce )
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Serhiy Storchaka [Fri, 28 Jul 2023 06:21:50 +0000 (09:21 +0300)]
[3.11] gh-107298: Fix doc references to undocumented modules (GH-107300) (GH-107371)
(cherry picked from commit
87b39028e5f453a949a1675526c439f6479a04a8 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 28 Jul 2023 05:50:56 +0000 (22:50 -0700)]
[3.11] gh-106723: forward -Xfrozen_modules option to spawned process interpreters (GH-106724) (#107368)
gh-106723: forward -Xfrozen_modules option to spawned process interpreters (GH-106724)
(cherry picked from commit
3dcac785810df4d9db50abe90847eaf03bbdaaf4 )
Co-authored-by: Felipe A. Hernandez <ergoithz@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Fri, 28 Jul 2023 00:36:34 +0000 (17:36 -0700)]
[3.11] gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExternalTests` fail (GH-107364) (#107366)
gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExternalTests` fail (GH-107364)
(cherry picked from commit
76c26eaca4147ba7e3e8d7379c5a828f0b512a46 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Thu, 27 Jul 2023 12:15:06 +0000 (05:15 -0700)]
[3.11] Bump some docs dependencies to resolve a Dependabot security alert (GH-107341) (#107343)
Bump some docs dependencies to resolve a Dependabot security alert (GH-107341)
(cherry picked from commit
f84d77b4e07aeb6241c1ff9932627d3ba059efa8 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Thu, 27 Jul 2023 08:12:17 +0000 (01:12 -0700)]
[3.11] gh-106996: Rewrite turtle explanation (GH-107244) (#107336)
Co-authored-by: Daniele Procida <daniele@vurt.org>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Serhiy Storchaka [Thu, 27 Jul 2023 06:27:02 +0000 (09:27 +0300)]
[3.11] gh-107298: Docs: add targets for some :c:member: and :c:macro: references (GH-107316) (GH-107333)
Add targets for PyStructSequence_Desc and PyStructSequence_Field members
and macros like Py_EQ.
Fix target for Py_RETURN_RICHCOMPARE.
(cherry picked from commit
abec9a1b20b70d8ced401d59fc4f02b331c6568b )
Serhiy Storchaka [Thu, 27 Jul 2023 06:26:14 +0000 (09:26 +0300)]
[3.11] gh-107091: Fix some uses of :attr: role (GH-107318) (GH-107331)
Fix also formatting of PyMethodDef members.
(cherry picked from commit
d363eb5b0255c055e7b43f5e2c0847f555e1982e )
Erlend E. Aasland [Wed, 26 Jul 2023 23:26:04 +0000 (01:26 +0200)]
[3.11] Docs: Argument Clinic: Restructure "Basic concepts and usage" (#106981) (#107327)
Split "Basic concepts and usage" into:
- Reference
- Terminology
- CLI reference
- Background
- Basic concepts
(cherry picked from commit
2ad699002e3ce09e9fa41e333ac72f16a32d94de )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Erlend E. Aasland [Wed, 26 Jul 2023 23:02:24 +0000 (01:02 +0200)]
[3.11] gh-106368: Increase Argument Clinic CLI test coverage (#107277) (#107326)
(cherry picked from commit
579100f6d75a27429e7f8de74935d7bc3a3e44e6 )
Miss Islington (bot) [Wed, 26 Jul 2023 22:37:14 +0000 (15:37 -0700)]
[3.11] gh-106368: Increase Argument Clinic CLI test coverage (GH-107156) (#107190)
Instead of hacking into the Clinic class, use the Argument Clinic tool
to run the ClinicExternalTest test suite.
(cherry picked from commit
83a2837b328c58b243f7d97bec12c64ec66681c5 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Wed, 26 Jul 2023 22:24:09 +0000 (15:24 -0700)]
[3.11] gh-106368: Increase Argument Clinic CLI test coverage (GH-107156) (#107190)
Instead of hacking into the Clinic class, use the Argument Clinic tool
to run the ClinicExternalTest test suite.
(cherry picked from commit
83a2837b328c58b243f7d97bec12c64ec66681c5 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Erlend E. Aasland [Wed, 26 Jul 2023 21:21:28 +0000 (23:21 +0200)]
[3.11] Docs: Remove the numbered steps from the Argument Clinic tutorial (#107203) (#107319)
Instead, order the tutorial as one body of prose, making it easier to
align the tutorial according to Diátaxis principles.
(cherry picked from commit
592395577c679543d899e68a3cff538b8b4df80d )
Miss Islington (bot) [Wed, 26 Jul 2023 21:00:36 +0000 (14:00 -0700)]
[3.11] gh-107091: Fix some uses of :c:type: role (GH-107138) (GH-107313)
(cherry picked from commit
6d5b6e71c87fca7c5c26f5dd8f325087962215cc )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 26 Jul 2023 20:00:13 +0000 (13:00 -0700)]
[3.11] Document that `os.link()` is not available on Emscripten (GH-104822) (GH-107309)
Document that `os.link()` is not available on Emscripten (GH-104822)
(cherry picked from commit
737d1da0746053d515158eac5b115e8bd813f6d3 )
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Serhiy Storchaka [Wed, 26 Jul 2023 19:35:16 +0000 (22:35 +0300)]
[3.11] gh-107091: Fix some uses of :c:member: role (GH-107129) (GH-107311)
(cherry picked from commit
af61cb9c7837ff3c11da79e3ee1cab3fdd0ba4da )
Victor Stinner [Wed, 26 Jul 2023 16:27:08 +0000 (18:27 +0200)]
[3.11] gh-106948: Update documentation nitpick_ignore for c:identifer domain (#107295) (#107299)
gh-106948: Update documentation nitpick_ignore for c:identifer domain (#107295)
Update the nitpick_ignore of the documentation configuration to fix
Sphinx warnings about standard C types when declaring functions with
the "c:function" markups.
Copy standard C types declared in the "c:type" domain to the
"c:identifier" domain, since "c:function" markup looks for types in
the "c:identifier" domain.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
b1de3807b832b72dfeb66dd5646159d08d2cc74a )
Miss Islington (bot) [Wed, 26 Jul 2023 07:58:07 +0000 (00:58 -0700)]
[3.11] gh-106350: Tkinter: do not ignore return value of `mp_init()` (GH-106351) (GH-107259)
(cherry picked from commit
b5ae7c498438657a6ba0bf4cc216b9c2c93a06c7 )
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Wei-Hsiang (Matt) Wang [Wed, 26 Jul 2023 05:17:44 +0000 (13:17 +0800)]
[3.11] GH-97950: Fix old-style index directive in Doc/library/imp.rst (#107246)
Use new-style index directive ('statement') - library/imp
Miss Islington (bot) [Tue, 25 Jul 2023 21:18:23 +0000 (14:18 -0700)]
[3.11] gh-106939: document ShareableList nul-strip quirk. (GH-107266) (#107270)
gh-106939: document ShareableList nul-strip quirk. (GH-107266)
* gh-106939: document ShareableList nul-strip quirk.
* Mention the `int` size constraint.
(cherry picked from commit
70dc00946938027d5a79bcb7b65038319040144e )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Tue, 25 Jul 2023 20:02:06 +0000 (13:02 -0700)]
[3.11] gh-107226: PyModule_AddObjectRef() should only be in the limited API 3.10 (GH-107227) (GH-107261)
(cherry picked from commit
698b01513550798886add5e06a1c3f9a89d7dfc6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 25 Jul 2023 18:49:28 +0000 (11:49 -0700)]
[3.11] gh-62519: Make pgettext search plurals when translation is not found (GH-107118) (GH-107133)
(cherry picked from commit
b3c34e55c053846beb35f5e4253ef237b3494bd0 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Tue, 25 Jul 2023 16:34:56 +0000 (09:34 -0700)]
[3.11] Remove superflous whitespaces in `layout.html`. (GH-107251) (#107252)
Remove superflous whitespaces in `layout.html`. (GH-107251)
Remove superflous whitespaces in layout.html.
(cherry picked from commit
313284aa423252ebd5d4e761220e0f4fdeac626d )
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Victor Stinner [Tue, 25 Jul 2023 14:49:32 +0000 (16:49 +0200)]
[3.11] gh-107237: Fix test_udp_reconnection() of test_logging (#107238) (#107245)
gh-107237: Fix test_udp_reconnection() of test_logging (#107238)
test_logging: Fix test_udp_reconnection() by increasing the timeout
from 100 ms to 5 minutes (LONG_TIMEOUT).
Replace also blocking wait() with wait(LONG_TIMEOUT) in
test_output() to prevent the test to hang.
(cherry picked from commit
ed082383272c2c238e364e9cc83229234aee23cc )
Miss Islington (bot) [Tue, 25 Jul 2023 12:17:14 +0000 (05:17 -0700)]
[3.11] gh-106996: Add a how-to section to the turtle documentation (GH-107153) (#107234)
Co-authored-by: Daniele Procida <daniele@vurt.org>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Serhiy Storchaka [Tue, 25 Jul 2023 11:15:14 +0000 (14:15 +0300)]
[3.11] gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-99613) (GH-107224)
Previously *consumed was not set in this case.
(cherry picked from commit
f08e52ccb027f6f703302b8c1a82db9fd3934270 )
Paul Moore [Tue, 25 Jul 2023 10:38:19 +0000 (11:38 +0100)]
[3.11] gh-106774: Update bundled pip version to 23.2.1 (GH-106775) (gh-107223)
* Update bundled pip version to 23.2.1.
(cherry picked from commit
f443b54a2f14e386a91fe4b09f41a265445008b8 )
Miss Islington (bot) [Mon, 24 Jul 2023 16:39:43 +0000 (09:39 -0700)]
[3.11] gh-107017: Change Chapter Strings to Texts in the Introduction chapter. (GH-107104) (#107168)
Co-authored-by: TommyUnreal <45427816+TommyUnreal@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Erlend E. Aasland [Mon, 24 Jul 2023 15:45:13 +0000 (17:45 +0200)]
[3.11] Docs: Add missing markup to Argument Clinic docs (#106876) (#107182)
(cherry picked from commit
ff5f94b72c8aad8e45c397c263dbe7f19221735f )
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 24 Jul 2023 13:06:46 +0000 (06:06 -0700)]
[3.11] Fix PyVectorcall_Function doc versionadded (GH-107140) (#107174)
Fix PyVectorcall_Function doc versionadded (GH-107140)
The documentation implies that PyVectorcall_Function() was available in Python 3.8.
This is half-true - it was available under a different name. I think it's clearer to set
the "version added" to 3.9.
(cherry picked from commit
0a9b339363a59be1249189c767ed6f46fd71e1c7 )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Miss Islington (bot) [Mon, 24 Jul 2023 12:06:06 +0000 (05:06 -0700)]
[3.11] Docs: Remove duplicate word in Argument Clinic howto heading (GH-107169) (#107172)
(cherry picked from commit
ebe44a5155e9abc70c4b8914ad26b27c2b84f72b )
Co-authored-by: Hakan Celik <hakancelikdev@gmail.com>
Erlend E. Aasland [Sun, 23 Jul 2023 21:49:48 +0000 (23:49 +0200)]
[3.11] gh-106948: Docs: Disable links for C standard library functions, OS utility functions and system calls (#107062) (#107157)
(cherry picked from commit
b447e19e720e6781025432a40eb72b1cc93ac944 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 23 Jul 2023 13:59:05 +0000 (06:59 -0700)]
[3.11] gh-107017: Analolgy to Pascal and C replaced. (GH-107025) (#107123)
Co-authored-by: TommyUnreal <45427816+TommyUnreal@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Sviatoslav Sydorenko [Sun, 23 Jul 2023 13:33:19 +0000 (15:33 +0200)]
[3.11] 🔥 Drop hypothesis job dep @ GHA (#107128)
This fixes an incorrect conflict resolution problem that happened
in
0cdc3a575d14d710045084a615ef7f2536423727 while backporting
PR #97533 as PR #107115 (merged prematurely). This problem caused
GitHub Actions CI/CD to crash while attempting to load the workflow
file definition, preventing the jobs that are defined in
`.github/workflows/build.yml` from actually starting.
Sviatoslav Sydorenko [Sun, 23 Jul 2023 12:58:41 +0000 (14:58 +0200)]
[3.11] Introduce a gate/check GHA job (GH-97533) (#107115)
(cherry picked from commit
e7cd557 )
Miss Islington (bot) [Sun, 23 Jul 2023 12:28:35 +0000 (05:28 -0700)]
[3.11] gh-106186: Don't report MultipartInvariantViolationDefect for valid multipart emails when parsing header only (GH-107016) (#107112)
(cherry picked from commit
c65592c4d6d7552fb6284442906a96a6874cb266 )
Co-authored-by: htsedebenham <31847376+htsedebenham@users.noreply.github.com>
Serhiy Storchaka [Sun, 23 Jul 2023 12:06:32 +0000 (15:06 +0300)]
[3.11] gh-107091: Fix the use of some C domain roles (GH-107092) (GH-107121)
(cherry picked from commit
08a228da05a7aec937b65eea21f4091fa3c6b5cf )
wulmer [Sun, 23 Jul 2023 11:56:09 +0000 (13:56 +0200)]
[3.11] gh-101100: Fix some broken sphinx references (GH-107095). (#107120)
Moritz Neeb [Sun, 23 Jul 2023 10:26:12 +0000 (12:26 +0200)]
[3.11] gh-106969: Indicate no modules were added in 3.10 (GH-106988) (#107093)
[3.11] gh-106969: Indicate no modules were added in 3.10 & 3.12 (GH-106988)
The "New Modules" section was left in place to ensure that the anchor
link for new modules will still exist:
/whatsnew/3.12.htmlGH-new-modules
/whatsnew/3.10.htmlGH-new-modules
This means that existing links to this section don't break..
(cherry picked from commit
6dbffaed17d59079d6a2788d686009f762a3278f )
Co-authored-by: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com>
Daniele Procida [Sun, 23 Jul 2023 10:25:23 +0000 (12:25 +0200)]
[3.11] gh-106996: Add the basics of a turtle graphics tutorial (GH-107072) (#107110)
Sviatoslav Sydorenko [Sun, 23 Jul 2023 09:34:56 +0000 (11:34 +0200)]
[3.11] Convert `doc.yml` workflow to be reusable (GH-103914 + GH-105151) (#107043)
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
(cherry picked from commit
88d14da76f579fe014cbd7c15e42be4234135fe9 )
(cherry picked from commit
eaa670228066220f08c8d73f80365c50058d40b8 )
Łukasz Langa [Sun, 23 Jul 2023 09:29:13 +0000 (09:29 +0000)]
[3.11] gh-75371: reformat Makefile.pre.in to accommodate for empty FRAMEWORKALTINSTALLLAST (GH-107035) (#107050)
in the case of an empty FRAMEWORKALTINSTALLLAST, this patch prevents leaving
an astray linebreak and two tabs in the resulting Makefile.
Before change:
```
.PHONY: commoninstall
commoninstall: check-clean-src \
altbininstall libinstall inclinstall libainstall \
sharedinstall altmaninstall \
```
After change (with empty FRAMEWORKALTINSTALLLAST):
```
.PHONY: commoninstall
commoninstall: check-clean-src \
altbininstall libinstall inclinstall libainstall \
sharedinstall altmaninstall
```
(cherry picked from commit
9c38206925246ab919cf558ac069ae9458720ba7 )
Co-authored-by: Moritz Neeb <nt4u@kpvn.de>
Serhiy Storchaka [Sun, 23 Jul 2023 09:24:37 +0000 (12:24 +0300)]
[3.11] gh-106948: Add standard external names to nitpick_ignore (GH-106949) (#107061)
It includes standard C types, macros and variables like "size_t",
"LONG_MAX" and "errno", and standard environment variables like "PATH"..
(cherry picked from commit
f8b7fe2f2647813ae8249675a80e59c117d30fe1 )
Miss Islington (bot) [Sun, 23 Jul 2023 09:23:51 +0000 (02:23 -0700)]
[3.11] gh-54738: Add argparse i18n howto (GH-104562) (#107101)
(cherry picked from commit
dcd7acb04a719d8d30c8d03b80d3d48b6c035e14 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Sun, 23 Jul 2023 09:12:52 +0000 (02:12 -0700)]
[3.11] gh-71261: Add paragraph on shadowing submodules with star imports (GH-107004) (#107099)
Co-authored-by: wulmer <wulmer@users.noreply.github.com>
Miss Islington (bot) [Sun, 23 Jul 2023 09:11:35 +0000 (02:11 -0700)]
[3.11] gh-107017: removed mention that C does it the same way (GH-107020) (#107098)
Co-authored-by: Jakub Červinka <cervinka.jakub.1989@gmail.com>
Miss Islington (bot) [Sat, 22 Jul 2023 21:12:06 +0000 (14:12 -0700)]
[3.11] gh-107028: tiny textual changes in logging docs and docstrings (GH-107029) (GH-107066)
(cherry picked from commit
5e5a34ac3a827e040cd89426b1774fec2123336a )
Miss Islington (bot) [Sat, 22 Jul 2023 18:25:15 +0000 (11:25 -0700)]
[3.11] gh-83006: Document behavior of `shutil.disk_usage` for non-mounted filesystems on Unix (GH-107031) (#107048)
(cherry picked from commit
6e5f2235f3754307292c7d8d3698958136b5e311 )
Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Jul 2023 18:13:38 +0000 (11:13 -0700)]
[3.11] gh-107008: Document the curses module variables LINES and COLS (GH-107011) (GH-107058)
LINES and COLS referred in curses.update_lines_cols() documentations are
the module variables, not the environment variables.
(cherry picked from commit
26e08dfdd7ac1b3d567d30cd35e4898121580390 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Erlend E. Aasland [Sat, 22 Jul 2023 17:44:11 +0000 (19:44 +0200)]
[3.11] gh-106970: Fix Argument Clinic 'destination <name> clear' command (#106972) (#107059)
Add test for the 'destination <name> clear' command,
and the 'destination' directive in general.
Fix two bugs in 'destination <name> clear' command:
1. The text attribute of the allocator is called 'text', not '_text'
2. Return after processing the 'clear' command,
instead of proceeding directly to the fail().
(cherry picked from commit
3372bcba9893030e4063a9264ec0b4d1b6166883 )
wulmer [Sat, 22 Jul 2023 16:39:46 +0000 (18:39 +0200)]
[3.11] Fix Sphinx warnings in `re` module docs (GH-107044). (#107055)
(cherry picked from commit
149748ea4f552e6fe43a1d6d69bd65910a7c4813 )
Miss Islington (bot) [Sat, 22 Jul 2023 16:23:31 +0000 (09:23 -0700)]
gh-106847: Add -X warn_default_encoding in sys.flags Doc (GH-106854)
gh-106847: Add -X warn_default_encoding in sys.flags Doc (GH-106854)
(cherry picked from commit
fd84ac0ee0a8d5e34e0a106eed7e50539b61c5f8 )
Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 22 Jul 2023 14:29:54 +0000 (07:29 -0700)]
[3.11] gh-105090: Replace incorrect TLSv1.2 with TLSv1.3 (GH-105404) (#107038)
Co-authored-by: Jocelyn Castellano <admin@malwarefight.gq>
Łukasz Langa [Sat, 22 Jul 2023 14:14:24 +0000 (14:14 +0000)]
[3.11] Reformat code block to make it easier to read (GH-106965) (#107022)
(cherry picked from commit
ed491d9f782480fb00535abcf667027e0e323287 )
Co-authored-by: Joe Kaufeld <opensource@joekaufeld.com>
Oliver Rew [Sat, 22 Jul 2023 12:43:43 +0000 (14:43 +0200)]
[3.11] gh-100700 Remove Date and Release fields in past whatsnews (GH-100728) (#106999)
Co-authored-by: Zachary Ware <zach@python.org>
Łukasz Langa [Sat, 22 Jul 2023 12:15:18 +0000 (12:15 +0000)]
[3.11] gh-106368: Increase coverage for Argument Clinic output directive (GH-106979) (#107002)
(cherry picked from commit
ee5c01b473eeadb007b9f330db3143e34e46038b )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Sebastiaan Zeeff [Sat, 22 Jul 2023 08:37:16 +0000 (10:37 +0200)]
[3.11] Change non-integral to non-integer in random docs (GH-106975) (#106985)
Serhiy Storchaka [Fri, 21 Jul 2023 11:49:57 +0000 (14:49 +0300)]
[3.11] gh-106909: Use role :const: for referencing module constants (GH-106910) (GH-106957)
(cherry picked from commit
4b9948617f91175783609769aa6160e5b49b9ccc )
Serhiy Storchaka [Fri, 21 Jul 2023 11:49:21 +0000 (14:49 +0300)]
[3.11] gh-106892: Use roles :data: and :const: for referencing module variables (GH-106894) (GH-106955)
(cherry picked from commit
d036db728ea3d54509cbad06df74e2d9a31fbec8 )
Serhiy Storchaka [Fri, 21 Jul 2023 11:48:30 +0000 (14:48 +0300)]
[3.11] gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920) (GH-106952)
(cherry picked from commit
fcc816dbff7ca66c26f57a506e4d2330fe41d0ff )
Miss Islington (bot) [Fri, 21 Jul 2023 06:32:56 +0000 (23:32 -0700)]
[3.11] Docs: Argument Clinic: Add Background and Tutorial top-level sections (GH-106904) (#106946)
Add Background as a toplevel section with the following subsections:
- Background
- The goals of Argument Clinic
- Basic concepts and usage
Rename "Converting your first function" to Tutorial.
Add anchors for Background, Tutorial, and How-to Guides:
- :ref:`clinic-background`
- :ref:`clinic-tutorial`
- :ref:`clinic-howtos`
Link to these from within the Abstract.
Break the compatibility paragraph out of Abstract and make it a note.
(cherry picked from commit
81861fd90b4ae981e7881cd03a3c370713063525 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Miss Islington (bot) [Fri, 21 Jul 2023 06:31:00 +0000 (23:31 -0700)]
[3.11] gh-106368: Increase Argument Clinic test coverage for IndentStack (GH-106933) (#106944)
(cherry picked from commit
8d228cf66f316803e95685d6553084f3d60cd9c5 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Thu, 20 Jul 2023 23:12:00 +0000 (16:12 -0700)]
[3.11] Fix typo in tkinter docs (GH-106936) (#106938)
Fix typo in tkinter docs (GH-106936)
(cherry picked from commit
60e83968d555d53b97de04a0a00b2cdeb3187d39 )
Signed-off-by: Makonede <61922615+Makonede@users.noreply.github.com>
Co-authored-by: Makonede <61922615+Makonede@users.noreply.github.com>
Miss Islington (bot) [Wed, 19 Jul 2023 20:03:44 +0000 (13:03 -0700)]
[3.11] gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH-106901) (#106903)
gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH-106901)
And later versions of 3.10, 3.9
(cherry picked from commit
1e1f4e91a905bab3103250a3ceadac0693b926d9 )
Co-authored-by: Jack Nelson <jack@jacknelson.xyz>
Serhiy Storchaka [Wed, 19 Jul 2023 06:40:38 +0000 (09:40 +0300)]
[3.11] gh-86493: Fix possible leaks in some modules initialization (GH-106768) (GH-106855) (GH-106863)
[3.11] [3.12] gh-86493: Fix possible leaks in some modules initialization (GH-106768) (GH-106855)
Fix _ssl, _stat, _testinternalcapi, _threadmodule, cmath, math, posix, time.
(cherry picked from commit
3e65baee72131b49f4ce8ca2da568a6f2001ce93 ).
(cherry picked from commit
a423ddbdeada8a2fd8657453b9e9f58ba0dd921d )
Miss Islington (bot) [Tue, 18 Jul 2023 23:16:04 +0000 (16:16 -0700)]
[3.11] Docs: Argument Clinic: Group guides about default values (GH-106872) (#106873)
Docs: Argument Clinic: Group guides about default values (GH-106872)
Previous ToC layout (excerpt):
- How to use symbolic default values
...
- How to assign default values to parameter
- How to use the ``NULL`` default value
- How to use expressions as default values
New layout:
- How to assign default values to parameter
- The ``NULL`` default value
- Symbolic default values
- Expressions as default values
(cherry picked from commit
505eede38d141d43e40e246319b157e3c77211d3 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Tue, 18 Jul 2023 10:25:25 +0000 (03:25 -0700)]
[3.11] Docs: Normalise Argument Clinic advanced topics headings (GH-106842) (#106852)
(cherry picked from commit
4cb0b9c0a9f6a4154238c98013d2679229b1f794 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Serhiy Storchaka [Tue, 18 Jul 2023 09:53:17 +0000 (12:53 +0300)]
[3.11] gh-86493: Fix possible leaks in modules initialization: _curses_panel, _decimal, posix, xxsubtype (GH-106767) (GH-106849) (GH-106851)
(cherry picked from commit
745492355b94d109e47827e5865846f25ae42d26 )
(cherry picked from commit
970cb8eabaaf5a8311f1aba4ca4968ef7385fce8 )
Serhiy Storchaka [Tue, 18 Jul 2023 07:19:45 +0000 (10:19 +0300)]
[3.11] gh-106719: Fix __annotations__ getter and setter in the type and module types (GH-106720) (GH-106850)
No longer suppress arbitrary errors. Simplify the code.
(cherry picked from commit
e1c295e3da9ff5a3eb6b009a1f821d80e564ac87 )
Miss Islington (bot) [Mon, 17 Jul 2023 21:22:43 +0000 (14:22 -0700)]
[3.11] gh-106368: Increase Argument Clinic test coverage for cpp.Monitor (GH-106833) (#106839)
(cherry picked from commit
22379c60ab8f8b49e75da9bd032a8722af50b409 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Mon, 17 Jul 2023 20:31:10 +0000 (13:31 -0700)]
[3.11] gh-106831: Fix NULL check of d2i_SSL_SESSION() result in _ssl.c (GH-106832) (#106836)
gh-106831: Fix NULL check of d2i_SSL_SESSION() result in _ssl.c (GH-106832)
(cherry picked from commit
ebf2c56b33553a448da8f60fcd89a622f071b5f4 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Zachary Ware [Mon, 17 Jul 2023 17:07:52 +0000 (12:07 -0500)]
[3.11] gh-99079: Update Windows build to use OpenSSL 3.0.9 (GH-106649) (GH-106761)
Co-authored-by: Steve Dower <steve.dower@python.org>