]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
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>
Łukasz Langa [Fri, 7 Apr 2023 17:35:16 +0000 (19:35 +0200)]
[3.11] bpo-46523: fix tests rerun when `setUp[Class|Module]` fails (GH-30895) (GH-103342)
(cherry picked from commit
995386071f96e4cfebfa027a71ca9134e4651d2a )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 7 Apr 2023 02:27:46 +0000 (19:27 -0700)]
gh-103256: Fix hmac algorithm to support fallback implementation (gh-103286)
(cherry picked from commit
efb0a2cf3adf4629cf4669cb558758fb78107319 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Fri, 7 Apr 2023 00:45:07 +0000 (17:45 -0700)]
gh-103266: Fix a typo in example code for bisect() function (GH-103267)
(cherry picked from commit
f0424ba4b6663d2a4240239266bea08aff46bb6c )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Thu, 6 Apr 2023 23:06:02 +0000 (16:06 -0700)]
[3.11] GH-102700: allow built-in modules to be submodules (GH-103162) (GH-103322)
GH-102700: allow built-in modules to be submodules (GH-103162)
(cherry picked from commit
5d08c3ff7d89ca11556f18663a372f6c12435504 )
Co-authored-by: Brett Cannon <brett@python.org>
Ethan Furman [Thu, 6 Apr 2023 04:29:14 +0000 (21:29 -0700)]
[3.11] gh-93910: [Enum] remove member.member deprecation (GH-103236) (GH-103299)
i.e. Color.RED.BLUE is now officially supported..
(cherry picked from commit
4ec8dd10bd4682793559c4eccbcf6ae00688c4c3 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Ned Deily [Thu, 6 Apr 2023 03:43:19 +0000 (23:43 -0400)]
[3.11] gh-103207: Fix Welcome formatting issues when macOS Installer is run in dark mode. (GH-103302)
Miss Islington (bot) [Wed, 5 Apr 2023 15:44:13 +0000 (08:44 -0700)]
gh-99069: Consolidate checks for static_assert (GH-94766)
Several platforms don't define the static_assert macro despite having
compiler support for the _Static_assert keyword. The macro needs to be
defined since it is used unconditionally in the Python code. So it
should always be safe to define it if undefined and not in C++11 (or
later) mode.
Hence, remove the checks for particular platforms or libc versions,
and just define static_assert anytime it needs to be defined but isn't.
That way, all platforms that need the fix will get it, regardless of
whether someone specifically thought of them.
Also document that certain macOS versions are among the platforms that
need this.
The C2x draft (currently expected to become C23) makes static_assert
a keyword to match C++. So only define the macro for up to C17.
(cherry picked from commit
96e1901a59ed3bb6188743d60395666969a3ba42 )
Co-authored-by: Joshua Root <jmr@macports.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 5 Apr 2023 15:03:47 +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>
Miss Islington (bot) [Wed, 5 Apr 2023 11:49:08 +0000 (04:49 -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>
Pablo Galindo [Wed, 5 Apr 2023 11:16:29 +0000 (12:16 +0100)]
Merge remote-tracking branch 'upstream/3.11' into 3.11
Pablo Galindo [Wed, 5 Apr 2023 11:16:08 +0000 (12:16 +0100)]
Post 3.11.3
Miss Islington (bot) [Tue, 4 Apr 2023 22:54:37 +0000 (15:54 -0700)]
Improve some grammar in the socket docs (GH-103254)
(cherry picked from commit
bceb9e00ad2998e5193ad5b477e92a114dd31024 )
Co-authored-by: Tim Burke <tim.burke@gmail.com>
Pablo Galindo [Tue, 4 Apr 2023 22:21:41 +0000 (23:21 +0100)]
Python 3.11.3
Ned Deily [Tue, 4 Apr 2023 20:43:54 +0000 (16:43 -0400)]
[3.11] 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-103252)
Miss Islington (bot) [Mon, 3 Apr 2023 23:01:31 +0000 (16:01 -0700)]
gh-102549: [Enum] fail enum creation when data type raises in __init__ (GH-103149)
(cherry picked from commit
2a4d8c0a9e88f45047da640ce5a92b304d2d39b1 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Mon, 3 Apr 2023 22:27:33 +0000 (15:27 -0700)]
gh-98298, gh-74730: [Enum] update docs (GH-103163)
fix FlagBoundary statements
add warning about reloading modules and enum identity
(cherry picked from commit
5ffc1e5a21de9a30566095386236db44695d184a )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Sun, 2 Apr 2023 22:52:11 +0000 (15:52 -0700)]
gh-102994: Profile docs has typo in example (GH-103074)
(cherry picked from commit
55decb72c4d2e4ea00ed13da5dd0fd22cecb9083 )
Co-authored-by: Nouran Ali <nouranalimohammed@gmail.com>
Miss Islington (bot) [Sun, 2 Apr 2023 22:42:43 +0000 (15:42 -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>
Miss Islington (bot) [Fri, 31 Mar 2023 12:52:52 +0000 (05:52 -0700)]
Quote literal tokens in standard format specifier grammar (GH-102902)
Reported by Damian Dureck: https://mail.python.org/archives/list/docs@python.org/thread/UZTWBJIXC3MBKTHXVTIBPGDPKBNWZ5LN/
(cherry picked from commit
f6405a46627e1f74c279f712c8776a165b0ba9fd )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Thu, 30 Mar 2023 22:58:54 +0000 (15:58 -0700)]
Minor docs improvements fix for `codeop` (GH-103123)
(cherry picked from commit
c1e71ce56fdb3eab62ad3190d09130f800e54610 )
Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Thu, 30 Mar 2023 08:39:49 +0000 (01:39 -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>
Miss Islington (bot) [Wed, 29 Mar 2023 22:30:03 +0000 (15:30 -0700)]
[3.11] gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc output (GH-103113) (#103119)
(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>
Steve Dower [Wed, 29 Mar 2023 14:33:29 +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.
Miss Islington (bot) [Wed, 29 Mar 2023 09:04:53 +0000 (02:04 -0700)]
[3.11] gh-102582: Fix invalid JSON in Doc/howto/logging-cookbook.rst (GH-102635) (GH-103106)
(cherry picked from commit
d835b3f05de7e2d800138e5969eeb9656b0ed860 )
Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
Miss Islington (bot) [Wed, 29 Mar 2023 03:28:34 +0000 (20:28 -0700)]
gh-103054: typing: Improve `Callable` type substitution tests (GH-103055)
(cherry picked from commit
60bdc16b459cf8f7b359c7f87d8ae6c5928147a4 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Miss Islington (bot) [Tue, 28 Mar 2023 09:27:30 +0000 (02:27 -0700)]
[3.11] GH-102711: Fix warnings found by clang (GH-102712) (#103075)
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>
Miss Islington (bot) [Mon, 27 Mar 2023 23:49:15 +0000 (16:49 -0700)]
gh-102558: [Enum] better handling of non-Enum EnumType classes (GH-103060)
(cherry picked from commit
f4ed2c6ae5915329e49b9f94033ef182400e29fa )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Mon, 27 Mar 2023 14:14:01 +0000 (07:14 -0700)]
[3.11] GH-95494: Fix transport EOF handling in OpenSSL 3.0 (GH-95495) (#103006)
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>
Max Bachmann [Sat, 25 Mar 2023 23:35:00 +0000 (00:35 +0100)]
[3.11] gh-102281: Fix potential nullptr dereference + use of uninitia… (#103040)
[3.11] gh-102281: Fix potential nullptr dereference + use of uninitialized memory (gh-102282)
(cherry picked from commit
afa6092ee4260bacf7bc11905466e4c3f8556cbb )
Miss Islington (bot) [Sat, 25 Mar 2023 21:42:28 +0000 (14:42 -0700)]
Update pdb docs for arguments (GH-102965)
(cherry picked from commit
027223db96b0464c49a74513f82a1bf25aa510bd )
Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Sat, 25 Mar 2023 10:00:44 +0000 (03:00 -0700)]
[3.11] gh-103025: fix a ctypes doc typo (GH-103026) (#103029)
* gh-103025: fix two ctypes doc issues (GH-103026)
(cherry picked from commit
0708437ad043657f992cb985fd5c37e1ac052f93 )
Co-authored-by: Peter Jiping Xie <peter.jp.xie@gmail.com>
Hugo van Kemenade [Sat, 25 Mar 2023 07:43:52 +0000 (09:43 +0200)]
[3.11] gh-101100: Document PyObject_ClearWeakRefs, gzip's name, and asyncio.iscoroutine (#103001)
Miss Islington (bot) [Fri, 24 Mar 2023 21:17:20 +0000 (14:17 -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>
Miss Islington (bot) [Fri, 24 Mar 2023 15:08:48 +0000 (08:08 -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>
Miss Islington (bot) [Fri, 24 Mar 2023 12:40:22 +0000 (05:40 -0700)]
[3.11] gh-102027: Fix macro name (GH-102124) (#102916)
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>
Miss Islington (bot) [Fri, 24 Mar 2023 12:33:24 +0000 (05:33 -0700)]
[3.11] gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (GH-96932) (#102918)
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>
Miss Islington (bot) [Fri, 24 Mar 2023 06:04:06 +0000 (23:04 -0700)]
GH-100989: remove annotation from docstring (GH-102991)
(cherry picked from commit
d49409196e0c73c38e3f96cf860cbffda40607ec )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>