]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Thu, 4 May 2023 09:27:04 +0000 (02:27 -0700)]
[3.11] GH-97950: Use new-style index directive ('operator') (GH-104156) (#104157)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Thu, 4 May 2023 08:53:19 +0000 (01:53 -0700)]
[3.11] GH-97950: Use new-style index directive ('keyword') (GH-104153) (#104155)
GH-97950: Use new-style index directive ('keyword') (GH-104153)
* Uncomment keyword removal in pairindextypes
* Use new-style index directive ('keyword') - Reference
(cherry picked from commit
33ca322c50baa5152afe388fb3b8b7d63dc5a9b9 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Adam Turner [Thu, 4 May 2023 08:39:15 +0000 (09:39 +0100)]
[3.11] GH-97950: Use new-style index directive ('module') (GH-103996) (#104154)
Miss Islington (bot) [Thu, 4 May 2023 07:26:08 +0000 (00:26 -0700)]
[3.11] GH-97950: Allow translation of index directive content (GH-104000) (#104151)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 3 May 2023 05:20:50 +0000 (22:20 -0700)]
[3.11] gh-101100: Fix Sphinx warnings in `curses` and `curses.ascii` modules (GH-103457) (#104124)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Wed, 3 May 2023 04:27:04 +0000 (21:27 -0700)]
[3.11] gh-104049: do not expose on-disk location from SimpleHTTPRequestHandler (GH-104067) (#104123)
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>
Irit Katriel [Tue, 2 May 2023 18:24:02 +0000 (19:24 +0100)]
[3.11] gh-103590: do not wrap a single exception raised from a try-except* (#104094)
Shantanu [Tue, 2 May 2023 18:18:41 +0000 (11:18 -0700)]
[3.11] gh-65022: Fix description of tuple return value in copyreg (GH-103892) (#104098)
(cherry picked from commit
587f2f018051049cf5d9de3e12ed5aa7644404dc )
Rafael Fontenelle [Tue, 2 May 2023 11:50:16 +0000 (08:50 -0300)]
[3.11] GH-103484: Fix redirected permanently URLs (GH-104001) (#104088)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
Fix redirected permanently URLs (#104001)
Erlend E. Aasland [Tue, 2 May 2023 08:15:06 +0000 (10:15 +0200)]
[3.11] gh-102997: Update Windows installer to SQLite 3.41.2. (#102999) (#104085)
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Miss Islington (bot) [Tue, 2 May 2023 07:44:16 +0000 (00:44 -0700)]
[3.11] Improve assert_type phrasing (GH-104081) (#104084)
Improve assert_type phrasing (GH-104081)
I'd like to make the fact that this does nothing at runtime
really obvious, since I suspect this is unintuitive for users who are
unfamiliar with static type checking.
I thought of this because of
https://discuss.python.org/t/add-arg-check-type-to-types/26384
wherein I'm skeptical that the user really did want `assert_type`.
(cherry picked from commit
82ba6ce303d04a7b21034e38d220e23ca9f1dc0a )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Tue, 2 May 2023 06:48:07 +0000 (23:48 -0700)]
[3.11] GH-103472: close response in HTTPConnection._tunnel (GH-103473) (#104077)
GH-103472: close response in HTTPConnection._tunnel (GH-103473)
Avoid a potential `ResourceWarning` in `http.client.HTTPConnection`
by closing the proxy / tunnel's CONNECT response explicitly.
---------
(cherry picked from commit
9de0cf20fa0485e327e57cc0864c7476da85cfad )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Hugo van Kemenade [Tue, 2 May 2023 05:29:27 +0000 (08:29 +0300)]
[3.11] Replace Netlify with Read the Docs build previews (#103843) (#104083)
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 2 May 2023 05:01:20 +0000 (22:01 -0700)]
[3.11] gh-102997: Update macOS installer to SQLite 3.41.2. (GH-104080)
(cherry picked from commit
f0ad4567319ee4ae878d570ab7709ab63df9123e )
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Miss Islington (bot) [Tue, 2 May 2023 03:22:57 +0000 (20:22 -0700)]
[3.11] gh-88496: IDLE - fix another test on macOS (GH-104075) (#104076)
gh-88496: IDLE - fix another test on macOS (GH-104075)
Needed for Catalina: test_sidebar add 'idletasks' and skip assert.
(cherry picked from commit
690df4c16ca4f0054d27a6148da9e6af809a2658 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 1 May 2023 20:18:29 +0000 (13:18 -0700)]
[3.11] gh-104018: disallow "z" format specifier in %-format of byte strings (GH-104033) (#104058)
gh-104018: disallow "z" format specifier in %-format of byte strings (GH-104033)
PEP-0682 specified that %-formatting would not support the "z" specifier,
but it was unintentionally allowed for bytes. This PR makes use of the "z"
flag an error for %-formatting in a bytestring.
Issue: GH-104018
---------
(cherry picked from commit
3ed8c882902a6982fd67e898a5b8a2d619fb5ddf )
Co-authored-by: John Belmonte <john@neggie.net>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Miss Islington (bot) [Mon, 1 May 2023 20:06:09 +0000 (13:06 -0700)]
[3.11] gh-100458: Clarify Enum.__format__() change of mixed-in types in the whatsnew/3.11.rst (GH-100387) (GH-104060)
Co-authored-by: Anže Pečar <anze@pecar.me>
Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Mon, 1 May 2023 16:02:41 +0000 (09:02 -0700)]
[3.11] gh-104035: Do not ignore user-defined `__{get,set}state__` in slotted frozen dataclasses (GH-104041) (#104044)
gh-104035: Do not ignore user-defined `__{get,set}state__` in slotted frozen dataclasses (GH-104041)
(cherry picked from commit
99aab610622fc4b4c4fe56b77c0760cf77066a53 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 1 May 2023 14:17:12 +0000 (07:17 -0700)]
[3.11] gh-104036: Fix direct invocation of test_typing (GH-104037) (#104039)
gh-104036: Fix direct invocation of test_typing (GH-104037)
Previously, `python -m test test_typing` worked, but `python Lib/test/test_typing.py` did not.
(cherry picked from commit
4181d078fc945313568eb39965cb9190881606b5 )
Co-authored-by: Kirill Podoprigora <80244920+Eclips4@users.noreply.github.com>
Miss Islington (bot) [Mon, 1 May 2023 05:58:33 +0000 (22:58 -0700)]
[3.11] Adjust expression from `==` to `!=` in alignment with the meaning of the paragraph. (GH-104021) (GH-104031)
(cherry picked from commit
93107aa2a49a9354ffb10b3cd263dc3e99ebdeff )
Miss Islington (bot) [Mon, 1 May 2023 04:36:21 +0000 (21:36 -0700)]
[3.11] gh-88496: Fix IDLE test hang on macOS (GH-104025) (#104027)
gh-88496: Fix IDLE test hang on macOS (GH-104025)
Replace widget.update() with widget.update_idletasks in two places.
(cherry picked from commit
4b27972f5fe816d3616f97f8643d8ad922473ab5 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 1 May 2023 00:50:01 +0000 (17:50 -0700)]
[3.11] Improve int test coverage (GH-104024) (#104026)
Improve int test coverage (GH-104024)
Following discussion in https://discuss.python.org/t/bug-in-int-42/26360/5
This tests some of the things documented in https://github.com/python/cpython/pull/100436
(cherry picked from commit
69bc86cb1aed49db27afc0095e0f4bcd8f1f3983 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sun, 30 Apr 2023 03:51:37 +0000 (20:51 -0700)]
[3.11] Update name in acknowledgements and add mailmap (GH-103696) (#104002)
Update name in acknowledgements and add mailmap (GH-103696)
I changed my name last year, and would like to update my name in the
acknowledgements and git history accordingly.
git-mailmap reference: https://git-scm.com/docs/gitmailmap
(cherry picked from commit
4b10ecc29f6ae69e599a5475a62d8e96a8711f90 )
Co-authored-by: Amethyst Reese <amethyst@n7.gg>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Shantanu [Sat, 29 Apr 2023 13:12:46 +0000 (06:12 -0700)]
[3.11] Fix description of MAKE_CELL (#103986)
Backport of part of #103923
Miss Islington (bot) [Sat, 29 Apr 2023 03:09:55 +0000 (20:09 -0700)]
[3.11] gh-99032: datetime docs: Encoding is no longer relevant (GH-93365) (#103788)
This removes a section of the `strftime` and `strptime` documentation that refers to a bygone era when `strftime` would return an encoded byte string.
---------
(cherry picked from commit
2aa22f72fbbabb4ca2a641c0546d25c45128c56f )
Co-authored-by: William Andrea <william.j.andrea@gmail.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Tian Gao [Fri, 28 Apr 2023 20:08:25 +0000 (13:08 -0700)]
[3.11] GH-103971: Fix incorrect locations for code following case blocks
Zachary Ware [Fri, 28 Apr 2023 17:07:16 +0000 (12:07 -0500)]
[3.11] gh-98822: Correct a few TESTSUBDIRS entries (GH-103970)
A few differences from the main branch were missed in GH-103946.
Petr Viktorin [Fri, 28 Apr 2023 15:41:09 +0000 (17:41 +0200)]
[3.11] gh-102950: Implement PEP 706 – Filter for tarfile.extractall (GH-102953) (GH-103832)
See [Backporting & Forward Compatibility in PEP 706](https://peps.python.org/pep-0706/#backporting-forward-compatibility).
- Backport
b52ad18a766700be14382ba222033b2d75a33521
- Backport
c8c3956d905e019101038b018129a4c90c9c9b8f
- Remove the DeprecationWarning
- Adjust docs
- Remove new `__all__` entries
Erlend E. Aasland [Fri, 28 Apr 2023 08:05:14 +0000 (10:05 +0200)]
[3.11] gh-100021: Document that sqlite3's executemany() discards resulting rows (#103939) (#103966)
Erlend E. Aasland [Thu, 27 Apr 2023 22:27:59 +0000 (00:27 +0200)]
[3.11] Docs: fix dunders with too many underscores (#103955) (#103957)
Steve Dower [Thu, 27 Apr 2023 21:23:46 +0000 (22:23 +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>
Adam Turner [Thu, 27 Apr 2023 20:55:09 +0000 (21:55 +0100)]
[3.11] GH-103903: Test the minimum Sphinx version in CI (#103904) (#103948)
[3.11] GH-103903: Test the minimum Sphinx version in CI (GH-103904).
(cherry picked from commit
44b5c21f4124f9fa1312fada313c80c6abfa6d49 )
Erlend E. Aasland [Thu, 27 Apr 2023 20:32:28 +0000 (22:32 +0200)]
[3.11] gh-98822: Add missing test directories to TESTSUBDIRS (#103942) (#103946)
Alex Waygood [Thu, 27 Apr 2023 14:56:55 +0000 (08:56 -0600)]
[3.11] gh-51574: Document behaviour of `mkdtemp` on 3.11 and lower (#103844)
Nikita Sobolev [Thu, 27 Apr 2023 10:33:29 +0000 (13:33 +0300)]
[3.11] gh-103880: Fix `assertRaises` usage in `test_genericalias` (GH-103916) (#103917)
(cherry picked from commit
dff8e5dc8d0758d1f9c55fdef308e44aefebe1a2 )
Miss Islington (bot) [Thu, 27 Apr 2023 10:29:54 +0000 (03:29 -0700)]
[3.11] gh-103607: Fix `pause_reading` to work when called from `connection_made` in `asyncio`. (GH-17425) (#103918)
gh-103607: Fix `pause_reading` to work when called from `connection_made` in `asyncio`. (GH-17425)
(cherry picked from commit
78942ecd9b1dbbd95e99cc298b0154fe126dac12 )
Co-authored-by: Itayazolay <itayazolay@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Inada Naoki [Thu, 27 Apr 2023 06:05:35 +0000 (15:05 +0900)]
gh-103883: Doc: Move PyUnicode_FromObject doc (GH-103913)
This API is one of Unicode creator APIs.
This APIs should not be placed in PEP 393 deprecated APIs.
Fixes: gh-103883
(cherry picked from commit
ce2383ec6665850a1bdffad388876481b6f3205f )
Shantanu [Wed, 26 Apr 2023 21:03:34 +0000 (15:03 -0600)]
[3.11] gh-101786: Clarify docs that asyncio.Server.sockets is a socket-like TransportSocket (GH-103877) (#103890)
Clarify that asyncio.Server.sockets is a socket-like TransportSocket
(cherry picked from commit
1c0a9c5a1c84bc334f2bde9d45676f19d9632823 )
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Miss Islington (bot) [Wed, 26 Apr 2023 20:55:39 +0000 (13:55 -0700)]
[3.11] gh-94300: Update datetime.strptime documentation (GH-95318) (#103785)
gh-94300: Update datetime.strptime documentation (GH-95318)
The new wording better reflects the cases where `datetime.strptime` differs from` time.strptime`.
---------
(cherry picked from commit
5b404d6cad2bf53295fdf96305f95efe1ea0174e )
Co-authored-by: Howie Zhao <howiezhaohr@hotmail.com>
Co-authored-by: Paul Ganssle <git@m.ganssle.io>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
Miss Islington (bot) [Wed, 26 Apr 2023 20:37:32 +0000 (13:37 -0700)]
[3.11] gh-101879: docs - italicize argument in smtplib.SMPT() description (GH-101886) (#103888)
gh-101879: docs - italicize argument in smtplib.SMPT() description (GH-101886)
(cherry picked from commit
28a05f4cc2b150b3ff02ec255daf1b6ec886ca6f )
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Miss Islington (bot) [Wed, 26 Apr 2023 17:19:15 +0000 (10:19 -0700)]
[3.11] Docs build: Add upper bounds to transitive dependencies (GH-103860) (#103887)
Docs build: Add upper bounds to transitive dependencies (GH-103860)
(cherry picked from commit
81cf94c4426b3bb949be8a0bb26ae0adccdbc88c )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Paul Moore [Wed, 26 Apr 2023 10:50:34 +0000 (11:50 +0100)]
[3.11] gh-103872: Update bundled pip version to 23.1.2 (gh-103874)
closes: #103872
xref: https://github.com/pypa/pip/pull/12000
<!-- gh-issue-number: gh-103872 -->
* Issue: gh-103872 <!-- /gh-issue-number -->
---------
Co-authored-by: blurb-it[bot]
<
43283697 +blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit
438b811761da124b949265d233f9fd9a74d7dd3f )
<!--
Thanks for your contribution!
Please read this comment in its entirety. It's quite important.
# Pull Request title
It should be in the following format:
```
gh-NNNNN: Summary of the changes made
```
Where: gh-NNNNN refers to the GitHub issue number.
Most PRs will require an issue number. Trivial changes, like fixing a
typo, do not need an issue.
# Backport Pull Request title
If this is a backport PR (PR made against branches other than `main`),
please ensure that the PR title is in the following format:
```
[X.Y] <title from the original PR> (GH-NNNN)
```
Where: [X.Y] is the branch name, e.g. [3.6].
GH-NNNN refers to the PR number from `main`.
-->
Miss Islington (bot) [Wed, 26 Apr 2023 05:28:29 +0000 (22:28 -0700)]
[3.11] gh-103578: Fix pdb reading code with non-utf8 encoding (GH-103581) (#103867)
`pdb` should use `io.open_code` to open code to avoid encoding issue.
(cherry picked from commit
31acfd78a0810f84898d36a8289e407d3754b823 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Tue, 25 Apr 2023 22:58:25 +0000 (15:58 -0700)]
[3.11] gh-103721: Improve cross-references for generic-alias docs (GH-103838) (#103840)
Cc. @adriangb
The "stub documentation" in `types.rst` does already link to the
in-depth docs in `stdtypes.rst`, but the link isn't obvious for new
users. It deserves to be made more prominent.
- Issue: https://github.com/python/cpython/issues/103721
(cherry picked from commit
cef542ca572fdd402ff0e10093a0c1b459e5dcd6 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Irit Katriel [Tue, 25 Apr 2023 17:08:54 +0000 (11:08 -0600)]
[3.11] gh-101517: fix line number propagation in code generated for except* (#103550) (#103816)
Manual backport of https://github.com/python/cpython/pull/103550.
<!-- gh-issue-number: gh-101517 -->
* Issue: gh-101517
<!-- /gh-issue-number -->
---------
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Tue, 25 Apr 2023 16:16:05 +0000 (09:16 -0700)]
[3.11] gh-91687: modernize dataclass example typing (GH-103773) (#103774)
modernize dataclass example typing `list` rather than `List` and comment
as to that line being the alluded too error.
(cherry picked from commit
7ef614c1adad2b8857442bf0fea649891b591109 )
Co-authored-by: Allan Lago <35788148+alago1@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Tue, 25 Apr 2023 16:15:48 +0000 (09:15 -0700)]
[3.11] gh-87452: Improve the Popen.returncode docs (#103771)
Clarifies that it remains None until a method checking the child process
status has been called and noticed it has terminated.
(cherry picked from commit
68f583658247ceced323d79e1cf775c91c53c019 )
Co-authored-by: Joshua Herman <30265+zitterbewegung@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Tue, 25 Apr 2023 10:51:39 +0000 (03:51 -0700)]
[3.11] ctypes docs: fix missing `not` in variadic functions section (GH-102611) (#103425)
(cherry picked from commit
975d220bbed0e7a15b62f1d2d03557740a55f68d )
Co-authored-by: mara004 <geisserml@gmail.com>
Paul Moore [Tue, 25 Apr 2023 02:58:19 +0000 (03:58 +0100)]
[3.11] gh-103559: Update bundled pip version to 23.1.1 (gh-103560) (#103752)
(cherry picked from commit
b2862950dc05d313b228f02a8efdd8c9c59a8ff4 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Łukasz Langa [Tue, 25 Apr 2023 00:48:17 +0000 (02:48 +0200)]
[3.11] Also fail DO-NOT-MERGE when "awaiting changes" or "awaiting change review" present on PR (GH-103807) (#103814)
"awaiting changes" means somebody put a review that requested changes.
"awaiting change review" means that the PR author published changes
after a red review and then requested a re-review.
(cherry picked from commit
b51da991e2f7b47efaee2665356060edb6a6ece4 )
Łukasz Langa [Mon, 24 Apr 2023 23:29:03 +0000 (01:29 +0200)]
[3.11] gh-103810: Fix broken references in dataclasses (GH-103811) (#103813)
(cherry picked from commit
0f23eda4b996dacd19dbe91bd47a30433bf236d2 )
Co-authored-by: Olga Matoula <olgamatoula@gmail.com>
Hugo van Kemenade [Mon, 24 Apr 2023 22:15:04 +0000 (16:15 -0600)]
[3.11] gh-101100: Fix Sphinx warnings in `argparse` module (#103289) (#103803)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Miss Islington (bot) [Mon, 24 Apr 2023 21:57:21 +0000 (14:57 -0700)]
[3.11] gh-103765: Fix 'Warning: py:class reference target not found: ModuleSpec' (GH-103769) (#103799)
(cherry picked from commit
d2745fe850d7b1959843c3fd3d284aa14956cd9e )
Co-authored-by: Jaime Alonso Lorenzo <jaimealonsolorenzo@gmail.com>
Miss Islington (bot) [Mon, 24 Apr 2023 19:58:55 +0000 (12:58 -0700)]
[3.11] gh-99184: Bypass instance attribute access in `repr` of `weakref.ref` (GH-99244) (#103789)
gh-99184: Bypass instance attribute access in `repr` of `weakref.ref` (GH-99244)
(cherry picked from commit
58b6be3791f55ceb550822ffd8664eca10fd89c4 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 24 Apr 2023 18:54:21 +0000 (11:54 -0700)]
[3.11] Revert "Add tests for empty range equality (GH-103751)" (GH-103770) (#103781)
Revert "Add tests for empty range equality (GH-103751)" (GH-103770)
This reverts commit
dca27a69a8261353f7f986eb8f808f0d487ac4b7 .
Added tests are redundant with existing tests.
(cherry picked from commit
ab25c7e3112b24a4cd8cb626bbd924c57af0fe1c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 24 Apr 2023 17:22:36 +0000 (10:22 -0700)]
[3.11] gh-103746: Test `types.UnionType` and `Literal` types together (GH-103747) (#103772)
gh-103746: Test `types.UnionType` and `Literal` types together (GH-103747)
(cherry picked from commit
3d29edaf0a5f2e12e7f72552f602c761ddaf0d13 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 24 Apr 2023 15:09:46 +0000 (08:09 -0700)]
[3.11] Add tests for empty range equality (GH-103751) (#103760)
(cherry picked from commit
dca27a69a8261353f7f986eb8f808f0d487ac4b7 )
Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com>
Miss Islington (bot) [Mon, 24 Apr 2023 14:22:24 +0000 (07:22 -0700)]
[3.11] Change 'dependant' to 'dependent' (GH-103745) (#103754)
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Miss Islington (bot) [Mon, 24 Apr 2023 09:35:14 +0000 (02:35 -0700)]
[3.11] Descriptor HowTo: Update to include attributes added in Python 3.10 (GH-103666) (#103680)
Descriptor HowTo: Update to include attributes added in Python 3.10 (GH-103666)
(cherry picked from commit
7b134d3e71af03c4593678f36fbb202cc3650f4e )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Kumar Aditya [Mon, 24 Apr 2023 09:03:12 +0000 (14:33 +0530)]
[3.11] GH-78530: clarify docs for generators yielding tasks in `asyncio.wait` and `asyncio.as_completed` (#103748)
Miss Islington (bot) [Mon, 24 Apr 2023 02:29:58 +0000 (19:29 -0700)]
[3.11] gh-103685: Fix tkinter.Menu.index() for Tk 8.7 (GH-103686) (#103734)
gh-103685: Fix tkinter.Menu.index() for Tk 8.7 (GH-103686)
---------
(cherry picked from commit
f0ed293f6aec1c2ed22725301b77d6ccedc2d486 )
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Miss Islington (bot) [Mon, 24 Apr 2023 01:09:46 +0000 (18:09 -0700)]
[3.11] gh-103668: Run pyugrade on idlelib (GH-103671) (#103730)
---------
(cherry picked from commit
bd2dca035af88694e25fb060f984fbbcda82bed8 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Terry Jan Reedy tjreedy@udel.edu
Miss Islington (bot) [Sun, 23 Apr 2023 23:21:27 +0000 (16:21 -0700)]
[3.11] gh-102310: Change error range for invalid bytes literals (GH-103663) (#103703)
Rafael Fontenelle [Sun, 23 Apr 2023 20:26:15 +0000 (17:26 -0300)]
[3.11] GH-103484: Fix broken links reported by linkcheck (GH-103608) (#103683)
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Fix broken links reported by linkcheck (#103608)
Miss Islington (bot) [Sun, 23 Apr 2023 18:15:24 +0000 (11:15 -0700)]
[3.11] gh-103592: Add tests of `Literal` with `Enum` and `Union` of `Literal`s (GH-103706) (#103720)
gh-103592: Add tests of `Literal` with `Enum` and `Union` of `Literal`s (GH-103706)
(cherry picked from commit
5041c2ba6e9c992d1c54834481c9be64581c0235 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 23 Apr 2023 15:40:52 +0000 (08:40 -0700)]
[3.11] gh-103449: Fix a bug in dataclass docstring generation (GH-103454) (#103599)
Miss Islington (bot) [Sun, 23 Apr 2023 12:20:34 +0000 (05:20 -0700)]
[3.11] gh-81403: Fix for CacheFTPHandler in urllib (GH-13951) (#103705)
* gh-81403: Fix for CacheFTPHandler in urllib (GH-13951)
bpo-37222: Fix for CacheFTPHandler in urllib
A call to FTP.ntransfercmd must be followed by FTP.voidresp to clear
the "end transfer" message. Without this, the client and server get
out of sync, which will result in an error if the FTP instance is
reused to open a second URL. This scenario occurs for even the most
basic usage of CacheFTPHandler.
Reverts the patch merged as a resolution to bpo-16270 and adds a test
case for the CacheFTPHandler in test_urllib2net.py.
(cherry picked from commit
e38bebb9ee805df6848f42845e71c8da8a821ad3 )
Co-authored-by: Dan Hemberger <846186+hemberger@users.noreply.github.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
* Added NEWS entry.
---------
Co-authored-by: Dan Hemberger <846186+hemberger@users.noreply.github.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
Miss Islington (bot) [Sun, 23 Apr 2023 08:57:10 +0000 (01:57 -0700)]
[3.11] gh-68654: Clarify subdirectories used by pkgutil.extend_path (GH-103701)
gh-68654: Clarify subdirectories used by pkgutil.extend_path (GH-103701)
Clarify sub directories used by pkgutil.extend_path in the docs and the docstring
(cherry picked from commit
7bf94568a9a4101c72b8bf555a811028e5b45ced )
Co-authored-by: Randy <69558016+san-juan1667@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Apr 2023 22:13:22 +0000 (15:13 -0700)]
[3.11] Revert "Avoid error lexing multiprocessing docs code block on Pygments 2.15.0" (GH-103616) (#103695)
Revert "Avoid error lexing multiprocessing docs code block on Pygments 2.15.0" (GH-103616)
This reverts commit
ace51dcdb781b0608b1273d246ebaee849561435 .
(cherry picked from commit
8cb2b0f953288ff8749e686c268097cdd5a393e2 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Apr 2023 15:54:58 +0000 (08:54 -0700)]
[3.11] GH-103475: cache() and lru_cache() do not have a "call once" guarantee (GH-103669) (#103682)
GH-103475: cache() and lru_cache() do not have a "call once" guarantee (GH-103669)
(cherry picked from commit
e5eaac6064561c8f7643011a31fa506e78330798 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Apr 2023 15:13:02 +0000 (08:13 -0700)]
[3.11] gh-103556: [inspect.Signature] disallow pos-or-kw params without default after pos-only with default (GH-103557) (#103675)
Miss Islington (bot) [Wed, 19 Apr 2023 14:37:14 +0000 (07:37 -0700)]
Doc: Fix broken link to emscripten networking website (GH-99531)
There was an extra `>` in the url.
(cherry picked from commit
ed206e39f02e93cc53e485655d84aaed6b40e0e6 )
Co-authored-by: Alexander Ryabov <73594+haron@users.noreply.github.com>
Miss Islington (bot) [Wed, 19 Apr 2023 05:14:53 +0000 (22:14 -0700)]
gh-103582: Remove last references to `argparse.REMAINDER` from docs (GH-103586)
(cherry picked from commit
f4d087964e3deaabc902a155efdf0e7f43f78d52 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 18 Apr 2023 03:06:52 +0000 (20:06 -0700)]
GH-103484: Docs: add linkcheck allowed redirects entries for most cases (GH-103569)
(cherry picked from commit
f39e00f9521a0d412a5fc9a50f2a553ec2bb1a7c )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 16 Apr 2023 23:09:50 +0000 (16:09 -0700)]
GH-83893: Cross reference env. vars and -X command line options (GH-103414)
(cherry picked from commit
d65ed693a8a13a2a7f9b201bda1224d6ae5fcf0e )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: Erlend E. Aasland
Miss Islington (bot) [Sat, 15 Apr 2023 21:15:45 +0000 (14:15 -0700)]
gh-103553: Improve `test_inspect`: add more assertions, remove unused (GH-103554)
(cherry picked from commit
4fe1c4b97e39429abbb9c2117fe40f585de00887 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Nikita Sobolev [Sat, 15 Apr 2023 10:44:29 +0000 (13:44 +0300)]
[3.11] gh-103180: Add CI timeouts to all GitHub Actions jobs (GH-103437). (#103543)
Miss Islington (bot) [Fri, 14 Apr 2023 07:30:38 +0000 (00:30 -0700)]
gh-103406: Modernize pos-only arguments usage in `test_signature` (GH-103407)
(cherry picked from commit
756978117698eeac3af270db25d22599e681bcb3 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Ethan Furman [Thu, 13 Apr 2023 19:04:06 +0000 (12:04 -0700)]
[3.11] gh-103479: [Enum] require __new__ to be considered a data type (GH-103495) (GH-103514)
a mixin must either have a __new__ method, or be a dataclass, to be interpreted as a data-type; an __init__ method is not enough (restores pre-3.11 behavior for non-dataclasses).
(cherry picked from commit
a6f95941a3d686707fb38e0f37758e666f25e180 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Thu, 13 Apr 2023 15:55:53 +0000 (08:55 -0700)]
gh-103365: [Enum] STRICT boundary corrections (GH-103494)
STRICT boundary:
- fix bitwise operations
- make default for Flag
(cherry picked from commit
2194071540313e2bbdc7214d77453b9ce3034a5c )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Wed, 12 Apr 2023 09:09:08 +0000 (02:09 -0700)]
gh-103417: use time.monotonic in the example for sched.scheduler (GH-103418)
(cherry picked from commit
f2b7ecb7783299c4555e89125ca9ba8e89854643 )
Co-authored-by: Nick Burns <nburns@users.noreply.github.com>
Miss Islington (bot) [Wed, 12 Apr 2023 06:26:33 +0000 (23:26 -0700)]
gh-103237: Polish pdb docs (GH-103238)
(cherry picked from commit
449bf2a76b23b97a38158d506bc30d3ebe006321 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Tue, 11 Apr 2023 14:19:33 +0000 (07:19 -0700)]
gh-87864: Use correct function definition syntax in the docs (GH-103312)
(cherry picked from commit
50b4b1598411ed393f47ce7f4fffbe5b9063cd42 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 11 Apr 2023 10:34:46 +0000 (03:34 -0700)]
gh-103373: `__mro_entries__` docs: improve cross references (GH-103398)
(cherry picked from commit
e071f00aaefae9eccf787d5c50396c26c8616483 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 11 Apr 2023 07:07:25 +0000 (00:07 -0700)]
gh-99553: add tests for ExceptionGroup wrapping (GH-99615)
(cherry picked from commit
4cd1cc843aa4ae77a543cdd882da687300762e9d )
Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
Miss Islington (bot) [Tue, 11 Apr 2023 06:26:07 +0000 (23:26 -0700)]
Docs: don't render files in includes/, they're for embedding only (GH-103313)
(cherry picked from commit
280bd536b58d3e844047cd132159cf9f6cb66708 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 11 Apr 2023 04:07:21 +0000 (21:07 -0700)]
Doc: Avoid error lexing multiprocessing docs code block on Pygments 2.15.0 (GH-103421)
(cherry picked from commit
75b6ab80da95f7d731b0d69b8ee8adb095b24d27 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 10 Apr 2023 17:17:48 +0000 (10:17 -0700)]
[3.11] gh-103059: Clarify gc.freeze documentation (GH-103058) (#103416)
gh-103059: Clarify gc.freeze documentation (GH-103058)
(cherry picked from commit
8b1b17134e2241a8cdff9e0c869013a7ff3ca2fe )
Co-authored-by: raylu <lurayl@gmail.com>
Miss Islington (bot) [Mon, 10 Apr 2023 15:21:45 +0000 (08:21 -0700)]
gh-97797: Mention `__metadata__` in docstrings of `typing.{_AnnotatedAlias, Annotated}` (GH-103405)
(cherry picked from commit
dc604a8c58af748ce25aee1af36b6521a3592fa5 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com>
Miss Islington (bot) [Mon, 10 Apr 2023 11:37:40 +0000 (04:37 -0700)]
gh-103395: Improve `typing._GenericAlias.__dir__` coverage (GH-103396)
(cherry picked from commit
a28e2ce3fbcc852959324879e0bbf5ba8ecf0105 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 9 Apr 2023 07:01:49 +0000 (00:01 -0700)]
CI: Do not allow merge if labelled DO-NOT-MERGE (GH-103337)
(cherry picked from commit
090e26ea807aa414d6a6a01d9365b0288c10a5db )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Sat, 8 Apr 2023 18:21:27 +0000 (11:21 -0700)]
gh-103242: Migrate SSLContext.set_ecdh_curve not to use deprecated APIs (GH-103378)
Migrate `SSLContext.set_ecdh_curve()` not to use deprecated OpenSSL APIs.
(cherry picked from commit
35167043e3a21055a94cf3de6ceccd1585554cb8 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Sat, 8 Apr 2023 14:16:43 +0000 (07:16 -0700)]
gh-103373: Improve documentation for `__mro_entries__` (GH-103374)
(cherry picked from commit
0ba0ca05d2b56afa0b055db02233e703fe138918 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sat, 8 Apr 2023 08:56:31 +0000 (01:56 -0700)]
gh-100574: add examples/links to the `strptime`/`strftime` docs (GH-100575)
(cherry picked from commit
3310b94d3db2f477cf2b8789c30ac0f22f82d2dd )
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Miss Islington (bot) [Sat, 8 Apr 2023 08:24:27 +0000 (01:24 -0700)]
Docs: use Node.findall to avoid a deprecation warning (GH-99403)
(cherry picked from commit
1e9dfdacefa2c8c27762ba6491b0f570147ee355 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 8 Apr 2023 08:03:58 +0000 (01:03 -0700)]
gh-75729: Fix os.spawn tests not handling spaces on Windows (GH-99150)
* Quote paths in os.spawn tests on Windows so they work with spaces
* Add NEWS entry for os spawn test fix
* Fix code style to avoid double negative in os.spawn tests
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
---------
(cherry picked from commit
a34c79623877a7ed0c86a6d48ddccffa0de76836 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sat, 8 Apr 2023 07:01:20 +0000 (00:01 -0700)]
gh-103329: Add regression test for PropertyMock with side effect (GH-103358)
(cherry picked from commit
26c65980dc6d842879d133165bb7c461d98cc6c7 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Fri, 7 Apr 2023 20:38:56 +0000 (13:38 -0700)]
[3.11] GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813, GH-103343)
(cherry picked from commit
4dc339b4d69195448207e1faecc3e258700daf33 )
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Miss Islington (bot) [Fri, 7 Apr 2023 19:36:10 +0000 (12:36 -0700)]
gh-103272: regression test for getattr exception in property (GH-103336)
(cherry picked from commit
5d7d86f2fdbbfc23325e7256ee289bf20ce7124e )
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Apr 2023 17:47:49 +0000 (10:47 -0700)]
gh-74690: Add more tests for runtime-checkable protocols (GH-103347)
(cherry picked from commit
800382a2b0980c21dfb2a8ac02aaf1e881f987b9 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>