3.10
Commits on May 5, 2022
-
gh-92223: Remove pre-Python 3.7 alternative in asyncio docs (GH-92224)
(cherry picked from commit d1b2e98) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Commits on May 4, 2022
-
gh-92036: Fix gc_fini_untrack() (GH-92037)
Fix a crash in subinterpreters related to the garbage collector. When a subinterpreter is deleted, untrack all objects tracked by its GC. To prevent a crash in deallocator functions expecting objects to be tracked by the GC, leak a strong reference to these objects on purpose, so they are never deleted and their deallocator functions are not called. (cherry picked from commit 1424336) Co-authored-by: Victor Stinner <vstinner@python.org>
-
bpo-47029: Fix BrokenPipeError in multiprocessing.Queue at garbage co…
Commits on May 3, 2022
-
gh-87304: Improve comments in language reference for imports (GH-92164)
(cherry picked from commit ee2205b) Co-authored-by: Robert Yang <35813883+robert861212@users.noreply.github.com>
-
bpo-29890: Test IPv*Interface construction with tuple argument (GH-30862
) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit b295a92) Co-authored-by: Humbled Drugman <humbled.drugman@gmail.com>
-
bpo-46604: fix function name in ssl module docstring (GH-31064)
The function fetch_server_certificate is replaced by get_server_certificate in the module. I reflected the change in the module docstrings. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit feca9bb) Co-authored-by: Kossi GLOKPOR <83467320+glk0@users.noreply.github.com>
-
bpo-46415: Use f-string for ValueError in ipaddress.ip_{address,netwo…
…rk,interface} helper functions (GH-30642) `IPv*Network` and `IPv*Interface` constructors accept a 2-tuple of (address description, netmask) as the address parameter. When the tuple-based address is used errors are not propagated correctly through the `ipaddress.ip_*` helper because of the %-formatting now expecting several arguments: In [7]: ipaddress.ip_network(("192.168.100.0", "fooo")) ... TypeError: not all arguments converted during string formatting Compared to: In [8]: ipaddress.IPv4Network(("192.168.100.0", "foo")) ... NetmaskValueError: 'foo' is not a valid netmask Use an f-string to make sure the error is always properly formatted. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 52dc9c3) Co-authored-by: Thomas Cellerier <thomascellerier@gmail.com>
-
gh-92106: Add test that subscription works on arbitrary TypedDicts (G…
Commits on May 2, 2022
-
bpo-46586: Fix more erroneous doc links to builtins (GH-31429)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Éric <merwok@netwok.org> (cherry picked from commit cc6ae4f) Co-authored-by: Meer Suri <46469858+meersuri@users.noreply.github.com>
-
bpo-46787: Fix
ProcessPoolExecutor exception
memory leak (GH-31408) (… -
importlib docs: Update importlib.abc hierarchy (GH-31113)
Fixed some inconsistencies in the text about relationships (cherry picked from commit 5f45a9d) Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
-
gh-92082: contextlib docs: Change aclosing from a class to a function…
-
[3.10] build(deps): bump actions/cache from 3.0.1 to 3.0.2 (GH-92111) (…
…#92124) Bumps [actions/cache](https://github.com/actions/cache) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v3.0.1...v3.0.2) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>. (cherry picked from commit eefe691)
-
concurrent.futures: Fix typo in docstring (GH-92121)
(cherry picked from commit b11243e) Co-authored-by: Yiannis Hadjicharalambous <hadjicharalambous.yiannis@gmail.com>
-
gh-88546: glob.glob docs: Make new paragraph for emphasis and reorder…
-
asyncio.subprocess: Fix a typo in doc (GH-92030)
Remove a confusion for read method in asyncio-subprocess doc for stderr StreamReader instance (cherry picked from commit bb857a9) Co-authored-by: Harsh <65716674+Harsh-br0@users.noreply.github.com>
-
gh-85133: os docs: Add that getenv uses os.environ (GH-91874)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit b25352a) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
-
gh-84714: Add behavior if dst file exists (GH-91867)
(cherry picked from commit 9166ace) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
-
bpo-36819: Fix crashes in built-in encoders with weird error handlers (…
…GH-28593) If the error handler returns position less or equal than the starting position of non-encodable characters, most of built-in encoders didn't properly re-size the output buffer. This led to out-of-bounds writes, and segfaults. (cherry picked from commit 18b07d7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
-
gh-85679: Recommend
encoding="utf-8"
in tutorial (GH-91778)(cherry picked from commit 614420d) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Commits on May 1, 2022
-
[3.10] build(deps): bump actions/stale from 4 to 5 (GH-92108) (#92127)
Bumps [actions/stale](https://github.com/actions/stale) from 4 to 5. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](actions/stale@v4...v5) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>. (cherry picked from commit 34129f7) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
[3.10] gh-91401: Conservative backport of
subprocess._USE_VFORK
(#9……1932) This does not alter the `_posixsubprocess.fork_exec()` private API to avoid issues for anyone relying on that (bad idea) or for anyone who's `subprocess.py` and `_posixsubprocess.so` upgrades may not become visible to existing Python 3.10 processes at the same time. Backports the concept of cd5726f. Provides a fail-safe way to disable vfork for #91401. I didn't backport the documentation as I don't actually expect this to be used and `.. versionadded: 3.10.5` always looks weird in docs. It's being done more to have a fail-safe in place for people just in case.
-
typing docs: Add example for async functions (GH-20386)
Fixes python/typingGH-424 (cherry picked from commit 9588f88) Co-authored-by: Sam Bull <aa6bs0@sambull.org>
-
gh-81488: Add recursive wording for issubclass docs (GH-92087)
(cherry picked from commit 1066ecb) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
-
gh-91611: Use example.com for documentation, not mydomain.com (GH-91613)
example.com is reserved by the IANA as special-use domain name for documentation purposes. The domain names are used widely in books, tutorials, sample network configurations, and generally as examples for the use of domain name. On the other hand, mydomain.com is real Domain Name Registration service. (cherry picked from commit ea39246) Co-authored-by: Motoki Naruse <motoki@naru.se>
Commits on Apr 30, 2022
-
gh-89253: Add 3.10 whatsnew section for itertools.pairwise (GH-91563)
GH-89253 [`pairwise()`](https://docs.python.org/3/library/itertools.htmlGH-itertools.pairwise) already has the 'new in python3.10' Automerge-Triggered-By: GH:rhettinger (cherry picked from commit 5dcfb91) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
-
gh-87801: Add run() to subprocess.CalledProcessError description (GH-…
-
gh-87192: Update wording for fcntl 'Changed in' (GH-91658)
(cherry picked from commit d7eb1ff) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>