]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.10] Revert "[3.10] gh-107077: Raise SSLCertVerificationError even if the error...
Pablo Galindo Salgado [Thu, 3 Aug 2023 20:35:42 +0000 (21:35 +0100)] 
[3.10] Revert "[3.10] gh-107077: Raise SSLCertVerificationError even if the error is set via SSL_ERROR_SYSCALL (GH-107586) (#107589)" (#107602)

2 years ago[3.10] gh-107077: Raise SSLCertVerificationError even if the error is set via SSL_ERR...
Miss Islington (bot) [Thu, 3 Aug 2023 14:09:32 +0000 (07:09 -0700)] 
[3.10] gh-107077: Raise SSLCertVerificationError even if the error is set via SSL_ERROR_SYSCALL (GH-107586) (#107589)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: T. Wouters <thomas@python.org>
2 years ago[3.10] gh-105090: Replace incorrect TLSv1.2 with TLSv1.3 (GH-105404) (#107039)
Miss Islington (bot) [Sat, 22 Jul 2023 14:30:09 +0000 (07:30 -0700)] 
[3.10] gh-105090: Replace incorrect TLSv1.2 with TLSv1.3 (GH-105404) (#107039)

Co-authored-by: Jocelyn Castellano <admin@malwarefight.gq>
2 years ago[3.10] gh-105993: Add possible `None` return type to `asyncio.EventLoop.start_tls...
Miss Islington (bot) [Wed, 5 Jul 2023 11:21:19 +0000 (04:21 -0700)] 
[3.10] gh-105993: Add possible `None` return type to `asyncio.EventLoop.start_tls` docs (GH-105995) (#106190)

(cherry picked from commit 6b52a581c151914e59c8c367a03bc7309713a73b)

Co-authored-by: Sam Bull <git@sambull.org>
2 years ago[3.10] CI: Bump macOS build to use OpenSSL v3.0 (GH-105538) (#105869)
Miss Islington (bot) [Wed, 5 Jul 2023 11:20:29 +0000 (04:20 -0700)] 
[3.10] CI: Bump macOS build to use OpenSSL v3.0 (GH-105538) (#105869)

(cherry picked from commit 34e93d3998bab8acd651c50724eb1977f4860a08)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.10] [3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh...
Miss Islington (bot) [Wed, 5 Jul 2023 11:18:39 +0000 (04:18 -0700)] 
[3.10] [3.11] Add single value `agen.athrow(value)` signature to the 3.11 docs gh-105269  (GH-105468) (#105480)

(cherry picked from commit acf3916e84158308660ed07c474a564e045d6884)

Co-authored-by: Federico Caselli <CaselIT@users.noreply.github.com>
2 years ago[3.10] Clarify the supported cases in the tokenize module (GH-105569) (#105575)
Miss Islington (bot) [Fri, 9 Jun 2023 16:00:59 +0000 (09:00 -0700)] 
[3.10] Clarify the supported cases in the tokenize module (GH-105569) (#105575)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 years agoPost 3.10.12
Pablo Galindo [Tue, 6 Jun 2023 22:49:22 +0000 (23:49 +0100)] 
Post 3.10.12

2 years agoPython 3.10.12 v3.10.12
Pablo Galindo [Tue, 6 Jun 2023 22:29:37 +0000 (23:29 +0100)] 
Python 3.10.12

2 years ago[3.10] gh-89412: Add missing attributes (added in 3.10) to traceback module docs...
Miss Islington (bot) [Mon, 5 Jun 2023 17:02:31 +0000 (10:02 -0700)] 
[3.10] gh-89412: Add missing attributes (added in 3.10) to traceback module docs (GH-105046) (#105329)

(cherry picked from commit a4f72fa39a9d391c7b931ba1906d81da4ae01949)

Co-authored-by: Jakub Kuczys <me@jacken.men>
2 years ago[3.10] gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174) (GH...
Gregory P. Smith [Mon, 5 Jun 2023 16:07:30 +0000 (09:07 -0700)] 
[3.10] gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174) (GH-105200) (#105204)

Upgrade builds to OpenSSL 1.1.1u.

This OpenSSL version addresses a pile if less-urgent CVEs since 1.1.1t.

The Mac/BuildScript/build-installer.py was already updated.

Also updates _ssl_data_111.h from OpenSSL 1.1.1u, _ssl_data_300.h from 3.0.9.

Manual edits to the _ssl_data_300.h file prevent it from removing any existing definitions in case those exist in some peoples builds and were important (avoiding regressions during backporting).

(cherry picked from commit ede89af).
(cherry picked from commit a5d2b546c1b0b73d0695b98838a3ddd497382999)
(cherry picked from commit f90d3f68db720bd6d0deda8cc0030339ccd43858)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.10] gh-105184: document that marshal functions can fail and need to be checked...
Miss Islington (bot) [Mon, 5 Jun 2023 16:06:43 +0000 (09:06 -0700)] 
[3.10] gh-105184: document that marshal functions can fail and need to be checked with PyErr_Occurred (GH-105185) (#105220)

(cherry picked from commit ee26ca13a129da8cf549409d0a1b2e892ff2b4ec)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2 years ago[3.10] Update GitHub CI workflow for macOS. (GH-105304)
Ned Deily [Mon, 5 Jun 2023 06:42:02 +0000 (02:42 -0400)] 
[3.10] Update GitHub CI workflow for macOS. (GH-105304)

2 years ago[3.10] Skip test_sundry on Windows APPX tests (GH-104944)
Steve Dower [Thu, 25 May 2023 22:03:04 +0000 (23:03 +0100)] 
[3.10] Skip test_sundry on Windows APPX tests (GH-104944)

2 years ago[3.10] Improves the Windows MSI test run on PR (GH-104929)
Steve Dower [Thu, 25 May 2023 16:45:47 +0000 (17:45 +0100)] 
[3.10] Improves the Windows MSI test run on PR (GH-104929)

Correctly set the exit code when builds fail
Also build docs as part of the test

2 years ago[3.10] gh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env` if ASAN is...
Miss Islington (bot) [Fri, 19 May 2023 21:22:44 +0000 (14:22 -0700)] 
[3.10] gh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env` if ASAN is enabled (GH-104667) (#104669)

gh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env` if ASAN is enabled (GH-104667)

Skip test_subprocess.ProcessTestCase.test_empty_env if ASAN is enabled.
(cherry picked from commit c3f43bfb4bec39ff8f2c36d861a3c3a243bcb3af)

Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
2 years ago[3.10] [3.11] gh-102153: Start stripping C0 control and space chars in `urlsplit...
Miss Islington (bot) [Wed, 17 May 2023 23:06:06 +0000 (16:06 -0700)] 
[3.10] [3.11] gh-102153: Start stripping C0 control and space chars in `urlsplit` (GH-102508) (GH-104575) (#104592)

gh-102153: Start stripping C0 control and space chars in `urlsplit` (GH-102508)

`urllib.parse.urlsplit` has already been respecting the WHATWG spec a bit GH-25595.

This adds more sanitizing to respect the "Remove any leading C0 control or space from input" [rule](https://url.spec.whatwg.org/GH-url-parsing:~:text=Remove%20any%20leading%20and%20trailing%20C0%20control%20or%20space%20from%20input.) in response to [CVE-2023-24329](https://nvd.nist.gov/vuln/detail/CVE-2023-24329).

I simplified the docs by eliding the state of the world explanatory
paragraph in this security release only backport.  (people will see
that in the mainline /3/ docs)

---------

(cherry picked from commit 2f630e1ce18ad2e07428296532a68b11dc66ad10)
(cherry picked from commit 610cc0ab1b760b2abaac92bd256b96191c46b941)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
2 years ago[3.10] gh-102950: Implement PEP 706 – Filter for tarfile.extractall (GH-102953) ...
Matěj Cepl [Wed, 10 May 2023 11:43:00 +0000 (13:43 +0200)] 
[3.10] gh-102950: Implement PEP 706 – Filter for tarfile.extractall (GH-102953) (GH-104128)

- Backport b52ad18a766700be14382ba222033b2d75a33521
- Backport c8c3956d905e019101038b018129a4c90c9c9b8f
- Remove the DeprecationWarning
- Adjust docs
- Remove new `__all__` entries

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years ago[3.10] gh-99889: Fix directory traversal security flaw in uu.decode() (GH-104096...
Miss Islington (bot) [Tue, 9 May 2023 16:46:47 +0000 (09:46 -0700)] 
[3.10] gh-99889: Fix directory traversal security flaw in uu.decode() (GH-104096) (#104330)

gh-99889: Fix directory traversal security flaw in uu.decode() (GH-104096)

* Fix directory traversal security flaw in uu.decode()
* also check absolute paths and os.altsep
* Add a regression test.

---------

(cherry picked from commit 0aeda297931820436a50b78f4f7f0597274b5df4)

 [Google]

Co-authored-by: Sam Carroll <70000253+samcarroll42@users.noreply.github.com>
2 years ago[3.10] gh-104049: do not expose on-disk location from SimpleHTTPRequestHandler (GH...
Miss Islington (bot) [Tue, 9 May 2023 15:21:53 +0000 (08:21 -0700)] 
[3.10] gh-104049: do not expose on-disk location from SimpleHTTPRequestHandler (GH-104067) (#104119)

gh-104049: do not expose on-disk location from SimpleHTTPRequestHandler (GH-104067)

Do not expose the local server's on-disk location from `SimpleHTTPRequestHandler` when generating a directory index. (unnecessary information disclosure)

---------

(cherry picked from commit c7c3a60c88de61a79ded9fdaf6bc6a29da4efb9a)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years agogh-103935: Use `io.open_code()` when executing code in trace and profile modules...
Steve Dower [Thu, 27 Apr 2023 21:44:07 +0000 (22:44 +0100)] 
gh-103935: Use `io.open_code()` when executing code in trace and profile modules (GH-103947)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2 years ago[3.10] gh-103207: Fix Welcome formatting issues when macOS Installer is run in dark... 103401/head
Ned Deily [Thu, 6 Apr 2023 03:44:19 +0000 (23:44 -0400)] 
[3.10] gh-103207: Fix Welcome formatting issues when macOS Installer is run in dark mode. (GH-103304)

2 years agogh-103262: Fixes Windows installer build to work with latest compilers (GH-103281)
Steve Dower [Wed, 5 Apr 2023 16:02:04 +0000 (17:02 +0100)] 
gh-103262: Fixes Windows installer build to work with latest compilers (GH-103281)

2 years agogh-102899: Fix doc link for getting filesystem error handler (GH-102901)
Miss Islington (bot) [Wed, 5 Apr 2023 15:03:45 +0000 (08:03 -0700)] 
gh-102899: Fix doc link for getting filesystem error handler (GH-102901)

(cherry picked from commit fdd0fff277a55c010a4da0a7af0e986e38560545)

Co-authored-by: Olivier Gayot <olivier.gayot@sigexec.com>
2 years agogh-81762: Clarify and simplify description of print's flush param (GH-103264)
Miss Islington (bot) [Wed, 5 Apr 2023 11:24:43 +0000 (04:24 -0700)] 
gh-81762: Clarify and simplify description of print's flush param (GH-103264)

(cherry picked from commit c396b6ddf3da784349bac9ebf7f28c55bde016ea)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoMerge remote-tracking branch 'upstream/3.10' into 3.10
Pablo Galindo [Wed, 5 Apr 2023 11:20:30 +0000 (12:20 +0100)] 
Merge remote-tracking branch 'upstream/3.10' into 3.10

2 years agoPost 3.10.11
Pablo Galindo [Wed, 5 Apr 2023 11:20:17 +0000 (12:20 +0100)] 
Post 3.10.11

2 years agoImprove some grammar in the socket docs (GH-103254)
Miss Islington (bot) [Tue, 4 Apr 2023 22:55:11 +0000 (15:55 -0700)] 
Improve some grammar in the socket docs (GH-103254)

(cherry picked from commit bceb9e00ad2998e5193ad5b477e92a114dd31024)

Co-authored-by: Tim Burke <tim.burke@gmail.com>
2 years agoPython 3.10.11 v3.10.11
Pablo Galindo [Tue, 4 Apr 2023 21:56:31 +0000 (22:56 +0100)] 
Python 3.10.11

2 years ago[3.10] gh-103207: Add instructions to the macOS installer welcome display on how...
Ned Deily [Tue, 4 Apr 2023 18:42:10 +0000 (14:42 -0400)] 
[3.10] gh-103207: Add instructions to the macOS installer welcome display on how to workaround the macOS 13 Ventura “The installer encountered an error” failure. (GH-103253)

2 years agogh-103109: Document ignore_warnings() test support helper (GH-103110)
Miss Islington (bot) [Sun, 2 Apr 2023 22:38:58 +0000 (15:38 -0700)] 
gh-103109: Document ignore_warnings() test support helper (GH-103110)

(cherry picked from commit 32937d6aa414ec7db5c63ef277f21db1880b3af4)

Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoMinor docs improvements fix for `codeop` (GH-103123)
Miss Islington (bot) [Thu, 30 Mar 2023 22:58:36 +0000 (15:58 -0700)] 
Minor docs improvements fix for `codeop` (GH-103123)

(cherry picked from commit c1e71ce56fdb3eab62ad3190d09130f800e54610)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years agogh-103099: Link mypy docs from typing.rst (GH-103100)
Miss Islington (bot) [Thu, 30 Mar 2023 08:41:04 +0000 (01:41 -0700)] 
gh-103099: Link mypy docs from typing.rst (GH-103100)

(cherry picked from commit fda95aa19447fe444ac2670afbf98ec42aca0c6f)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years ago[3.10] gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc output...
Miss Islington (bot) [Wed, 29 Mar 2023 22:30:27 +0000 (15:30 -0700)] 
[3.10] gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc output (GH-103113) (#103120)

(cherry picked from commit d052a383f1a0c599c176a12c73a761ca00436d8b)

Co-authored-by: Bernhard Wagner <github.comNotification20120125@xmlizer.net>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Éric <merwok@netwok.org>
2 years agogh-103097: Add workaround for Windows ARM64 compiler bug (GH-103098)
Steve Dower [Wed, 29 Mar 2023 14:33:39 +0000 (15:33 +0100)] 
gh-103097: Add workaround for Windows ARM64 compiler bug (GH-103098)

See https://developercommunity.visualstudio.com/t/Regression-in-MSVC-1433-1434-ARM64-co/10224361 for details of the issue. It only applies to version 14.34.

2 years ago[3.10] gh-102582: Fix invalid JSON in Doc/howto/logging-cookbook.rst (GH-102635)...
Miss Islington (bot) [Wed, 29 Mar 2023 09:05:29 +0000 (02:05 -0700)] 
[3.10] gh-102582: Fix invalid JSON in Doc/howto/logging-cookbook.rst (GH-102635) (GH-103107)

(cherry picked from commit d835b3f05de7e2d800138e5969eeb9656b0ed860)
Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
2 years ago[3.10] GH-87235: Make sure "python /dev/fd/9 9</path/to/script.py" works on macOS...
Miss Islington (bot) [Tue, 28 Mar 2023 12:13:37 +0000 (05:13 -0700)] 
[3.10] GH-87235: Make sure "python /dev/fd/9 9</path/to/script.py" works on macOS (GH-99768) (#99817)

On macOS all file descriptors for a particular file in /dev/fd
share the same file offset, that is ``open("/dev/fd/9", "r")`` behaves
more like ``dup(9)`` than a regular open.

This causes problems when a user tries to run "/dev/fd/9" as a script
because zipimport changes the file offset to try to read a zipfile
directory. Therefore change zipimport to reset the file offset after
trying to read the zipfile directory.
(cherry picked from commit d08fb257698e3475d6f69bb808211d39e344e5b2)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* Regen zipimport

---------

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2 years ago[3.10] GH-102711: Fix warnings found by clang (GH-102712) (#103076)
Miss Islington (bot) [Tue, 28 Mar 2023 09:27:41 +0000 (02:27 -0700)] 
[3.10] GH-102711: Fix warnings found by clang (GH-102712) (#103076)

There are some warnings if build python via clang:

Parser/pegen.c:812:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
_PyPegen_clear_memo_statistics()
                              ^
                               void

Parser/pegen.c:820:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
_PyPegen_get_memo_statistics()
                            ^
                             void

Fix it to make clang happy.

(cherry picked from commit 7703def37e4fa7d25c3d23756de8f527daa4e165)

Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
Co-authored-by: Chenxi Mao <chenxi.mao@suse.com>
2 years ago[3.10] gh-88233: zipfile: handle extras after a zip64 extra (GH-96161) (#102087)
Miss Islington (bot) [Tue, 28 Mar 2023 08:58:51 +0000 (01:58 -0700)] 
[3.10] gh-88233: zipfile: handle extras after a zip64 extra (GH-96161) (#102087)

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>
2 years ago[3.10] gh-101997: Update bundled pip version to 23.0.1 (GH-101998). (#102241)
Pradyun Gedam [Tue, 28 Mar 2023 08:57:55 +0000 (09:57 +0100)] 
[3.10] gh-101997: Update bundled pip version to 23.0.1 (GH-101998). (#102241)

(cherry picked from commit 89d9ff0f48c51a85920c7372a7df4a2204e32ea5)

2 years ago[3.10] GH-95494: Fix transport EOF handling in OpenSSL 3.0 (GH-95495) (#103007)
Miss Islington (bot) [Mon, 27 Mar 2023 14:14:24 +0000 (07:14 -0700)] 
[3.10] GH-95494: Fix transport EOF handling in OpenSSL 3.0 (GH-95495) (#103007)

GH-25309 enabled SSL_OP_IGNORE_UNEXPECTED_EOF by default, with a comment
that it restores OpenSSL 1.1.1 behavior, but this wasn't quite right.
That option causes OpenSSL to treat transport EOF as the same as
close_notify (i.e. SSL_ERROR_ZERO_RETURN), whereas Python actually has
distinct SSLEOFError and SSLZeroReturnError exceptions. (The latter is
usually mapped to a zero return from read.) In OpenSSL 1.1.1, the ssl
module would raise them for transport EOF and close_notify,
respectively. In OpenSSL 3.0, both act like close_notify.

Fix this by, instead, just detecting SSL_R_UNEXPECTED_EOF_WHILE_READING
and mapping that to the other exception type.

There doesn't seem to have been any unit test of this error, so fill in
the missing one. This had to be done with the BIO path because it's
actually slightly tricky to simulate a transport EOF with Python's fd
based APIs. (If you instruct the server to close the socket, it gets
confused, probably because the server's SSL object is still referencing
the now dead fd?)
(cherry picked from commit 420bbb783b43216cc897dc8914851899db37a31d)

Co-authored-by: David Benjamin <davidben@google.com>
2 years agoUpdate pdb docs for arguments (GH-102965)
Miss Islington (bot) [Sat, 25 Mar 2023 21:38:26 +0000 (14:38 -0700)] 
Update pdb docs for arguments (GH-102965)

(cherry picked from commit 027223db96b0464c49a74513f82a1bf25aa510bd)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years ago[3.10] gh-103025: fix a ctypes doc typo (GH-103026) (#103030)
Miss Islington (bot) [Sat, 25 Mar 2023 10:00:03 +0000 (03:00 -0700)] 
[3.10] gh-103025: fix a ctypes doc typo  (GH-103026) (#103030)

* gh-103025: fix two ctypes doc issues  (GH-103026)
(cherry picked from commit 0708437ad043657f992cb985fd5c37e1ac052f93)

2 years ago[3.10] gh-101100: Document PyObject_ClearWeakRefs and gzip's name (#103002)
Hugo van Kemenade [Sat, 25 Mar 2023 07:44:05 +0000 (09:44 +0200)] 
[3.10] gh-101100: Document PyObject_ClearWeakRefs and gzip's name (#103002)

2 years agogh-102980: Add tests for pdf's display, alias and where commands (GH-102981)
Miss Islington (bot) [Fri, 24 Mar 2023 21:09:11 +0000 (14:09 -0700)] 
gh-102980: Add tests for pdf's display, alias and where commands (GH-102981)

(cherry picked from commit ded9a7fc194a1d5c0e38f475a45f8f77dbe9c6bc)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years agogh-102873: logging.LogRecord docs: improve description of `msg` parameter (GH-102875)
Miss Islington (bot) [Fri, 24 Mar 2023 15:07:46 +0000 (08:07 -0700)] 
gh-102873: logging.LogRecord docs: improve description of `msg` parameter (GH-102875)

(cherry picked from commit f2e5a6ee628502d307a97f587788d7022a200229)

Co-authored-by: Amin Alaee <mohammadamin.alaee@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.10] gh-102027: Fix macro name (GH-102124) (#102917)
Miss Islington (bot) [Fri, 24 Mar 2023 12:40:32 +0000 (05:40 -0700)] 
[3.10] gh-102027: Fix macro name (GH-102124) (#102917)

gh-102027: Fix macro name (GH-102124)

This fixes the ssse3 / sse2 detection when sse4 is available.

(cherry picked from commit ea93bde4ece139d4152a59f2c38aa6568559447c)

Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2 years ago[3.10] gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (GH-96932...
Miss Islington (bot) [Fri, 24 Mar 2023 12:33:32 +0000 (05:33 -0700)] 
[3.10] gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (GH-96932) (#102919)

gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (GH-96932)
(cherry picked from commit af9c34f6ef8dceb21871206eb3e4d350f6e3d3dc)

Co-authored-by: Benjamin Fogle <benfogle@gmail.com>
2 years agoGH-100989: Revert Improve the accuracy of collections.deque docstrings (GH-102979)
Miss Islington (bot) [Fri, 24 Mar 2023 01:10:34 +0000 (18:10 -0700)] 
GH-100989: Revert Improve the accuracy of collections.deque docstrings (GH-102979)

(cherry picked from commit 7f01a11199864bcf230b243b99e8a51e9044675d)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years agogh-98239: Document that `inspect.getsource()` can raise `TypeError` (GH-101689)
Miss Islington (bot) [Thu, 23 Mar 2023 19:41:50 +0000 (12:41 -0700)] 
gh-98239: Document that `inspect.getsource()` can raise `TypeError` (GH-101689)

(cherry picked from commit b6132085ca5418f714eff6e31d1d03369d3fd1d9)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years agogh-102936: typing: document performance pitfalls of protocols decorated with `@runtim...
Miss Islington (bot) [Thu, 23 Mar 2023 18:28:11 +0000 (11:28 -0700)] 
gh-102936: typing: document performance pitfalls of protocols decorated with `@runtime_checkable` (GH-102937)

(cherry picked from commit 58d2b30c012c3a9fe5ab747ae47c96af09e0fd15)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.10] gh-102947: Improve traceback when calling `fields()` on a non-dataclass (...
Alex Waygood [Thu, 23 Mar 2023 15:13:05 +0000 (15:13 +0000)] 
[3.10] gh-102947: Improve traceback when calling `fields()` on a non-dataclass (#102948) (#102954)

2 years agogh-100989: Improve the accuracy of collections.deque docstrings (GH-100990)
Miss Islington (bot) [Wed, 22 Mar 2023 12:39:45 +0000 (05:39 -0700)] 
gh-100989: Improve the accuracy of collections.deque docstrings (GH-100990)

(cherry picked from commit c74073657e32b8872f91b3bbe1efa9af20adbea9)

Co-authored-by: Timo Ludwig <ti.ludwig@web.de>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoDocs: improve accuracy of sqlite3.Connection.interrupt() (GH-102904)
Miss Islington (bot) [Wed, 22 Mar 2023 11:59:56 +0000 (04:59 -0700)] 
Docs: improve accuracy of sqlite3.Connection.interrupt() (GH-102904)

(cherry picked from commit 7b2d53daccf5a6479e179535068fd9a841db44fc)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoDocs: improve the accuracy of the sqlite3.connect() timeout param (GH-102900)
Miss Islington (bot) [Wed, 22 Mar 2023 11:49:32 +0000 (04:49 -0700)] 
Docs: improve the accuracy of the sqlite3.connect() timeout param (GH-102900)

(cherry picked from commit c24f1f1e874c283bb11d8b9fbd661536ade19fe9)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agoDocs: improve accuracy of pdb alias example (GH-102892)
Miss Islington (bot) [Wed, 22 Mar 2023 11:41:54 +0000 (04:41 -0700)] 
Docs: improve accuracy of pdb alias example (GH-102892)

(cherry picked from commit e0c63b72671bf816d3073f1a6a9107f6c171cae7)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years agogh-102595: Document `PyObject_Format` c-api function (GH-102596)
Miss Islington (bot) [Wed, 22 Mar 2023 09:32:08 +0000 (02:32 -0700)] 
gh-102595: Document `PyObject_Format` c-api function (GH-102596)

(cherry picked from commit 910a64e3013bce821bfac75377cbe88bedf265de)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Def: https://github.com/python/cpython/blame/5ffdaf748d98da6065158534720f1996a45a0072/Include/abstract.hGH-L389

2 years agoAdd link to `sys.exit` function documentation (GH-102805)
Miss Islington (bot) [Tue, 21 Mar 2023 22:05:32 +0000 (15:05 -0700)] 
Add link to `sys.exit` function documentation (GH-102805)

* Add link to `sys.exit` function documentation

* Update Doc/library/os.rst

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* Update Doc/library/os.rst

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
---------

(cherry picked from commit 41ef502d740b96ca6333a2d0202df7cce4a84e7d)

Co-authored-by: David Poirier <1152277+david-poirier@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agogh-98608: Fix Failure-handling in new_interpreter() (gh-102658)
Miss Islington (bot) [Tue, 21 Mar 2023 19:10:36 +0000 (12:10 -0700)] 
gh-98608: Fix Failure-handling in new_interpreter() (gh-102658)

The error-handling code in new_interpreter() has been broken for a while.  We hadn't noticed because those code mostly doesn't fail.  (I noticed while working on gh-101660.)  The problem is that we try to clear/delete the newly-created thread/interpreter using itself, which just failed.  The solution is to switch back to the calling thread state first.

(cherry picked from commit d1b883b52a99427d234c20e4a92ddfa6a1da8880)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
https: //github.com/python/cpython/issues/98608

2 years ago[3.10] gh-102721: Improve coverage of `_collections_abc._CallableGenericAlias` (GH...
Nikita Sobolev [Fri, 17 Mar 2023 20:11:58 +0000 (23:11 +0300)] 
[3.10] gh-102721: Improve coverage of `_collections_abc._CallableGenericAlias` (GH-102790)

This is a manual backport of https://github.com/python/cpython/pull/102722 but without `typing.py` changes and without `TypeVarTuple` case, because it was added in 3.11

Automerge-Triggered-By: GH:AlexWaygood
2 years agoIncrease stack reserve size for Windows debug builds to avoid test crashes (GH-102776)
Steve Dower [Fri, 17 Mar 2023 11:37:56 +0000 (11:37 +0000)] 
Increase stack reserve size for Windows debug builds to avoid test crashes (GH-102776)

2 years ago[3.10] Fix outdated note about 'int' rounding or truncating (GH-102736) (#102767)
Miss Islington (bot) [Thu, 16 Mar 2023 20:43:03 +0000 (13:43 -0700)] 
[3.10] Fix outdated note about 'int' rounding or truncating (GH-102736) (#102767)

Fix outdated note about 'int' rounding or truncating (GH-102736)
(cherry picked from commit 405739f9166592104a5b0b945de92e28415ae972)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2 years agogh-94440: Fix issue of ProcessPoolExecutor shutdown hanging (GH-94468)
Miss Islington (bot) [Thu, 16 Mar 2023 05:08:11 +0000 (22:08 -0700)] 
gh-94440: Fix issue of ProcessPoolExecutor shutdown hanging (GH-94468)

Fix an issue of concurrent.futures ProcessPoolExecutor shutdown hanging.

(cherry picked from commit 2dc94634b50f0e5e207787e5ac1d56c68b22c3ae)

Co-authored-by: yonatanp <yonatan.perry@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years agogh-101100: Documenting --prefix and --exec-prefix. (GH-102695)
Miss Islington (bot) [Wed, 15 Mar 2023 22:14:00 +0000 (15:14 -0700)] 
gh-101100: Documenting --prefix and --exec-prefix. (GH-102695)

(cherry picked from commit 61b9ff35cbda0cc59816951a17de073968fc25c6)

Co-authored-by: Julien Palard <julien@palard.fr>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.10] Remove misformatted exclamation marks in docs (GH-102694) (#102717)
Hugo van Kemenade [Wed, 15 Mar 2023 07:26:46 +0000 (09:26 +0200)] 
[3.10] Remove misformatted exclamation marks in docs (GH-102694) (#102717)

Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in #98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
[2]: https://github.com/python/cpython/pull/98350#issuecomment-1285965759
[3]: https://github.com/python/cpython/pull/98350#issuecomment-1286394047

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Tom Levy <tomlevy93@gmail.com>
2 years agogh-101377: improving test_locale_calendar_formatweekday of calendar (GH-101378)
Miss Islington (bot) [Wed, 15 Mar 2023 02:59:49 +0000 (19:59 -0700)] 
gh-101377: improving test_locale_calendar_formatweekday of calendar (GH-101378)

---------

(cherry picked from commit 5e0865f22eed9f3f3f0e912c4ada196effbd8ce0)

Co-authored-by: Andre Hora <andrehora@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years agogh-102703: Fix typo in modules tutorial documentation (GH-102707)
Miss Islington (bot) [Wed, 15 Mar 2023 00:10:39 +0000 (17:10 -0700)] 
gh-102703: Fix typo in modules tutorial documentation (GH-102707)

**Before**
This prevents directories with a common name, such as ``string``, unintentionally hiding ...
**After**
This prevents directories with a common name, such as ``string``, from unintentionally hiding ...
(cherry picked from commit 0a539b5db312d126ff45dd4aa6a53d40a292c512)

Co-authored-by: Robert Prater (B. Eng) <robcprater@gmail.com>
2 years ago[3.10] gh-102354: change python3 to python in docs examples (GH-102696) (#102698)
Miss Islington (bot) [Tue, 14 Mar 2023 18:52:27 +0000 (11:52 -0700)] 
[3.10] gh-102354: change python3 to python in docs examples (GH-102696) (#102698)

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>
2 years agogh-100315: clarification to `__slots__` docs. (GH-102621)
Miss Islington (bot) [Tue, 14 Mar 2023 09:30:28 +0000 (02:30 -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>
2 years agodoc: Remove a duplicate 'versionchanged' in library/asyncio-task (gh-102677)
Miss Islington (bot) [Tue, 14 Mar 2023 02:26:24 +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>
2 years agogh-102627: Replace address pointing toward malicious web page (GH-102630)
Miss Islington (bot) [Mon, 13 Mar 2023 22:42:37 +0000 (15:42 -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>
2 years ago[3.10] Fix duplicated words in the docs (#102645)
Alex Waygood [Mon, 13 Mar 2023 14:31:25 +0000 (14:31 +0000)] 
[3.10] Fix duplicated words in the docs (#102645)

(cherry-picked from commit f6ca71a)

With grep utility found some duplicated words

Co-authored-by: Виталий Дмитриев <vitaldmit@bk.ru>
2 years ago[3.10] GH-101673: Fix pdb bug where local variable changes are lost after longlist...
Irit Katriel [Mon, 13 Mar 2023 14:24:01 +0000 (14:24 +0000)] 
[3.10] GH-101673: Fix pdb bug where local variable changes are lost after longlist (#101674) (#102633)

GH-101673: Fix pdb bug where local variable changes are lost after longlist (#101674)

(cherry picked from commit 5d677c556f03a34d1c2d86e4cc96025870c20c12)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
2 years agoFix broken link to MSDN (GH-102355)
Miss Islington (bot) [Mon, 13 Mar 2023 13:41:01 +0000 (06:41 -0700)] 
Fix broken link to MSDN (GH-102355)

(cherry picked from commit 9a8b66b58c74236959a01d579e2c156d9c2e7cb3)

Co-authored-by: 谭九鼎 <109224573@qq.com>
2 years agogh-101100: Fix Sphinx warnings in `turtle` module (GH-102340)
Miss Islington (bot) [Mon, 13 Mar 2023 11:11:34 +0000 (04:11 -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>
2 years agoGH-102537: Handle check for PYTHONTZPATH failing in zoneinfo test (GH-102538)
Miss Islington (bot) [Mon, 13 Mar 2023 11:11:09 +0000 (04:11 -0700)] 
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>
2 years agogh-102433: Add tests for how classes with properties interact with `isinstance()...
Miss Islington (bot) [Sat, 11 Mar 2023 01:45:40 +0000 (17:45 -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>
2 years agogh-101100: Fix sphinx warnings in `zipapp` and `zipfile` modules (GH-102526)
Miss Islington (bot) [Wed, 8 Mar 2023 08:44:34 +0000 (00:44 -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>
2 years ago[3.10] GH-102397: Fix segfault from race condition in signal handling (GH-102399...
Miss Islington (bot) [Wed, 8 Mar 2023 08:21:13 +0000 (00:21 -0800)] 
[3.10] GH-102397: Fix segfault from race condition in signal handling (GH-102399) (#102527)

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>
2 years ago[3.10] gh-101759: Update macOS installer SQLite 3.40.1 checksum (gh-102485) (GH-102489)
Miss Islington (bot) [Tue, 7 Mar 2023 01:32:53 +0000 (17:32 -0800)] 
[3.10] gh-101759: Update macOS installer SQLite 3.40.1 checksum (gh-102485) (GH-102489)

(cherry picked from commit f9cdeb7b99d408a2e884101ede576952510bcc9b)

Co-authored-by: Ned Deily <nad@python.org>
2 years agoAdd gettext support to tools/extensions/c_annotations.py (GH-101989)
Miss Islington (bot) [Mon, 6 Mar 2023 21:53:24 +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>
2 years ago[3.10] gh-102416: Do not memoize incorrectly loop rules in the parser (GH-102467...
Pablo Galindo Salgado [Mon, 6 Mar 2023 16:59:16 +0000 (17:59 +0100)] 
[3.10] gh-102416: Do not memoize incorrectly loop rules in the parser (GH-102467). (#102474)

2 years ago[3.10] gh-102444: Fix minor bugs in `test_typing` highlighted by pyflakes (#102445...
Alex Waygood [Sun, 5 Mar 2023 22:16:08 +0000 (22:16 +0000)] 
[3.10] gh-102444: Fix minor bugs in `test_typing` highlighted by pyflakes (#102445) (#102452)

(cherry picked from commit 96e1022)

2 years agoGH-102341: Improve the test function for pow (GH-102342)
Miss Islington (bot) [Sun, 5 Mar 2023 17:53:50 +0000 (09:53 -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>
2 years agoFix unused classes in a typing test (GH-102437)
Miss Islington (bot) [Sun, 5 Mar 2023 15:37:33 +0000 (07:37 -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
2 years agogh-101979: argparse: fix a bug where parentheses in metavar argument of add_argument...
Miss Islington (bot) [Sun, 5 Mar 2023 15:16:14 +0000 (07:16 -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>
2 years agogh-102356: Add thrashcan macros to filter object dealloc (GH-102426)
Miss Islington (bot) [Sun, 5 Mar 2023 11:20:41 +0000 (03:20 -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>
2 years agogh-101992: update pstlib module documentation (GH-102133)
Miss Islington (bot) [Sun, 5 Mar 2023 06:36:07 +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>
2 years ago[3.10] gh-102179: Fix `os.dup2` error reporting for negative fds (GH-102180) (#102419)
Miss Islington (bot) [Sat, 4 Mar 2023 15:27:32 +0000 (07:27 -0800)] 
[3.10] gh-102179: Fix `os.dup2` error reporting for negative fds (GH-102180) (#102419)

* 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>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2 years ago[3.10] gh-101892: Fix `SystemError` when a callable iterator call exhausts the iterat...
Oleg Iarygin [Sat, 4 Mar 2023 15:26:12 +0000 (19:26 +0400)] 
[3.10] gh-101892: Fix `SystemError` when a callable iterator call exhausts the iterator (GH-101896) (#102422)

gh-101892: Fix `SystemError` when a callable iterator call exhausts the iterator (#101896)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
(cherry picked from commit 705487c6557c3d8866622b4d32528bf7fc2e4204)

Co-authored-by: Raj <51259329+workingpayload@users.noreply.github.com>
2 years ago[3.10] GH-102126: fix deadlock at shutdown when clearing thread state… (#102235)
Kumar Aditya [Fri, 3 Mar 2023 13:14:30 +0000 (18:44 +0530)] 
[3.10] GH-102126: fix deadlock at shutdown when clearing thread state… (#102235)

[3.10] GH-102126: fix deadlock at shutdown when clearing thread states (GH-102222).
(cherry picked from commit 5f11478ce7fda826d399530af4c5ca96c592f144)

2 years agogh-101754: Document that Windows converts keys in `os.environ` to uppercase (GH-101840)
Miss Islington (bot) [Fri, 3 Mar 2023 10:58:30 +0000 (02:58 -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>
2 years ago[3.10] Fix typos in documentation and comments (GH-102374) (#102377)
Alex Waygood [Thu, 2 Mar 2023 16:45:01 +0000 (16:45 +0000)] 
[3.10] Fix typos in documentation and comments (GH-102374) (#102377)

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>
2 years ago[3.10] gh-90744: Fix erroneous doc links in the sys module (GH-101319) (#102322)
Hugo van Kemenade [Thu, 2 Mar 2023 05:43:50 +0000 (07:43 +0200)] 
[3.10] gh-90744: Fix erroneous doc links in the sys module (GH-101319) (#102322)

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)

2 years agoIDLE: Simplify DynOptionsMenu __init__code (GH-101371)
Miss Islington (bot) [Tue, 28 Feb 2023 06:36:34 +0000 (22:36 -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>
2 years agogh-102296 Document that inspect.Parameter kinds support ordering (GH-102297)
Miss Islington (bot) [Mon, 27 Feb 2023 15:22:07 +0000 (07:22 -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
2 years agogh-101100: Fix sphinx warnings in `types` module (GH-102274)
Miss Islington (bot) [Mon, 27 Feb 2023 07:34:10 +0000 (23:34 -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>
2 years agogh-101765: unicodeobject: use Py_XDECREF correctly (GH-102283)
Miss Islington (bot) [Sun, 26 Feb 2023 23:09:43 +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>
2 years ago[3.10] Add missing 'is' to `cmath.log()` docstring (GH-102049) (#102280)
Mark Dickinson [Sun, 26 Feb 2023 14:56:10 +0000 (14:56 +0000)] 
[3.10] Add missing 'is' to `cmath.log()` docstring (GH-102049) (#102280)

Fix missing 'is' in cmath.log() docstring.
(cherry picked from commit 71f614ef2a3d66213b9cae807cbbc1ed03741221)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
2 years ago[3.10] [doc] Improve grammar/fix missing word (GH-102060) (GH-102278)
Miss Islington (bot) [Sun, 26 Feb 2023 13:28:20 +0000 (05:28 -0800)] 
[3.10] [doc] Improve grammar/fix missing word (GH-102060) (GH-102278)

[doc] Improve grammar/fix missing word (GH-102060)
(cherry picked from commit 6daf42b28e1c6d5f0c1a6350cfcc382789e11293)

Co-authored-by: VMan <vayidm@users.noreply.github.com>