]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Serhiy Storchaka [Fri, 28 Jul 2023 08:20:53 +0000 (11:20 +0300)]
[3.12] gh-107298: Fix yet more Sphinx warnings in the C API doc (GH-107345) (GH-107380)
(cherry picked from commit
983305268e2291b0a7835621b81bf40cba7c27f3 )
Serhiy Storchaka [Fri, 28 Jul 2023 06:56:52 +0000 (09:56 +0300)]
[3.12] gh-107298: Fix more Sphinx warnings in the C API doc (GH-107329) (GH-107376)
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()
Add C standard C types to nitpick_ignore in Doc/conf.py:
* int64_t
* uint64_t
* uintptr_t
No longer ignore non existing "__int" type in nitpick_ignore.
Update Doc/tools/.nitignore.
(cherry picked from commit
8d61a71f9c81619e34d4a30b625922ebc83c561b )
Co-authored-by: Victor Stinner <vstinner@python.org>
Serhiy Storchaka [Fri, 28 Jul 2023 06:40:16 +0000 (09:40 +0300)]
[3.12] gh-107298: Fix Sphinx warnings in the C API doc (GH-107302) (GH-107375)
(cherry picked from commit
391e03fa05b80d17a14ac88d30c974fa2fa00adb )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 28 Jul 2023 06:24:29 +0000 (23:24 -0700)]
[3.12] gh-106723: forward -Xfrozen_modules option to spawned process interpreters (GH-106724) (#107367)
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 06:17:49 +0000 (23:17 -0700)]
[3.12] gh-107298: Fix doc references to undocumented modules (GH-107300) (GH-107370)
Update also Doc/tools/.nitignore.
(cherry picked from commit
87b39028e5f453a949a1675526c439f6479a04a8 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 28 Jul 2023 00:39:51 +0000 (17:39 -0700)]
[3.12] gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExternalTests` fail (GH-107364) (#107365)
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 21:51:34 +0000 (14:51 -0700)]
[3.12] gh-104621: Check for Incompatible Extensions in import_find_extension() (gh-107184) (gh-107360)
gh-104621: Check for Incompatible Extensions in import_find_extension() (gh-107184)
This fixes a bug where incompatible modules could still be imported if attempted multiple times.
(cherry picked from commit
75c974f5353685f338344618ad7344e64c2293d0 )
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Miss Islington (bot) [Thu, 27 Jul 2023 20:52:39 +0000 (13:52 -0700)]
[3.12] gh-104432: Use `memcpy()` to avoid misaligned loads (GH-104433) (#107355)
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>
Miss Islington (bot) [Thu, 27 Jul 2023 20:09:05 +0000 (13:09 -0700)]
[3.12] gh-105699: Disable the Interpreters Stress Tests (gh-107354) (gh-107357)
gh-105699: Disable the Interpreters Stress Tests (gh-107354)
The two tests are crashing periodically in CI and on buildbots. I suspect the problem is in the _xxsubinterpreters module.
Regardless, I'm disabling the tests temporarily, to reduce the noise as we approach 3.12rc1. I'll be investigating the crashes separately.
(cherry picked from commit
4f67921ad28194155e3d4c16255fb140a6a4d89a )
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Miss Islington (bot) [Thu, 27 Jul 2023 19:15:47 +0000 (12:15 -0700)]
[3.12] gh-101524: Only Use Public C-API in the _xxsubinterpreters Module (gh-105258) (gh-107303)
The _xxsubinterpreters module was meant to only use public API. Some internal C-API usage snuck in over the last few years (e.g. gh-28969). This fixes that.
(cherry picked from commit
e6373c0d8b59512aa7f0dea7f3fb162b6ed10fa4 )
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Miss Islington (bot) [Thu, 27 Jul 2023 12:13:02 +0000 (05:13 -0700)]
[3.12] Bump some docs dependencies to resolve a Dependabot security alert (GH-107341) (#107342)
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:11:50 +0000 (01:11 -0700)]
[3.12] gh-106996: Rewrite turtle explanation (GH-107244) (#107335)
Co-authored-by: Daniele Procida <daniele@vurt.org>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 27 Jul 2023 07:07:55 +0000 (00:07 -0700)]
[3.12] Docs: Argument Clinic: Restructure "Basic concepts and usage" (GH-106981) (#107325)
Split "Basic concepts and usage" into:
- Reference
- Terminology
- CLI reference
- Background
- Basic concepts
(cherry picked from commit
2ad699002e3ce09e9fa41e333ac72f16a32d94de )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
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>
Miss Islington (bot) [Thu, 27 Jul 2023 06:37:54 +0000 (23:37 -0700)]
[3.12] gh-107298: Docs: add targets for some :c:member: and :c:macro: references (GH-107316) (GH-107332)
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 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Thu, 27 Jul 2023 06:24:18 +0000 (09:24 +0300)]
[3.12] gh-107091: Fix some uses of :attr: role (GH-107318) (GH-107330)
Fix also formatting of PyMethodDef members.
(cherry picked from commit
d363eb5b0255c055e7b43f5e2c0847f555e1982e )
Miss Islington (bot) [Wed, 26 Jul 2023 21:03:35 +0000 (14:03 -0700)]
[3.12] Docs: Remove the numbered steps from the Argument Clinic tutorial (GH-107203) (#107317)
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 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Wed, 26 Jul 2023 20:17:31 +0000 (13:17 -0700)]
[3.12] gh-105002: [pathlib] Fix relative_to with walk_up=True using ".." (GH-107014) (#107315)
gh-105002: [pathlib] Fix relative_to with walk_up=True using ".." (GH-107014)
It makes sense to raise an Error because ".." can not
be resolved and the current working directory is unknown.
(cherry picked from commit
e7e6e4b035f51ab4a962b45a957254859f264f4f )
Co-authored-by: János Kukovecz <kukoveczjanos@gmail.com>
Miss Islington (bot) [Wed, 26 Jul 2023 20:00:40 +0000 (13:00 -0700)]
[3.12] Document that `os.link()` is not available on Emscripten (GH-104822) (GH-107308)
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>
Miss Islington (bot) [Wed, 26 Jul 2023 19:37:39 +0000 (12:37 -0700)]
[3.12] gh-107091: Fix some uses of :c:type: role (GH-107138) (GH-107312)
(cherry picked from commit
6d5b6e71c87fca7c5c26f5dd8f325087962215cc )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 26 Jul 2023 19:30:46 +0000 (12:30 -0700)]
[3.12] gh-107091: Fix some uses of :c:member: role (GH-107129) (GH-107310)
(cherry picked from commit
af61cb9c7837ff3c11da79e3ee1cab3fdd0ba4da )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 26 Jul 2023 16:16:04 +0000 (09:16 -0700)]
[3.12] gh-106948: Update documentation nitpick_ignore for c:identifer domain (GH-107295) (#107297)
gh-106948: Update documentation nitpick_ignore for c:identifer domain (GH-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.
(cherry picked from commit
b1de3807b832b72dfeb66dd5646159d08d2cc74a )
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 26 Jul 2023 07:58:33 +0000 (00:58 -0700)]
[3.12] gh-106350: Tkinter: do not ignore return value of `mp_init()` (GH-106351) (GH-107258)
(cherry picked from commit
b5ae7c498438657a6ba0bf4cc216b9c2c93a06c7 )
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Miss Islington (bot) [Wed, 26 Jul 2023 07:13:22 +0000 (00:13 -0700)]
[3.12] gh-106368: Increase Argument Clinic CLI test coverage (GH-107277) (#107282)
(cherry picked from commit
579100f6d75a27429e7f8de74935d7bc3a3e44e6 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Tue, 25 Jul 2023 21:23:33 +0000 (14:23 -0700)]
[3.12] gh-106185: Deduplicate `CPythonTracebackErrorCaretTests` in `test_traceback` (GH-106187) (GH-107268)
(cherry picked from commit
7c89f1189229c5c67a3766e24ecf00cde658b7fd )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 25 Jul 2023 21:19:25 +0000 (14:19 -0700)]
[3.12] gh-106939: document ShareableList nul-strip quirk. (GH-107266) (#107269)
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:01:18 +0000 (13:01 -0700)]
[3.12] gh-107226: PyModule_AddObjectRef() should only be in the limited API 3.10 (GH-107227) (GH-107260)
(cherry picked from commit
698b01513550798886add5e06a1c3f9a89d7dfc6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 25 Jul 2023 18:48:59 +0000 (11:48 -0700)]
[3.12] gh-62519: Make pgettext search plurals when translation is not found (GH-107118) (GH-107134)
(cherry picked from commit
b3c34e55c053846beb35f5e4253ef237b3494bd0 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Ezio Melotti [Tue, 25 Jul 2023 16:25:07 +0000 (18:25 +0200)]
[3.12] Remove superflous whitespaces in `layout.html`. (#107251)
Remove superflous whitespaces in layout.html.
Miss Islington (bot) [Tue, 25 Jul 2023 15:42:46 +0000 (08:42 -0700)]
[3.12] gh-105699: Add some stress tests for subinterpreter creation (GH-106966) (gh-107012)
gh-105699: Add some stress tests for subinterpreter creation (GH-106966)
(cherry picked from commit
adda43dc0bcea853cbfa33126e5549c584cef8be )
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Miss Islington (bot) [Tue, 25 Jul 2023 15:35:49 +0000 (08:35 -0700)]
[3.12] gh-105059: Fix MSCV compiler warning on PyObject union (GH-107239) (#107248)
gh-105059: Fix MSCV compiler warning on PyObject union (GH-107239)
Use pragma to ignore the MSCV compiler warning on the PyObject
nameless union.
(cherry picked from commit
1c8fe9bdb624d356643ee569151a9e4f2963179a )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 25 Jul 2023 13:43:11 +0000 (06:43 -0700)]
[3.12] gh-107237: Fix test_udp_reconnection() of test_logging (GH-107238) (#107242)
gh-107237: Fix test_udp_reconnection() of test_logging (GH-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 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 25 Jul 2023 13:01:24 +0000 (06:01 -0700)]
[3.12] gh-105059: Use GCC/clang extension for PyObject union (GH-107232) (#107236)
gh-105059: Use GCC/clang extension for PyObject union (GH-107232)
Anonymous union is new in C11. To prevent compiler warning
when using -pedantic compiler option, use Clang and GCC
extension on C99 and older.
(cherry picked from commit
6261585d63a31835b65d445d99dc14cca3fe9cf5 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 25 Jul 2023 12:20:30 +0000 (05:20 -0700)]
[3.12] gh-106996: Add a how-to section to the turtle documentation (GH-107153) (#107233)
Co-authored-by: Daniele Procida <daniele@vurt.org>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 25 Jul 2023 10:32:45 +0000 (03:32 -0700)]
[3.12] gh-106774: Update bundled pip version to 23.2.1 (GH-106775) (gh-107222)
gh-106774: Update bundled pip version to 23.2.1 (GH-106775)
Carl Meyer [Mon, 24 Jul 2023 21:13:17 +0000 (15:13 -0600)]
[3.12] gh-106917: fix super classmethod calls to non-classmethods (GH-106977). (#107204)
(cherry picked from commit
e5d5522612e03af3941db1d270bf6caebf330b8a )
Miss Islington (bot) [Mon, 24 Jul 2023 20:59:51 +0000 (13:59 -0700)]
[3.12] gh-102304: Rename _Py_IncRefTotal_DO_NOT_USE_THIS() (GH-107193) (#107199)
gh-102304: Rename _Py_IncRefTotal_DO_NOT_USE_THIS() (GH-107193)
* Rename _Py_IncRefTotal_DO_NOT_USE_THIS() to _Py_INCREF_IncRefTotal()
* Rename _Py_DecRefTotal_DO_NOT_USE_THIS() to _Py_DECREF_DecRefTotal()
* Remove temporary _Py_INC_REFTOTAL() and _Py_DEC_REFTOTAL() macros
(cherry picked from commit
8ebc9fc321ba1eeb3282c2170f351c54956893e6 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 24 Jul 2023 20:13:07 +0000 (13:13 -0700)]
[3.12] gh-98608: Move PyInterpreterConfig to pylifecycle.h (GH-107191) (#107198)
gh-98608: Move PyInterpreterConfig to pylifecycle.h (GH-107191)
Move PyInterpreterConfig structure and associated macros from
initconfig.h to pylifecycle.h: it's not related to the Python
Initialization Configuration.
(cherry picked from commit
e717b47ed8ae7017f0bfb835fe673aa836e8fcca )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 24 Jul 2023 19:54:42 +0000 (12:54 -0700)]
[3.12] GH-96803: Move PyUnstable_InterpreterFrame_GetCode() to Python.h (GH-107188) (#107195)
GH-96803: Move PyUnstable_InterpreterFrame_GetCode() to Python.h (GH-107188)
Declare the following 3 PyUnstable functions in
Include/cpython/pyframe.h rather than Include/cpython/frameobject.h,
so they are now provided by the standard "GH-include <Python.h>".
(cherry picked from commit
837fa5c0cd92e70f625377c9ffb7ac31a23d7d63 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 24 Jul 2023 19:19:36 +0000 (12:19 -0700)]
[3.12] gh-106368: Increase Argument Clinic CLI test coverage (GH-107156) (#107189)
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) [Mon, 24 Jul 2023 16:30:22 +0000 (09:30 -0700)]
[3.12] gh-107017: Change Chapter Strings to Texts in the Introduction chapter. (GH-107104) (#107167)
Co-authored-by: TommyUnreal <45427816+TommyUnreal@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 24 Jul 2023 15:32:51 +0000 (08:32 -0700)]
[3.12] Docs: Add missing markup to Argument Clinic docs (GH-106876) (#107181)
(cherry picked from commit
ff5f94b72c8aad8e45c397c263dbe7f19221735f )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
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:16 +0000 (06:06 -0700)]
[3.12] Fix PyVectorcall_Function doc versionadded (GH-107140) (#107173)
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:03:01 +0000 (05:03 -0700)]
[3.12] Docs: Remove duplicate word in Argument Clinic howto heading (GH-107169) (#107171)
(cherry picked from commit
ebe44a5155e9abc70c4b8914ad26b27c2b84f72b )
Co-authored-by: Hakan Celik <hakancelikdev@gmail.com>
Miss Islington (bot) [Sun, 23 Jul 2023 22:00:51 +0000 (15:00 -0700)]
[3.12] gh-105291: Add link to migration guide for distutils (GH-107130) (#107160)
Co-authored-by: cLupus <cLupus@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sun, 23 Jul 2023 21:13:23 +0000 (14:13 -0700)]
[3.12] gh-106948: Docs: Disable links for C standard library functions, OS utility functions and system calls (GH-107062) (#107154)
(cherry picked from commit
b447e19e720e6781025432a40eb72b1cc93ac944 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 23 Jul 2023 13:59:50 +0000 (06:59 -0700)]
[3.12] gh-107017: Analolgy to Pascal and C replaced. (GH-107025) (#107124)
(cherry picked from commit
e59da0c4f283b966ccb175fb94460f58211a9704 )
Co-authored-by: TommyUnreal <45427816+TommyUnreal@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Sviatoslav Sydorenko [Sun, 23 Jul 2023 12:58:20 +0000 (14:58 +0200)]
[3.12] Introduce a gate/check GHA job (GH-97533) (#107114)
(cherry picked from commit
e7cd557 )
Miss Islington (bot) [Sun, 23 Jul 2023 12:29:08 +0000 (05:29 -0700)]
[3.12] bpo-18319: gettext() can retrieve a message even if a plural form exists (GH-19869) (#107108)
(cherry picked from commit
54632528eeba841e4a8cc95ecbd84c9aca8eef57 )
Co-authored-by: Gilles Bassière <gbassiere@gmail.com>
Miss Islington (bot) [Sun, 23 Jul 2023 12:28:28 +0000 (05:28 -0700)]
[3.12] gh-106186: Don't report MultipartInvariantViolationDefect for valid multipart emails when parsing header only (GH-107016) (#107111)
(cherry picked from commit
c65592c4d6d7552fb6284442906a96a6874cb266 )
Co-authored-by: htsedebenham <31847376+htsedebenham@users.noreply.github.com>
Miss Islington (bot) [Sun, 23 Jul 2023 11:50:21 +0000 (04:50 -0700)]
[3.12] gh-107091: Fix the use of some C domain roles (GH-107092) (GH-107113)
(cherry picked from commit
08a228da05a7aec937b65eea21f4091fa3c6b5cf )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Moritz Neeb [Sun, 23 Jul 2023 10:26:05 +0000 (12:26 +0200)]
[3.12] gh-106969: Indicate no modules were added in 3.10 & 3.12 (GH-106988) (#107094)
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:22:05 +0000 (12:22 +0200)]
[3.12] gh-106996: Add the basics of a turtle graphics tutorial (GH-107072) (#107109)
Miss Islington (bot) [Sun, 23 Jul 2023 10:00:31 +0000 (03:00 -0700)]
[3.12] gh-101100: Fix some broken sphinx references (GH-107095) (#107103)
(cherry picked from commit
f5147c0cfbd7943ff10917225448c36a53f9828d )
Co-authored-by: wulmer <wulmer@users.noreply.github.com>
Miss Islington (bot) [Sun, 23 Jul 2023 09:44:39 +0000 (02:44 -0700)]
[3.12] gh-106976: alphabetise bullets by module name task2-3 (GH-107005) (#107106)
Co-authored-by: littlebutt's workshop <luogan199686@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 23 Jul 2023 09:36:10 +0000 (02:36 -0700)]
[3.12] gh-54738: Add argparse i18n howto (GH-104562) (#107102)
(cherry picked from commit
dcd7acb04a719d8d30c8d03b80d3d48b6c035e14 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Sviatoslav Sydorenko [Sun, 23 Jul 2023 09:35:17 +0000 (11:35 +0200)]
[3.12] Convert `doc.yml` workflow to be reusable (GH-103914 + GH-105151) (#107042)
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 )
Miss Islington (bot) [Sun, 23 Jul 2023 09:34:28 +0000 (02:34 -0700)]
[3.12] gh-75371: reformat Makefile.pre.in to accommodate for empty FRAMEWORKALTINSTALLLAST (GH-107035) (#107049)
gh-75371: reformat Makefile.pre.in to accommodate for empty FRAMEWORKALTINSTALLLAST (GH-107035)
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:51 +0000 (12:24 +0300)]
[3.12] gh-106948: Add standard external names to nitpick_ignore (GH-106949) (#107060)
* [3.12] gh-106948: Add standard external names to nitpick_ignore (GH-106949)
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 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Delete 2023-05-31-18-37-57.gh-issue-105156.R4El5V.rst
Miss Islington (bot) [Sun, 23 Jul 2023 09:11:26 +0000 (02:11 -0700)]
[3.12] gh-107017: removed mention that C does it the same way (GH-107020) (#107097)
Co-authored-by: Jakub Červinka <cervinka.jakub.1989@gmail.com>
Miss Islington (bot) [Sun, 23 Jul 2023 09:01:24 +0000 (02:01 -0700)]
[3.12] gh-71261: Add paragraph on shadowing submodules with star imports (GH-107004) (#107100)
Co-authored-by: wulmer <wulmer@users.noreply.github.com>
Miss Islington (bot) [Sun, 23 Jul 2023 08:59:16 +0000 (01:59 -0700)]
[3.12] gh-102111: Add link to string escape sequences in re module (GH-106995) (#107096)
Co-authored-by: wulmer <wulmer@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sun, 23 Jul 2023 00:01:44 +0000 (17:01 -0700)]
[3.12] gh-106962: Detect mpicc in configure.ac (GH-106961) (#107081)
Don't let autoconf mistake MPI compilers for Intel compilers;
filter out the MPI case to prevent Intel specific options from being applied.
(cherry picked from commit
9a6b278769b9f24e0650283f6c347db8ae52b7b3 )
Co-authored-by: Lukas van de Wiel <30800501+LukasvdWiel@users.noreply.github.com>
Victor Stinner [Sat, 22 Jul 2023 22:20:38 +0000 (00:20 +0200)]
[3.12] GH-103082: Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS (#107069) (#107075)
GH-103082: Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS (#107069)
Rename private C API constants:
* Rename PY_MONITORING_UNGROUPED_EVENTS to _PY_MONITORING_UNGROUPED_EVENTS
* Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS
(cherry picked from commit
0927a2b25c059988e237108605ed8ab0c5459c53 )
Miss Islington (bot) [Sat, 22 Jul 2023 21:15:19 +0000 (14:15 -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 21:11:29 +0000 (14:11 -0700)]
[3.12] gh-107028: tiny textual changes in logging docs and docstrings (GH-107029) (GH-107065)
(cherry picked from commit
5e5a34ac3a827e040cd89426b1774fec2123336a )
Miss Islington (bot) [Sat, 22 Jul 2023 18:25:03 +0000 (11:25 -0700)]
[3.12] gh-83006: Document behavior of `shutil.disk_usage` for non-mounted filesystems on Unix (GH-107031) (#107047)
(cherry picked from commit
6e5f2235f3754307292c7d8d3698958136b5e311 )
Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Jul 2023 18:12:58 +0000 (11:12 -0700)]
[3.12] gh-107008: Document the curses module variables LINES and COLS (GH-107011) (GH-107057)
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>
Miss Islington (bot) [Sat, 22 Jul 2023 15:54:02 +0000 (08:54 -0700)]
[3.12] Fix Sphinx warnings in `re` module docs (GH-107044) (#107046)
Fix Sphinx warnings in `re` module docs (GH-107044)
(cherry picked from commit
149748ea4f552e6fe43a1d6d69bd65910a7c4813 )
Co-authored-by: wulmer <wulmer@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Jul 2023 14:30:28 +0000 (07:30 -0700)]
[3.12] gh-105090: Replace incorrect TLSv1.2 with TLSv1.3 (GH-105404) (#107040)
Co-authored-by: Jocelyn Castellano <admin@malwarefight.gq>
Sven Arends [Sat, 22 Jul 2023 13:41:38 +0000 (15:41 +0200)]
[3.12] Bump sphinx-lint to 0.6.8 (gh-106978) (#107023)
Miss Islington (bot) [Sat, 22 Jul 2023 13:01:36 +0000 (06:01 -0700)]
[3.12] gh-106989: Remove tok report warnings (GH-106993) (#107013)
Co-authored-by: Menelaos Kotoglou <contact@menelaoskotoglou.com>
Miss Islington (bot) [Sat, 22 Jul 2023 12:54:13 +0000 (05:54 -0700)]
[3.12] Reformat code block to make it easier to read (GH-106965) (#107010)
(cherry picked from commit
ed491d9f782480fb00535abcf667027e0e323287 )
Co-authored-by: Joe Kaufeld <opensource@joekaufeld.com>
Miss Islington (bot) [Sat, 22 Jul 2023 12:48:41 +0000 (05:48 -0700)]
[3.12] gh-106714: Fix test_capi to not write a coredump (GH-107007) (#107009)
gh-106714: Fix test_capi to not write a coredump (GH-107007)
test_capi: Fix test_no_FatalError_infinite_loop() to no longer write
a coredump, by using test.support.SuppressCrashReport.
(cherry picked from commit
4a1026d7647c084b0dc80dd49163d16ba12a2e55 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Sat, 22 Jul 2023 10:48:35 +0000 (03:48 -0700)]
[3.12] gh-106368: Increase coverage for Argument Clinic output directive (GH-106979) (#106994)
(cherry picked from commit
ee5c01b473eeadb007b9f330db3143e34e46038b )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Sat, 22 Jul 2023 09:06:46 +0000 (02:06 -0700)]
[3.12] gh-106970: Fix Argument Clinic 'destination <name> clear' command (GH-106972) (#106983)
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 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Sat, 22 Jul 2023 08:40:37 +0000 (01:40 -0700)]
[3.12] gh-106973: Change non-integral to non-integer in "3.12 What's New" (GH-106984) (#106986)
Co-authored-by: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com>
Miss Islington (bot) [Fri, 21 Jul 2023 20:28:22 +0000 (13:28 -0700)]
[3.12] gh-105699: Fix an Interned Strings Crasher (gh-106930) (#106963)
gh-105699: Fix an Interned Strings Crasher (gh-106930)
A static (process-global) str object must only have its "interned" state cleared when no longer interned in any interpreters. They are the only ones that can be shared by interpreters so we don't have to worry about any other str objects.
We trigger clearing the state with the main interpreter, since no other interpreters may exist at that point and _PyUnicode_ClearInterned() is only called during interpreter finalization.
We do not address here the fact that a string will only be interned in the first interpreter that interns it. In any subsequent interpreters str.state.interned is already set so _PyUnicode_InternInPlace() will skip it. That needs to be addressed separately from fixing the crasher.
(cherry picked from commit
87e7cb09e4258c4deb01a07dc52c1021907195d7 )
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Miss Islington (bot) [Fri, 21 Jul 2023 20:27:52 +0000 (13:27 -0700)]
[3.12] gh-105699: Fix a Crasher Related to a Deprecated Global Variable (gh-106923) (#106964)
gh-105699: Fix a Crasher Related to a Deprecated Global Variable (gh-106923)
There was a slight race in _Py_ClearFileSystemEncoding() (when called from _Py_SetFileSystemEncoding()), between freeing the value and setting the variable to NULL, which occasionally caused crashes when multiple isolated interpreters were used. (Notably, I saw at least 10 different, seemingly unrelated spooky-action-at-a-distance, ways this crashed. Yay, free threading!) We avoid the problem by only setting the global variables with the main interpreter (i.e. runtime init).
(cherry picked from commit
0ba07b2108d4763273f3fb85544dde34c5acd40a )
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Serhiy Storchaka [Fri, 21 Jul 2023 11:51:00 +0000 (14:51 +0300)]
[3.12] gh-106892: Use roles :data: and :const: for referencing module variables (GH-106894) (GH-106954)
(cherry picked from commit
d036db728ea3d54509cbad06df74e2d9a31fbec8 )
Serhiy Storchaka [Fri, 21 Jul 2023 11:49:39 +0000 (14:49 +0300)]
[3.12] gh-106909: Use role :const: for referencing module constants (GH-106910) (GH-106956)
(cherry picked from commit
4b9948617f91175783609769aa6160e5b49b9ccc )
Miss Islington (bot) [Fri, 21 Jul 2023 11:48:50 +0000 (04:48 -0700)]
[3.12] gh-47146: Fix reference counting in _testcapi.structmember initializer (GH-106862) (GH-106953)
(cherry picked from commit
8d397ee8259fa0f81598a452438fc335267ca260 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Fri, 21 Jul 2023 11:48:15 +0000 (14:48 +0300)]
[3.12] gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920) (GH-106951)
(cherry picked from commit
fcc816dbff7ca66c26f57a506e4d2330fe41d0ff )
Miss Islington (bot) [Fri, 21 Jul 2023 06:32:30 +0000 (23:32 -0700)]
[3.12] gh-106368: Increase Argument Clinic test coverage for IndentStack (GH-106933) (#106943)
(cherry picked from commit
8d228cf66f316803e95685d6553084f3d60cd9c5 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Fri, 21 Jul 2023 06:18:18 +0000 (23:18 -0700)]
[3.12] Docs: Argument Clinic: Add Background and Tutorial top-level sections (GH-106904) (#106945)
Docs: Argument Clinic: Add Background and Tutorial top-level sections (GH-106904)
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>
Gregory P. Smith [Fri, 21 Jul 2023 04:05:46 +0000 (21:05 -0700)]
[3.12] gh-106669: Revert "gh-102988: Detect email address parsing errors ... (GH-105127)" (GH-106733) (#106941)
This reverts commit
18dfbd035775c15533d13a98e56b1d2bf5c65f00 .
Adds a regression test from the issue.
See https://github.com/python/cpython/issues/106669..
(cherry picked from commit
a31dea1feb61793e48fa9aa5014f358352205c1d )
Miss Islington (bot) [Thu, 20 Jul 2023 23:11:52 +0000 (16:11 -0700)]
[3.12] Fix typo in tkinter docs (GH-106936) (#106937)
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) [Thu, 20 Jul 2023 09:29:31 +0000 (02:29 -0700)]
[3.12] Fix typo in 3.11.4 changelog: urllib.request.Requst -> Request (GH-106830) (#106912)
Fix typo in 3.11.4 changelog: urllib.request.Requst -> Request (GH-106830)
(cherry picked from commit
009e8f084c4cbb1f43d40b24b7f71fb189bbe36b )
Co-authored-by: Zach Brantmeier <brantmeierz@gmail.com>
Miss Islington (bot) [Wed, 19 Jul 2023 20:03:56 +0000 (13:03 -0700)]
[3.12] gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH-106901) (#106902)
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>
Miss Islington (bot) [Wed, 19 Jul 2023 11:34:54 +0000 (04:34 -0700)]
[3.12] gh-104090: Fix unittest collectedDurations resources leak (GH-106795) (#106888)
gh-104090: Fix unittest collectedDurations resources leak (GH-106795)
(cherry picked from commit
70b961ed93f67e34d0624e178f6029c886afaeee )
Co-authored-by: Yonatan Bitton <bityob@gmail.com>
Miss Islington (bot) [Tue, 18 Jul 2023 23:16:19 +0000 (16:16 -0700)]
[3.12] Docs: Argument Clinic: Group guides about default values (GH-106872) (#106874)
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>
Serhiy Storchaka [Tue, 18 Jul 2023 12:14:10 +0000 (15:14 +0300)]
[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 )
Miss Islington (bot) [Tue, 18 Jul 2023 10:24:44 +0000 (03:24 -0700)]
[3.12] Docs: Normalise Argument Clinic advanced topics headings (GH-106842) (#106853)
(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 07:03:59 +0000 (10:03 +0300)]
[3.12] gh-86493: Fix possible leaks in modules initialization: _curses_panel, _decimal, posix, xxsubtype (GH-106767) (#106849)
(cherry picked from commit
745492355b94d109e47827e5865846f25ae42d26 )
Miss Islington (bot) [Tue, 18 Jul 2023 07:01:22 +0000 (00:01 -0700)]
[3.12] gh-106719: Fix __annotations__ getter and setter in the type and module types (GH-106720) (GH-106848)
gh-106719: Fix __annotations__ getter and setter in the type and module types (GH-106720)
No longer suppress arbitrary errors. Simplify the code.
(cherry picked from commit
e1c295e3da9ff5a3eb6b009a1f821d80e564ac87 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 17 Jul 2023 22:31:17 +0000 (15:31 -0700)]
[3.12] gh-101538: Add experimental wasi-threads build (GH-101537) (#106834)
(cherry picked from commit
d8f87cdf94a6533c5cf2d25e09e6fa3eb06720b9 )
Co-authored-by: YAMAMOTO Takashi <yamamoto@midokura.com>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Mon, 17 Jul 2023 21:20:59 +0000 (14:20 -0700)]
[3.12] gh-106368: Increase Argument Clinic test coverage for cpp.Monitor (GH-106833) (#106838)
(cherry picked from commit
22379c60ab8f8b49e75da9bd032a8722af50b409 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Mon, 17 Jul 2023 20:40:15 +0000 (13:40 -0700)]
[3.12] gh-106831: Fix NULL check of d2i_SSL_SESSION() result in _ssl.c (GH-106832) (#106835)
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>
Miss Islington (bot) [Mon, 17 Jul 2023 16:32:17 +0000 (09:32 -0700)]
[3.12] gh-106687: _ssl: use uint64_t for SSL options (GH-106700) (#106827)
gh-106687: _ssl: use uint64_t for SSL options (GH-106700)
SSL_CTX_get_options() uses uint64_t for options:
https://www.openssl.org/docs/man3.1/man3/SSL_CTX_get_options.html
Fix this compiler warning on Windows with MSC:
conversion from 'uint64_t' to 'long', possible loss of data
(cherry picked from commit
ad95c7253a70e559e7d3f25d53f4772f28bb8b44 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 17 Jul 2023 08:15:35 +0000 (01:15 -0700)]
[3.12] gh-106780: Add __match_args__ to tutorial example (GH-106784) (#106819)
Add Point definition with this attribute before example
that needs it.
(cherry picked from commit
7aa89e505d893cd5e6f33b84d66e5fa769089931 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 17 Jul 2023 02:47:58 +0000 (19:47 -0700)]
[3.12] Add more recipe tests. Make the factor recipe a bit faster and clearer. (GH-106817) (GH-106818)