]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.11] gh-88496: Fix IDLE test hang on macOS (GH-104025) (#104027)
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>
2 years ago[3.11] Improve int test coverage (GH-104024) (#104026)
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>
2 years ago[3.11] Update name in acknowledgements and add mailmap (GH-103696) (#104002)
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>
2 years ago[3.11] Fix description of MAKE_CELL (#103986)
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

2 years ago[3.11] gh-99032: datetime docs: Encoding is no longer relevant (GH-93365) (#103788)
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>
2 years ago[3.11] GH-103971: Fix incorrect locations for code following case blocks
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

2 years ago[3.11] gh-98822: Correct a few TESTSUBDIRS entries (GH-103970)
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.

2 years ago[3.11] gh-102950: Implement PEP 706 – Filter for tarfile.extractall (GH-102953) ...
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

2 years ago[3.11] gh-100021: Document that sqlite3's executemany() discards resulting rows ...
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)

2 years ago[3.11] Docs: fix dunders with too many underscores (#103955) (#103957)
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)

2 years agogh-103935: Use `io.open_code()` when executing code in trace and profile modules...
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>
2 years ago[3.11] GH-103903: Test the minimum Sphinx version in CI (#103904) (#103948)
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)

2 years ago[3.11] gh-98822: Add missing test directories to TESTSUBDIRS (#103942) (#103946)
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)

2 years ago[3.11] gh-51574: Document behaviour of `mkdtemp` on 3.11 and lower (#103844)
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)

2 years ago[3.11] gh-103880: Fix `assertRaises` usage in `test_genericalias` (GH-103916) (#103917)
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)

2 years ago[3.11] gh-103607: Fix `pause_reading` to work when called from `connection_made`...
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>
2 years agogh-103883: Doc: Move PyUnicode_FromObject doc (GH-103913)
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)

2 years ago[3.11] gh-101786: Clarify docs that asyncio.Server.sockets is a socket-like Transport...
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>
2 years ago[3.11] gh-94300: Update datetime.strptime documentation (GH-95318) (#103785)
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>
2 years ago[3.11] gh-101879: docs - italicize argument in smtplib.SMPT() description (GH-101886...
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>
2 years ago[3.11] Docs build: Add upper bounds to transitive dependencies (GH-103860) (#103887)
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>
2 years ago[3.11] gh-103872: Update bundled pip version to 23.1.2 (gh-103874)
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`.

-->

2 years ago[3.11] gh-103578: Fix pdb reading code with non-utf8 encoding (GH-103581) (#103867)
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>
2 years ago[3.11] gh-103721: Improve cross-references for generic-alias docs (GH-103838) (#103840)
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>
2 years ago[3.11] gh-101517: fix line number propagation in code generated for except* (#103550...
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>
2 years ago[3.11] gh-91687: modernize dataclass example typing (GH-103773) (#103774)
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>
2 years ago[3.11] gh-87452: Improve the Popen.returncode docs (#103771)
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>
2 years ago[3.11] ctypes docs: fix missing `not` in variadic functions section (GH-102611) ...
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>
2 years ago[3.11] gh-103559: Update bundled pip version to 23.1.1 (gh-103560) (#103752)
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>
2 years ago[3.11] Also fail DO-NOT-MERGE when "awaiting changes" or "awaiting change review...
Ł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)

2 years ago[3.11] gh-103810: Fix broken references in dataclasses (GH-103811) (#103813)
Ł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>
2 years ago[3.11] gh-101100: Fix Sphinx warnings in `argparse` module (#103289) (#103803)
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>
2 years ago[3.11] gh-103765: Fix 'Warning: py:class reference target not found: ModuleSpec'...
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>
2 years ago[3.11] gh-99184: Bypass instance attribute access in `repr` of `weakref.ref` (GH...
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>
2 years ago[3.11] Revert "Add tests for empty range equality (GH-103751)" (GH-103770) (#103781)
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>
2 years ago[3.11] gh-103746: Test `types.UnionType` and `Literal` types together (GH-103747...
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>
2 years ago[3.11] Add tests for empty range equality (GH-103751) (#103760)
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>
2 years ago[3.11] Change 'dependant' to 'dependent' (GH-103745) (#103754)
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>
2 years ago[3.11] Descriptor HowTo: Update to include attributes added in Python 3.10 (GH...
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>
2 years ago[3.11] GH-78530: clarify docs for generators yielding tasks in `asyncio.wait` and...
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)

2 years ago[3.11] gh-103685: Fix tkinter.Menu.index() for Tk 8.7 (GH-103686) (#103734)
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>
2 years ago[3.11] gh-103668: Run pyugrade on idlelib (GH-103671) (#103730)
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
2 years ago[3.11] gh-102310: Change error range for invalid bytes literals (GH-103663) (#103703)
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)

2 years ago[3.11] GH-103484: Fix broken links reported by linkcheck (GH-103608) (#103683)
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)

2 years ago[3.11] gh-103592: Add tests of `Literal` with `Enum` and `Union` of `Literal`s (GH...
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>
2 years ago[3.11] gh-103449: Fix a bug in dataclass docstring generation (GH-103454) (#103599)
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)

2 years ago[3.11] gh-81403: Fix for CacheFTPHandler in urllib (GH-13951) (#103705)
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>
2 years ago[3.11] gh-68654: Clarify subdirectories used by pkgutil.extend_path (GH-103701)
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>
2 years ago[3.11] Revert "Avoid error lexing multiprocessing docs code block on Pygments 2.15...
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>
2 years ago[3.11] GH-103475: cache() and lru_cache() do not have a "call once" guarantee (GH...
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>
2 years ago[3.11] gh-103556: [inspect.Signature] disallow pos-or-kw params without default after...
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)

2 years agoDoc: Fix broken link to emscripten networking website (GH-99531)
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>
2 years agogh-103582: Remove last references to `argparse.REMAINDER` from docs (GH-103586)
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>
2 years agoGH-103484: Docs: add linkcheck allowed redirects entries for most cases (GH-103569)
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>
2 years agoGH-83893: Cross reference env. vars and -X command line options (GH-103414)
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
2 years agogh-103553: Improve `test_inspect`: add more assertions, remove unused (GH-103554)
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>
2 years ago[3.11] gh-103180: Add CI timeouts to all GitHub Actions jobs (GH-103437). (#103543)
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)

2 years agogh-103406: Modernize pos-only arguments usage in `test_signature` (GH-103407)
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>
2 years ago[3.11] gh-103479: [Enum] require __new__ to be considered a data type (GH-103495...
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>
2 years agogh-103365: [Enum] STRICT boundary corrections (GH-103494)
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>
2 years agogh-103417: use time.monotonic in the example for sched.scheduler (GH-103418)
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>
2 years agogh-103237: Polish pdb docs (GH-103238)
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>
2 years agogh-87864: Use correct function definition syntax in the docs (GH-103312)
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>
2 years agogh-103373: `__mro_entries__` docs: improve cross references (GH-103398)
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>
2 years agogh-99553: add tests for ExceptionGroup wrapping (GH-99615)
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>
2 years agoDocs: don't render files in includes/, they're for embedding only (GH-103313)
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>
2 years agoDoc: Avoid error lexing multiprocessing docs code block on Pygments 2.15.0 (GH-103421)
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>
2 years ago[3.11] gh-103059: Clarify gc.freeze documentation (GH-103058) (#103416)
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>
2 years agogh-97797: Mention `__metadata__` in docstrings of `typing.{_AnnotatedAlias, Annotated...
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>
2 years agogh-103395: Improve `typing._GenericAlias.__dir__` coverage (GH-103396)
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>
2 years agoCI: Do not allow merge if labelled DO-NOT-MERGE (GH-103337)
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>
2 years agogh-103242: Migrate SSLContext.set_ecdh_curve not to use deprecated APIs (GH-103378)
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>
2 years agogh-103373: Improve documentation for `__mro_entries__` (GH-103374)
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>
2 years agogh-100574: add examples/links to the `strptime`/`strftime` docs (GH-100575)
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>
2 years agoDocs: use Node.findall to avoid a deprecation warning (GH-99403)
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>
2 years agogh-75729: Fix os.spawn tests not handling spaces on Windows (GH-99150)
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>
2 years agogh-103329: Add regression test for PropertyMock with side effect (GH-103358)
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>
2 years ago[3.11] GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813...
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>
2 years agogh-103272: regression test for getattr exception in property (GH-103336)
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>
2 years agogh-74690: Add more tests for runtime-checkable protocols (GH-103347)
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>
2 years ago[3.11] bpo-46523: fix tests rerun when `setUp[Class|Module]` fails (GH-30895) (GH...
Ł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>
2 years agogh-103256: Fix hmac algorithm to support fallback implementation (gh-103286)
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>
2 years agogh-103266: Fix a typo in example code for bisect() function (GH-103267)
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>
2 years ago[3.11] GH-102700: allow built-in modules to be submodules (GH-103162) (GH-103322)
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>
2 years ago[3.11] gh-93910: [Enum] remove member.member deprecation (GH-103236) (GH-103299)
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>
2 years ago[3.11] gh-103207: Fix Welcome formatting issues when macOS Installer is run in dark...
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)

2 years agogh-99069: Consolidate checks for static_assert (GH-94766)
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>
2 years agogh-102899: Fix doc link for getting filesystem error handler (GH-102901)
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>
2 years agogh-81762: Clarify and simplify description of print's flush param (GH-103264)
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>
2 years agoMerge remote-tracking branch 'upstream/3.11' into 3.11
Pablo Galindo [Wed, 5 Apr 2023 11:16:29 +0000 (12:16 +0100)] 
Merge remote-tracking branch 'upstream/3.11' into 3.11

2 years agoPost 3.11.3
Pablo Galindo [Wed, 5 Apr 2023 11:16:08 +0000 (12:16 +0100)] 
Post 3.11.3

2 years agoImprove some grammar in the socket docs (GH-103254)
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>
2 years agoPython 3.11.3 v3.11.3
Pablo Galindo [Tue, 4 Apr 2023 22:21:41 +0000 (23:21 +0100)] 
Python 3.11.3

2 years ago[3.11] gh-103207: Add instructions to the macOS installer welcome display on how...
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)

2 years agogh-102549: [Enum] fail enum creation when data type raises in __init__ (GH-103149)
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>
2 years agogh-98298, gh-74730: [Enum] update docs (GH-103163)
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>
2 years agogh-102994: Profile docs has typo in example (GH-103074)
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>
2 years agogh-103109: Document ignore_warnings() test support helper (GH-103110)
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>
2 years agoQuote literal tokens in standard format specifier grammar (GH-102902)
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>
2 years agoMinor docs improvements fix for `codeop` (GH-103123)
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>