]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
21 months ago[3.11] gh-101100: Fix datetime reference warnings (GH-114661) (GH-114718)
Serhiy Storchaka [Mon, 29 Jan 2024 15:20:05 +0000 (17:20 +0200)] 
[3.11] gh-101100: Fix datetime reference warnings (GH-114661) (GH-114718)

(cherry picked from commit e8b8f5e9c2da6a436360ce648061c90bdfcba863)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
21 months ago[3.11] gh-89159: Add some TarFile attribute types (GH-114520) (GH-114715)
Miss Islington (bot) [Mon, 29 Jan 2024 14:25:52 +0000 (15:25 +0100)] 
[3.11] gh-89159: Add some TarFile attribute types  (GH-114520) (GH-114715)

(cherry picked from commit d7d0d13cd37651990586d31d8974c59bd25e1045)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
21 months ago[3.11] gh-101100: Fix Sphinx warnings in `whatsnew/2.2.rst` (GH-112366) (#114712)
Miss Islington (bot) [Mon, 29 Jan 2024 13:18:59 +0000 (14:18 +0100)] 
[3.11] gh-101100: Fix Sphinx warnings in `whatsnew/2.2.rst` (GH-112366) (#114712)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
21 months ago[3.11] gh-114685: Fix incorrect use of PyBUF_READ in import.c (GH-114686) (GH-114701)
Miss Islington (bot) [Mon, 29 Jan 2024 10:03:14 +0000 (11:03 +0100)] 
[3.11] gh-114685: Fix incorrect use of PyBUF_READ in import.c (GH-114686) (GH-114701)

(cherry picked from commit 1ac1b2f9536a581f1656f0ac9330a7382420cda1)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.11] gh-101100: Fix sphinx warnings in `Doc/c-api/memoryview.rst` (GH-114669) ...
Miss Islington (bot) [Mon, 29 Jan 2024 10:02:52 +0000 (11:02 +0100)] 
[3.11] gh-101100: Fix sphinx warnings in `Doc/c-api/memoryview.rst` (GH-114669) (GH-114705)

(cherry picked from commit 97fb2480e4807a34b8197243ad57566ed7769e24)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.11] gh-110893: Improve the documentation for __future__ module (GH-114642) (#114703)
Miss Islington (bot) [Mon, 29 Jan 2024 09:46:04 +0000 (10:46 +0100)] 
[3.11] gh-110893: Improve the documentation for __future__ module (GH-114642) (#114703)

gh-110893: Improve the documentation for __future__ module (GH-114642)

nedbat took issue with the phrasing "real module". I'm actually fine
with that phrasing, but I do think the `__future__` page should be clear
about the way in which the `__future__` module is special. (Yes, there
was a footnote linking to the future statements part of the reference,
but there should be upfront discussion).

I'm sympathetic to nedbat's claim that no one really cares about
`__future__._Feature`, so I've moved the interesting table up to the
top.
(cherry picked from commit 3b86891fd69093b60141300862f278614ba80613)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
21 months ago[3.11] Correct Skip Montanaro's email address (GH-114677) (#114680)
Miss Islington (bot) [Sun, 28 Jan 2024 14:58:26 +0000 (15:58 +0100)] 
[3.11] Correct Skip Montanaro's email address (GH-114677) (#114680)

Correct Skip Montanaro's email address (GH-114677)
(cherry picked from commit 5ecfd750b4f511f270c38f0d748da9cffa279295)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
21 months ago[3.11] gh-114100: Remove superfluous writing to fd 1 in test_pty (GH-114647) (GH...
Miss Islington (bot) [Sat, 27 Jan 2024 17:30:11 +0000 (18:30 +0100)] 
[3.11] gh-114100: Remove superfluous writing to fd 1 in test_pty (GH-114647) (GH-114656)

(cherry picked from commit 7a470541e2bbc6f3e87a6d813e2ec42cf726de7a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.11] gh-101100: Fix sphinx warnings in `reference/import.rst` (GH-114646) (#114654)
Nikita Sobolev [Sat, 27 Jan 2024 16:37:13 +0000 (19:37 +0300)] 
[3.11] gh-101100: Fix sphinx warnings in `reference/import.rst` (GH-114646) (#114654)

21 months ago[3.11] gh-101100: Fix Sphinx warnings in `whatsnew/3.11.rst` and related (GH-114531...
Hugo van Kemenade [Sat, 27 Jan 2024 14:57:33 +0000 (16:57 +0200)] 
[3.11] gh-101100: Fix Sphinx warnings in `whatsnew/3.11.rst` and related (GH-114531) (#114650)

21 months ago[3.11] gh-113560: Improve docstrings for set.issubset() and set.issuperset() (GH...
Miss Islington (bot) [Sat, 27 Jan 2024 11:21:24 +0000 (12:21 +0100)] 
[3.11] gh-113560: Improve docstrings for set.issubset() and set.issuperset() (GH-113562) (GH-114643)

(cherry picked from commit 11c582235d86b6020710eff282eeb381a7bf7bb7)

Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
21 months ago[3.11] gh-101100: Fix sphinx warnings in `library/email.mime.rst` (GH-114635) (GH...
Miss Islington (bot) [Sat, 27 Jan 2024 08:52:57 +0000 (09:52 +0100)] 
[3.11] gh-101100: Fix sphinx warnings in `library/email.mime.rst` (GH-114635) (GH-114641)

(cherry picked from commit 6a8944acb61d0a2c210ab8066cdcec8602110e2f)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.11] Fix `c-api/file.rst` indexes (GH-114608) (GH-114639)
Miss Islington (bot) [Sat, 27 Jan 2024 08:52:37 +0000 (09:52 +0100)] 
[3.11] Fix `c-api/file.rst` indexes (GH-114608) (GH-114639)

(cherry picked from commit 23fb9f0777b054526b3b32f58e60b2a03132bf45)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.11] gh-113445: Amend PyObject_RichCompareBool() docs (GH-113891) (GH-114637)
Miss Islington (bot) [Sat, 27 Jan 2024 08:02:34 +0000 (09:02 +0100)] 
[3.11] gh-113445: Amend PyObject_RichCompareBool() docs (GH-113891) (GH-114637)

(cherry picked from commit 926881dc10ebf77069e02e66eea3e0d3ba500fe5)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
21 months ago[3.11] Docs: rework the dbm.dumb introduction (GH-114550) (#114621)
Miss Islington (bot) [Fri, 26 Jan 2024 18:19:55 +0000 (19:19 +0100)] 
[3.11] Docs: rework the dbm.dumb introduction (GH-114550) (#114621)

(cherry picked from commit 6c2b419fb91c8d7daa769d39f73768114b5eb45a)

- consistently use correct parameter markup
- consistently use submodule name as database name
- improve accuracy of the dbm.dumb.open() spec
- remove dumbdbm class refs and replace them with generic "database object"
- use parameter list for dbm.dumb.open()
(cherry picked from commit 6c2b419fb91c8d7daa769d39f73768114b5eb45a)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.11] Document PyOS_strtoul and PyOS_strtol (GH-114048) (GH-114619)
Miss Islington (bot) [Fri, 26 Jan 2024 17:51:36 +0000 (18:51 +0100)] 
[3.11] Document PyOS_strtoul and PyOS_strtol (GH-114048) (GH-114619)

(cherry picked from commit 3f62bf32caf04cedb2c59579a0ce835d1e793d4d)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
21 months agoUse Unicode unconditionally for _winapi.CreateFile (GH-114611)
Steve Dower [Fri, 26 Jan 2024 17:48:36 +0000 (17:48 +0000)] 
Use Unicode unconditionally for _winapi.CreateFile (GH-114611)

Currently it switches based on build settings, but argument clinic does not handle it correctly.

21 months ago[3.11] gh-77749: Fix inconsistent behavior of non-ASCII handling in EmailPolicy.fold...
Miss Islington (bot) [Fri, 26 Jan 2024 16:30:50 +0000 (17:30 +0100)] 
[3.11] gh-77749: Fix inconsistent behavior of non-ASCII handling in EmailPolicy.fold() (GH-6986) (GH-114607)

It now always encodes non-ASCII characters in headers if utf8 is false.

(cherry picked from commit 504334c7be5a56237df2598d338cd494a42fca4c)

Co-authored-by: Rito Takeuchi <licht-t@outlook.jp>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.11] Docs: mark up dbm.open() with param list (GH-114601) (#114605)
Miss Islington (bot) [Fri, 26 Jan 2024 15:18:50 +0000 (16:18 +0100)] 
[3.11] Docs: mark up dbm.open() with param list (GH-114601) (#114605)

Also consolidate following paragraphs regarding database objects.

(cherry picked from commit 0bd8297a2208125f76807cdf01f72abe5c94136b)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.11] Docs: reword dbm.ndbm introduction (#114549) (#114600)
Erlend E. Aasland [Fri, 26 Jan 2024 12:56:52 +0000 (13:56 +0100)] 
[3.11] Docs: reword dbm.ndbm introduction (#114549) (#114600)

(cherry picked from commit 4cf068ed0879cccf86a45f06fb274b350b89e911)

- add abbreviation directives for NDBM and GDBM
- consistently spell NDBM as NDBM
- silence broken ndbm class refs
- improve accuracy of dbm.ndbm.open() spec
- use replacement text for NDBM/GDBM file format incompatibility note

21 months ago[3.11] Docs: fix versionchanged directives for dbm.open() and dbm.whichdb() (GH-11459...
Miss Islington (bot) [Fri, 26 Jan 2024 12:43:22 +0000 (13:43 +0100)] 
[3.11] Docs: fix versionchanged directives for dbm.open() and dbm.whichdb() (GH-114594) (#114596)

(cherry picked from commit 8710faeac28e65c65862359413e8341492f529af)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.11] Docs: rework dbm introduction (GH-114551) (#114591)
Miss Islington (bot) [Fri, 26 Jan 2024 10:24:05 +0000 (11:24 +0100)] 
[3.11] Docs: rework dbm introduction (GH-114551) (#114591)

- add refs to other parts of the docs (dict, bytes, etc.)
- clarify whichdb() return value by using list markup
- silence refs to example or generic submodule methods (keys, get, etc.)

(cherry picked from commit 65cf5dce11a38e327b9b0abfca279d650452b34f)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.11] Docs: reword dbm.gnu introduction (#114548) (#114589)
Erlend E. Aasland [Fri, 26 Jan 2024 10:15:34 +0000 (11:15 +0100)] 
[3.11] Docs: reword dbm.gnu introduction (#114548) (#114589)

(cherry picked from commit 06c5de36f222b926bbc94831536096b974bd5e77)

Also...
- consistently spell GDBM as GDBM
- silence gdbm class refs
- improve accuracy of dbm.gdbm.open() spec

21 months ago[3.11] gh-101100: Fix sphinx warnings in `c-api/file.rst` (GH-114546) (#114585)
Miss Islington (bot) [Fri, 26 Jan 2024 10:02:49 +0000 (11:02 +0100)] 
[3.11] gh-101100: Fix sphinx warnings in `c-api/file.rst` (GH-114546) (#114585)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months agogh-114561: Mark some tests in `test_wincosoleio` with `requires_resource('console...
Miss Islington (bot) [Thu, 25 Jan 2024 20:14:18 +0000 (21:14 +0100)] 
gh-114561: Mark some tests in `test_wincosoleio` with `requires_resource('console')` decorator  (GH-114565)

(cherry picked from commit 33ae9895d4ac0d88447e529038bc4725ddd8c291)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
21 months ago[3.11] gh-77465: Increase test coverage for the numbers module (GH-111738) (GH-114557)
Miss Islington (bot) [Thu, 25 Jan 2024 14:49:46 +0000 (15:49 +0100)] 
[3.11] gh-77465: Increase test coverage for the numbers module (GH-111738) (GH-114557)

(cherry picked from commit e721adf4bd47b20ba0a93ad6471084de31bf20c7)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months agogh-100107: Make py.exe launcher ignore app aliases that launch Microsoft Store (GH...
Miss Islington (bot) [Thu, 25 Jan 2024 00:37:46 +0000 (01:37 +0100)] 
gh-100107: Make py.exe launcher ignore app aliases that launch Microsoft Store (GH-114358)

(cherry picked from commit d5c21c12c17b6e4db2378755af8e3699516da187)

Co-authored-by: Vincent Cunningham <flagrama@users.noreply.github.com>
21 months ago[3.11] gh-108731: Add description of __slots__ to MemberDescriptorType docs (GH-10874...
Miss Islington (bot) [Wed, 24 Jan 2024 20:05:12 +0000 (21:05 +0100)] 
[3.11] gh-108731: Add description of __slots__ to MemberDescriptorType docs (GH-108745) (GH-114537)

(cherry picked from commit 6888cccac0776d965cc38a7240e1bdbacb952b91)

Co-authored-by: plokmijnuhby <39633434+plokmijnuhby@users.noreply.github.com>
21 months ago[3.11] Docs: mark up the FTP_TLS() docs with param list (GH-114510) (#114533)
Miss Islington (bot) [Wed, 24 Jan 2024 16:28:55 +0000 (17:28 +0100)] 
[3.11] Docs: mark up the FTP_TLS() docs with param list (GH-114510) (#114533)

Also turn sentence about prot_p() into a note.

(cherry picked from commit 6fadd68da5dd928847264b17f62a5b8b369c1c1e)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.11] gh-101100: Fix sphinx warnings in `concurrent.futures.rst` (GH-114521) (#114526)
Hugo van Kemenade [Wed, 24 Jan 2024 13:46:13 +0000 (15:46 +0200)] 
[3.11] gh-101100: Fix sphinx warnings in `concurrent.futures.rst` (GH-114521) (#114526)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.11] gh-101100: Fix sphinx warnings in `asyncio-task.rst` (GH-114469) (#114518)
Miss Islington (bot) [Wed, 24 Jan 2024 07:32:00 +0000 (08:32 +0100)] 
[3.11] gh-101100: Fix sphinx warnings in `asyncio-task.rst` (GH-114469) (#114518)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.11] gh-113205: test_multiprocessing.test_terminate: Give tasks a chance to start...
Miss Islington (bot) [Wed, 24 Jan 2024 07:26:58 +0000 (08:26 +0100)] 
[3.11] gh-113205: test_multiprocessing.test_terminate: Give tasks a chance to start (GH-114249) (GH-114517)

(cherry picked from commit ce75b4c26d18dcd840fd2e7ee362a84209648d06)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.11] Fix a typo in the contextlib documentation (GH-114507) (#114515)
Miss Islington (bot) [Wed, 24 Jan 2024 04:22:38 +0000 (05:22 +0100)] 
[3.11] Fix a typo in the contextlib documentation (GH-114507) (#114515)

21 months ago[3.11] gh-114492: Initialize struct termios before calling tcgetattr() (GH-114495...
Miss Islington (bot) [Tue, 23 Jan 2024 21:53:13 +0000 (22:53 +0100)] 
[3.11] gh-114492: Initialize struct termios before calling tcgetattr() (GH-114495) (GH-114503)

On Alpine Linux it could leave some field non-initialized.
(cherry picked from commit d22c066b802592932f9eb18434782299e80ca42e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.11] gh-101438: Avoid reference cycle in ElementTree.iterparse. (GH-114269) (GH...
Miss Islington (bot) [Tue, 23 Jan 2024 20:49:13 +0000 (21:49 +0100)] 
[3.11] gh-101438: Avoid reference cycle in ElementTree.iterparse. (GH-114269) (GH-114500)

The iterator returned by ElementTree.iterparse() may hold on to a file
descriptor. The reference cycle prevented prompt clean-up of the file
descriptor if the returned iterator was not exhausted.
(cherry picked from commit ce01ab536f22a3cf095d621f3b3579c1e3567859)

Co-authored-by: Sam Gross <colesbury@gmail.com>
21 months ago[3.11] Docs: use placeholders in dbm flag param docs (GH-114482) (#114498)
Miss Islington (bot) [Tue, 23 Jan 2024 20:05:39 +0000 (21:05 +0100)] 
[3.11] Docs: use placeholders in dbm flag param docs (GH-114482) (#114498)

Also correct the default flag param for dbm.dumb.open();
it's 'c', not 'r'.
(cherry picked from commit 8c265408c51609c6b4a6788cac9cc5fea7a14888)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.11] Docs: mark up FTP.connect() and FTP.login() with param lists (GH-114395) ...
Miss Islington (bot) [Tue, 23 Jan 2024 14:03:51 +0000 (15:03 +0100)] 
[3.11] Docs: mark up FTP.connect() and FTP.login() with param lists (GH-114395) (#114486)

Use rst substitutions to reduce raw text duplication.

(cherry picked from commit 01105c7c4f7f01a8b1077008e61d5c7df0ab832b)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.11] Docs: mark up FTP.retrbinary and FTP.storbinary with param lists (GH-114399...
Miss Islington (bot) [Tue, 23 Jan 2024 14:00:35 +0000 (15:00 +0100)] 
[3.11] Docs: mark up FTP.retrbinary and FTP.storbinary with param lists (GH-114399) (#114484)

(cherry picked from commit 5277d4c7dbd1baee300e494fce2738cee218c243)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
21 months ago[3.11] gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` (GH-114425) (#114478)
Miss Islington (bot) [Tue, 23 Jan 2024 11:24:51 +0000 (12:24 +0100)] 
[3.11] gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` (GH-114425) (#114478)

gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` (GH-114425)

* gh-101100: Fix sphinx warnings in `Doc/library/locale.rst`

* Remove `/` from signatures
(cherry picked from commit 7d21cae964fc47afda400fc1fbbcf7984fcfe819)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.11] Docs: align usage of versionadded/versionchanged with recommended practice...
Erlend E. Aasland [Tue, 23 Jan 2024 09:39:25 +0000 (10:39 +0100)] 
[3.11] Docs: align usage of versionadded/versionchanged with recommended practice (#114409) (#114473)

(cherry picked from commit 1d7bddd9612bcbaaedbc837e2936de773e855411)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
21 months ago[3.11] GH-105900: Fix `pathlib.Path.symlink_to(target_is_directory=...)` docs (GH...
Miss Islington (bot) [Tue, 23 Jan 2024 05:37:32 +0000 (06:37 +0100)] 
[3.11] GH-105900: Fix `pathlib.Path.symlink_to(target_is_directory=...)` docs (GH-114035) (#114465)

Clarify that *target_is_directory* only matters if the target doesn't
exist.
(cherry picked from commit b822b85ac11e73bbe4417bf03ee770ab116bb42d)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
21 months ago[3.11] GH-82695: Clarify `pathlib.Path.mkdir()` documentation (GH-114032) (#114463)
Miss Islington (bot) [Tue, 23 Jan 2024 02:37:55 +0000 (03:37 +0100)] 
[3.11] GH-82695: Clarify `pathlib.Path.mkdir()` documentation (GH-114032) (#114463)

Remove a double negative in the documentation of `mkdir()`'s *exist_ok*
parameter.

(cherry picked from commit 32c227470aa6f72950b76206ffc529c258b4b8fa)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
21 months ago[3.11] GH-99334: Explain that `PurePath.is_relative_to()` is purely lexical. (GH...
Barney Gale [Tue, 23 Jan 2024 01:16:21 +0000 (01:16 +0000)] 
[3.11] GH-99334: Explain that `PurePath.is_relative_to()` is purely lexical. (GH-114031) (#114461)

(cherry picked from commit 3a61d24062aaa1e13ba794360b6c765d9a1f2b06)

21 months ago[3.11] gh-66944: Note that the `contextlib.closing` example is for illustrative purpo...
Miss Islington (bot) [Tue, 23 Jan 2024 01:07:14 +0000 (02:07 +0100)] 
[3.11] gh-66944: Note that the `contextlib.closing` example is for illustrative purposes (GH-112198) (#114459)

21 months ago[3.11] gh-114257: Ignore the FileNotFound error in ctypes.util._is_elf() (GH-114394...
Miss Islington (bot) [Mon, 22 Jan 2024 18:10:44 +0000 (19:10 +0100)] 
[3.11] gh-114257: Ignore the FileNotFound error in ctypes.util._is_elf() (GH-114394) (GH-114445)

(cherry picked from commit 7fc51c3f6b7b13f88480557ff14bdb1c049f9a37)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
21 months ago[3.11] gh-75128: Ignore EADDRNOTAVAIL error in asyncio.BaseEventLoop.create_server...
Miss Islington (bot) [Mon, 22 Jan 2024 17:20:01 +0000 (18:20 +0100)] 
[3.11] gh-75128: Ignore EADDRNOTAVAIL error in asyncio.BaseEventLoop.create_server() (GH-114420) (GH-114442)

(cherry picked from commit a53e56e7d88b4f2a2943c9f191024198009fcf9e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
21 months ago[3.11] gh-114275: Skip doctests that use `asyncio` in `test_pdb` for WASI builds...
Miss Islington (bot) [Mon, 22 Jan 2024 17:02:16 +0000 (18:02 +0100)] 
[3.11] gh-114275: Skip doctests that use `asyncio` in `test_pdb` for WASI builds (GH-114309) (#114438)

gh-114275: Skip doctests that use `asyncio` in `test_pdb` for WASI builds (GH-114309)
(cherry picked from commit efb81a60f5ce7e192095230a0f7ff9684d6f835a)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.11] gh-101100: Fix Sphinx warnings in `reference/expressions.rst` (GH-114194)...
Miss Islington (bot) [Mon, 22 Jan 2024 16:50:28 +0000 (17:50 +0100)] 
[3.11] gh-101100: Fix Sphinx warnings in `reference/expressions.rst` (GH-114194) (#114437)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.11] gh-111803: Make test_deep_nesting from test_plistlib more strict (GH-114026...
Miss Islington (bot) [Mon, 22 Jan 2024 15:31:21 +0000 (16:31 +0100)] 
[3.11] gh-111803: Make test_deep_nesting from test_plistlib more strict (GH-114026) (GH-114407)

It is no longer silently passed if RecursionError was raised for low
recursion depth.
(cherry picked from commit db1c18eb6220653290a3ba9ebbe1df44394a3f19)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.11] gh-102512: Turn _DummyThread into _MainThread after os.fork() called from...
Serhiy Storchaka [Mon, 22 Jan 2024 15:00:33 +0000 (17:00 +0200)] 
[3.11] gh-102512: Turn _DummyThread into _MainThread after os.fork() called from a foreign thread (GH-113261) (GH-114431)

Always set a _MainThread as a main thread after os.fork() is called from
a thread started not by the threading module.

A new _MainThread was already set as a new main thread after fork if
threading.current_thread() was not called for a foreign thread before fork.
Now, if it was called before fork, the implicitly created _DummyThread will
be turned into _MainThread after fork.

It fixes, in particularly, an incompatibility of _DummyThread with
the threading shutdown logic which relies on the main thread
having tstate_lock.

(cherry picked from commit 49785b06ded19c7c4afce186bac90fea707470ea)

Co-authored-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
21 months ago[3.11] gh-114115: Update documentation of array.array (GH-114117) (GH-114418)
Serhiy Storchaka [Mon, 22 Jan 2024 09:37:09 +0000 (11:37 +0200)] 
[3.11] gh-114115: Update documentation of array.array (GH-114117) (GH-114418)

(cherry picked from commit 650f9e4c94711ff49ea4e13bf800945a6147b7e0)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.11] gh-114241: Fix and improve the ftplib CLI (GH-114242) (GH-114405)
Miss Islington (bot) [Sun, 21 Jan 2024 20:31:12 +0000 (21:31 +0100)] 
[3.11] gh-114241: Fix and improve the ftplib CLI (GH-114242) (GH-114405)

* Fix writing the retrieved binary file to stdout.
* Add a newline after writing warnings to stderr.
* Fix a TypeError if the netrc file doesn't contain a host/default entry.
* Improve the usage message.
(cherry picked from commit 42d72b23dd1ee0e100ee47aca64fc1e1bbe576c9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.11] Docs: align sqlite3 docs with versionadded/versionchanged recommendations...
Erlend E. Aasland [Sun, 21 Jan 2024 20:07:46 +0000 (21:07 +0100)] 
[3.11] Docs: align sqlite3 docs with versionadded/versionchanged recommendations (#114400) (#114403)

(cherry picked from commit 336030161a6cb8aa5b4f42a08510f4383984703f)

When a parameter is added to a function or method, use the 'versionchanged'
directive, not 'versionadded'.

21 months ago[3.11] Docs: link to sys.stdout in ftplib docs (GH-114396) (#114398)
Miss Islington (bot) [Sun, 21 Jan 2024 17:47:48 +0000 (18:47 +0100)] 
[3.11] Docs: link to sys.stdout in ftplib docs (GH-114396) (#114398)

(cherry picked from commit de17cf444a7b1e06380bb5bf8547f1fc3c03fc4a)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago [3.11] gh-113358 Fix rendering tracebacks with exceptions with a broken __getattr__...
Jérome Perrin [Sun, 21 Jan 2024 17:25:55 +0000 (02:25 +0900)] 
 [3.11] gh-113358 Fix rendering tracebacks with exceptions with a broken __getattr__ : Normalize exception  (#114379)

21 months ago[3.11] gh-114384: Align sys.set_asyncgen_hooks signature in docs to reflect implement...
Miss Islington (bot) [Sun, 21 Jan 2024 13:03:53 +0000 (14:03 +0100)] 
[3.11] gh-114384: Align sys.set_asyncgen_hooks signature in docs to reflect implementation (GH-114385) (#114387)

(cherry picked from commit 38768e4cdd1c4b6e03702da8a94e1c22479d6ed3)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.11] Docs: mark up FTP() constructor with param list (GH-114359) (#114383)
Miss Islington (bot) [Sun, 21 Jan 2024 11:33:37 +0000 (12:33 +0100)] 
[3.11] Docs: mark up FTP() constructor with param list (GH-114359) (#114383)

(cherry picked from commit 96c15b1c8d03db5b7b5b719214d9d156b317ba9d)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.11] Docs: mark up the FTP debug levels as a list (GH-114360) (#114376)
Miss Islington (bot) [Sun, 21 Jan 2024 10:26:55 +0000 (11:26 +0100)] 
[3.11] Docs: mark up the FTP debug levels as a list (GH-114360) (#114376)

(cherry picked from commit fbc28748eaf578436ef9662363575f6bdde2e2f7)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.11] gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (GH-114373) (#114378)
Miss Islington (bot) [Sun, 21 Jan 2024 09:40:43 +0000 (10:40 +0100)] 
[3.11] gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (GH-114373) (#114378)

gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (GH-114373)
(cherry picked from commit 47133d8d869c94c4d1f340b5481cc3f2cdc7d68b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.11] Fix the confusing "User-defined methods" reference in the datamodel (GH-114276...
Miss Islington (bot) [Sun, 21 Jan 2024 03:52:30 +0000 (04:52 +0100)] 
[3.11] Fix the confusing "User-defined methods" reference in the datamodel (GH-114276) (#114366)

21 months ago[3.11] Docs: structure the ftplib reference (#114317) (#114351)
Erlend E. Aasland [Sat, 20 Jan 2024 19:37:04 +0000 (20:37 +0100)] 
[3.11] Docs: structure the ftplib reference (#114317) (#114351)

(cherry picked from commit b1ad5a5d446f944a45c43a3e865d1d8f47611071)

Introduce the following headings and subheadings:

- Reference
  * FTP objects
  * FTP_TLS objects
  * Module variables

22 months ago[3.11] GH-99380: Update to Sphinx 7 (GH-99381) (#114342)
Adam Turner [Sat, 20 Jan 2024 11:31:06 +0000 (11:31 +0000)] 
[3.11] GH-99380: Update to Sphinx 7 (GH-99381) (#114342)

(cherry picked from commit e6495159f6f2ca4fe3b5143c62fc2ad5873ef54f)

22 months ago[3.11] gh-114332: Fix the flags reference for ``re.compile()`` (GH-114334) (#114340)
Miss Islington (bot) [Sat, 20 Jan 2024 11:23:23 +0000 (12:23 +0100)] 
[3.11] gh-114332: Fix the flags reference for ``re.compile()`` (GH-114334) (#114340)

gh-114332: Fix the flags reference for ``re.compile()`` (GH-114334)

The GH-93000 change set inadvertently caused a sentence in re.compile()
documentation to refer to details that no longer followed. Correct this
with a link to the Flags sub-subsection.

(cherry picked from commit 567a85e9c15a3f7848330ae7bef3de2f70fc9f97)

Co-authored-by: David H. Gutteridge <dhgutteridge@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
22 months ago[3.11] Retain shorter tables of contents for Sphinx 5.2.3+ (GH-114318) (#114338)
Miss Islington (bot) [Sat, 20 Jan 2024 10:33:19 +0000 (11:33 +0100)] 
[3.11] Retain shorter tables of contents for Sphinx 5.2.3+ (GH-114318) (#114338)

22 months ago[3.11] gh-113358: Fix rendering tracebacks with exceptions with a broken __getattr__...
Jérome Perrin [Fri, 19 Jan 2024 20:35:57 +0000 (05:35 +0900)] 
[3.11] gh-113358: Fix rendering tracebacks with exceptions with a broken __getattr__ (GH-113359) (#114118)

22 months ago[3.11] gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest...
Nikita Sobolev [Fri, 19 Jan 2024 15:12:48 +0000 (18:12 +0300)] 
[3.11] gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (GH-112109) (#114313)

gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (GH-112109)

22 months ago[3.11] gh-112092: clarify unstable ABI recompilation requirements (GH-112093) (#114261)
Miss Islington (bot) [Thu, 18 Jan 2024 20:28:34 +0000 (21:28 +0100)] 
[3.11] gh-112092: clarify unstable ABI recompilation requirements (GH-112093) (#114261)

gh-112092: clarify unstable ABI recompilation requirements (GH-112093)

Use different versions in the examples for when extensions do and do not need to be recompiled to make the examples easier to understand.
(cherry picked from commit 68a7b78cd5185cbd9456f42c15ecf872a7c16f44)

Co-authored-by: DerSchinken <53398996+DerSchinken@users.noreply.github.com>
22 months ago[3.11] gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350) (GH-114252)
Miss Islington (bot) [Thu, 18 Jan 2024 16:03:07 +0000 (17:03 +0100)] 
[3.11] gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350) (GH-114252)

(cherry picked from commit b8f29b1293f55e12e86a2a039b49b6f9f73851b7)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
22 months ago[3.11] gh-113205: test_multiprocessing.test_terminate: Shorter sleep for threadpools...
Miss Islington (bot) [Thu, 18 Jan 2024 12:49:26 +0000 (13:49 +0100)] 
[3.11] gh-113205: test_multiprocessing.test_terminate: Shorter sleep for threadpools (GH-114186) (GH-114223)

Threads can't be forced to terminate (without potentially corrupting too much
state), so the  expected behaviour of `ThreadPool.terminate` is to wait for
the currently executing tasks to finish.

Use shorter sleep time for threadpools, so if a task manages to start, the test
doesn't block for long.

(cherry picked from commit c1db9606081bdbe0207f83a861a3c70c356d3704)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
22 months ago[3.11] gh-104522: Fix test_subprocess failure when build Python in the root home...
Miss Islington (bot) [Thu, 18 Jan 2024 12:19:18 +0000 (13:19 +0100)] 
[3.11] gh-104522: Fix test_subprocess failure when build Python in the root home directory (GH-114236) (GH-114245)

EPERM is raised when setreuid() fails.
EACCES is set in execve() when the test user has not access to sys.executable.
(cherry picked from commit 311d1e2701037952eaf75f993be76f3092c1f01c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.11] gh-104522: Fix OSError raised when run a subprocess (GH-114195) (GH-114243)
Serhiy Storchaka [Thu, 18 Jan 2024 11:32:57 +0000 (13:32 +0200)] 
[3.11] gh-104522: Fix OSError raised when run a subprocess (GH-114195) (GH-114243)

Only set filename to cwd if it was caused by failed chdir(cwd).

_fork_exec() now returns "noexec:chdir" for failed chdir(cwd).

(cherry picked from commit e2c097ebdee447ded1109f99a235e65aa3533bf8)

Co-authored-by: Robert O'Shea <PurityLake@users.noreply.github.com>
22 months ago[3.11] gh-114231: Fix indentation in enum.rst (GH-114232) (#114235)
Miss Islington (bot) [Thu, 18 Jan 2024 09:29:44 +0000 (10:29 +0100)] 
[3.11] gh-114231: Fix indentation in enum.rst (GH-114232) (#114235)

Co-authored-by: Miyashita Yosuke <44266492+miyashiiii@users.noreply.github.com>
22 months ago[3.11] gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (GH...
Miss Islington (bot) [Thu, 18 Jan 2024 05:05:00 +0000 (06:05 +0100)] 
[3.11] gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (GH-114227) (#114229)

Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'.
Suffix 'object' with '_'.
(cherry picked from commit 6f4b242a03e521a55f0b9e440703b424ed18ce2f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.11] gh-114211: Update EmailMessage doc about ordered keys (GH-114224) (#114226)
Miss Islington (bot) [Thu, 18 Jan 2024 02:56:03 +0000 (03:56 +0100)] 
[3.11] gh-114211: Update EmailMessage doc about ordered keys (GH-114224) (#114226)

Ordered keys are no longer unlike 'real dict's.
(cherry picked from commit 8cda72037b262772399b2b7fc36dee9340d74fd6)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.11] gh-38807: Fix race condition in Lib/trace.py (GH-110143) (GH-114207)
Miss Islington (bot) [Wed, 17 Jan 2024 20:26:09 +0000 (21:26 +0100)] 
[3.11] gh-38807: Fix race condition in Lib/trace.py (GH-110143) (GH-114207)

Instead of checking if a directory does not exist and thereafter
creating it, directly call os.makedirs() with the exist_ok=True.
(cherry picked from commit 78fcde039a33d8463e34356d5462fecee0f2831a)

Co-authored-by: buermarc <44375277+buermarc@users.noreply.github.com>
22 months ago[3.11] gh-105102: Fix nested unions in structures when the system byteorder is the...
Serhiy Storchaka [Wed, 17 Jan 2024 19:58:28 +0000 (21:58 +0200)] 
[3.11] gh-105102: Fix nested unions in structures when the system byteorder is the opposite (GH-105106) (GH-114205)

(cherry picked from commit 0b541f64c472976b2fee1ec9919bc7b02a798242)

Co-authored-by: Sheidan <37596668+Sh3idan@users.noreply.github.com>
22 months ago[3.11] Fix typo in tkinter.ttk.rst (GH-106157) (GH-114201)
Miss Islington (bot) [Wed, 17 Jan 2024 19:24:10 +0000 (20:24 +0100)] 
[3.11] Fix typo in tkinter.ttk.rst (GH-106157) (GH-114201)

(cherry picked from commit 7573c44c3278eacf0233146037d843bb2563877a)

Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
22 months ago[3.11] gh-114070: fix token reference warnings in expressions.rst (GH-114169) (#114193)
Miss Islington (bot) [Wed, 17 Jan 2024 16:53:08 +0000 (17:53 +0100)] 
[3.11] gh-114070: fix token reference warnings in expressions.rst (GH-114169) (#114193)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
22 months ago[3.11] gh-113858: GH Actions: Make ccache smaller (GH-114082) (#114188)
Petr Viktorin [Wed, 17 Jan 2024 16:06:52 +0000 (17:06 +0100)] 
[3.11] gh-113858: GH Actions: Make ccache smaller (GH-114082) (#114188)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
22 months ago[3.11] gh-111777: Fix assertion errors on incorrectly still-tracked GC object destruc...
Miss Islington (bot) [Wed, 17 Jan 2024 14:10:12 +0000 (15:10 +0100)] 
[3.11] gh-111777: Fix assertion errors on incorrectly still-tracked GC object destruction (GH-111778) (GH-111990)

In PyObject_GC_Del, in Py_DEBUG mode, when warning about GC objects that
were not properly untracked before starting destruction, take care to
untrack the object _before_ warning, to avoid triggering a GC run and
causing the problem the code tries to warn about. Also make sure to save and
restore any pending exceptions, which the warning would otherwise clobber or
trigger an assertion error on.
(cherry picked from commit ce6a533c4bf1afa3775dfcaee5fc7d5c15a4af8c)

Co-authored-by: T. Wouters <thomas@python.org>
22 months ago[3.11] gh-70835: Clarify error message for CSV file opened with wrong newline (GH...
Miss Islington (bot) [Wed, 17 Jan 2024 14:06:39 +0000 (15:06 +0100)] 
[3.11] gh-70835: Clarify error message for CSV file opened with wrong newline (GH-113786) (GH-113906)

Based on patch by SilentGhost.
(cherry picked from commit 568d220993fa9b4b812ff1b425edd80dbe17dda9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.11] gh-104282: Fix null pointer dereference in `lzma._decode_filter_properties...
Miss Islington (bot) [Wed, 17 Jan 2024 13:30:29 +0000 (14:30 +0100)] 
[3.11] gh-104282: Fix null pointer dereference in `lzma._decode_filter_properties` (GH-104283) (GH-114182)

(cherry picked from commit 0154405350c272833bd51f68138223655e142a37)

Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
22 months ago[3.11] gh-102468: Document `PyCFunction_New*` and `PyCMethod_New` (GH-112557) (GH...
Miss Islington (bot) [Wed, 17 Jan 2024 09:21:16 +0000 (10:21 +0100)] 
[3.11] gh-102468: Document `PyCFunction_New*` and `PyCMethod_New` (GH-112557) (GH-114120)

gh-102468: Document `PyCFunction_New*` and `PyCMethod_New` (GH-112557)
(cherry picked from commit a482bc67ee786e60937a547776fcf9528810e1ce)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
22 months ago[3.11] gh-72284: Revise lists in IDLE doc (GH-114174) (#114176)
Miss Islington (bot) [Wed, 17 Jan 2024 08:35:35 +0000 (09:35 +0100)] 
[3.11] gh-72284: Revise lists in IDLE doc  (GH-114174) (#114176)

Tkinter is a fact, not necessarily a feature.

Reorganize editor key bindings in a logical order
and remove those that do not work, at least on Windows.

Improve shell bindings list.
(cherry picked from commit 4a32275389d94ba41f8881c32ad4b232effb1c6f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.11] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (GH-114168...
Miss Islington (bot) [Wed, 17 Jan 2024 06:35:35 +0000 (07:35 +0100)] 
[3.11] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (GH-114168) (#114171)

This matches Firefox format.  Edge double-spaces non-simple
list but I think it looks worse.
(cherry picked from commit e07a400c310ad3bdd72bb0ae401991af17435e4d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.11] gh-112043: Align concurrent.futures.Executor.map docs with implementation...
Miss Islington (bot) [Wed, 17 Jan 2024 01:38:06 +0000 (02:38 +0100)] 
[3.11] gh-112043: Align concurrent.futures.Executor.map docs with implementation (GH-114153) (#114165)

The first parameter is named 'fn', not 'func'.
(cherry picked from commit 8d26db45df479a54eccd2aced7d8a5ea9fd0ffa5)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
22 months ago[3.11] gh-88531 Fix dataclass __post_init__/__init__ interplay documentation (gh...
Miss Islington (bot) [Wed, 17 Jan 2024 01:33:09 +0000 (02:33 +0100)] 
[3.11] gh-88531 Fix dataclass __post_init__/__init__ interplay documentation (gh-107404) (#114163)

* Simplify __post_init__ example usage. It applies to all base classes, not just dataclasses.
(cherry picked from commit 05008c27b73da640b63c0d335c65ade517c0eb84)

Co-authored-by: Steffen Zeile <48187781+Kaniee@users.noreply.github.com>
22 months ago[3.11] gh-94220: Align fnmatch docs with the implementation and amend markup (GH...
Miss Islington (bot) [Tue, 16 Jan 2024 22:42:57 +0000 (23:42 +0100)] 
[3.11] gh-94220: Align fnmatch docs with the implementation and amend markup (GH-114152) (#114156)

- Align the argument spec for fnmatch functions with the actual
  implementation.
- Update Sphinx markup to recent recommandations.
- Add link to 'iterable' glossary entry.

(cherry picked from commit 6e84f3b56f445b56ab48723d636c0a17090298ab)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
22 months ago[3.11] gh-113659: Skip hidden .pth files (GH-113660) (GH-114144)
Miss Islington (bot) [Tue, 16 Jan 2024 18:56:31 +0000 (19:56 +0100)] 
[3.11] gh-113659: Skip hidden .pth files (GH-113660) (GH-114144)

Skip .pth files with names starting with a dot or hidden file attribute.
(cherry picked from commit 74208ed0c440244fb809d8acc97cb9ef51e888e3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.11] Fix 'expresion' typo in IDLE doc (GH-114130) (#114140)
Miss Islington (bot) [Tue, 16 Jan 2024 18:31:25 +0000 (19:31 +0100)] 
[3.11] Fix 'expresion' typo in IDLE doc (GH-114130) (#114140)

The substantive change is on line 577/593. Rest is header/footer stuff ignored when displaying.
(cherry picked from commit 7a24ecc953e1edc9c5bbedbd19cc587c3ff635ea)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months agogh-114096: Restore privileges in _winapi.CreateJunction after creating the junction...
Steve Dower [Tue, 16 Jan 2024 17:37:17 +0000 (17:37 +0000)] 
gh-114096: Restore privileges in _winapi.CreateJunction after creating the junction (GH-114089)

This avoids impact on later parts of the application which may be able to do things they otherwise shouldn't.

22 months ago[3.11] Docs: Improve multiprocessing.SharedMemory reference (#114093) (#114138)
Erlend E. Aasland [Tue, 16 Jan 2024 17:18:34 +0000 (18:18 +0100)] 
[3.11] Docs: Improve multiprocessing.SharedMemory reference (#114093) (#114138)

(cherry picked from b1db6278cf6e60efdeca96244e5d73df4f070bea)

Align the multiprocessing shared memory docs with Diatáxis's
recommendations for references.

- use a parameter list for the SharedMemory.__init__() argument spec
- use the imperative mode
- use versionadded, not versionchanged, for added parameters
- reflow touched lines according to SemBr

22 months ago[3.11] gh-114107: test.pythoninfo logs Windows Developer Mode (GH-114121) (#114128)
Miss Islington (bot) [Tue, 16 Jan 2024 16:43:50 +0000 (17:43 +0100)] 
[3.11] gh-114107: test.pythoninfo logs Windows Developer Mode (GH-114121) (#114128)

gh-114107: test.pythoninfo logs Windows Developer Mode (GH-114121)

Also, don't skip the whole collect_windows() if ctypes is missing.

Log also ctypes.windll.shell32.IsUserAnAdmin().
(cherry picked from commit c77f552ec02040dfe14a0a3cb743d96eedffadec)

Co-authored-by: Victor Stinner <vstinner@python.org>
22 months ago[3.11] gh-114069: Revise Tutorial Methods paragraph (GH-114127) (#114132)
Miss Islington (bot) [Tue, 16 Jan 2024 16:43:23 +0000 (17:43 +0100)] 
[3.11] gh-114069: Revise Tutorial Methods paragraph (GH-114127) (#114132)

gh-114069: Revise Tutorial Methods paragraph (GH-114127)

Remove excess words in the first and third sentences.
(cherry picked from commit 31a2543c80e1e38c97e50533249d9aa00e2f6cae)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
22 months ago[3.11] Docs: Align multiprocessing.shared_memory docs with Sphinx recommendations...
Erlend E. Aasland [Tue, 16 Jan 2024 13:08:01 +0000 (14:08 +0100)] 
[3.11] Docs: Align multiprocessing.shared_memory docs with Sphinx recommendations (#114103) (#114114)

(cherry picked from commit af852740862169cf3e8789a13b86a7b1d03b91db)

- add :class: and :mod: markups where needed
- fix incorrect escaping of a star in ShareableList arg spec
- mark up parameters with stars: *val*
- mark up list of built-in types using list markup
- remove unneeded parentheses from :meth: markups

22 months ago[3.11] gh-114077: Fix OverflowError in socket.sendfile() when pass count >2GiB (GH...
Miss Islington (bot) [Tue, 16 Jan 2024 11:53:26 +0000 (12:53 +0100)] 
[3.11] gh-114077: Fix OverflowError in socket.sendfile() when pass count >2GiB (GH-114079) (GH-114111)

(cherry picked from commit d4dfad2aa9e76038302b0c5a29ebacc2723ed50d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
22 months ago[3.11] GH-101130: Document multiple arguments for `PurePath.[is_]relative_to()` ...
Barney Gale [Tue, 16 Jan 2024 01:37:55 +0000 (01:37 +0000)] 
[3.11] GH-101130: Document multiple arguments for `PurePath.[is_]relative_to()` (#114034)

3.11-only change as this is already covered in the 3.12+ deprecation
warning.

22 months ago[3.11] gh-114070: correct the specification of ``digit`` in the float() docs (GH...
Miss Islington (bot) [Mon, 15 Jan 2024 22:26:40 +0000 (23:26 +0100)] 
[3.11] gh-114070: correct the specification of ``digit`` in the float() docs (GH-114080) (#114095)

gh-114070: correct the specification of ``digit`` in the float() docs (GH-114080)
(cherry picked from commit 4f24b92aa0677ed5310dd2d1572b55f4e30c88ef)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
22 months ago[3.11] gh-101100: Fix Sphinx warnings in `howto/urllib2.rst` and `library/http.client...
Hugo van Kemenade [Sun, 14 Jan 2024 21:14:11 +0000 (23:14 +0200)] 
[3.11] gh-101100: Fix Sphinx warnings in `howto/urllib2.rst` and `library/http.client.rst` (GH-114060) (#114064)

(cherry picked from commit c2808431b32fa7bc0d222d4549389f781f1a7333)

22 months ago[3.11] gh-101225: Increase the socket backlog when creating a multiprocessing.connect...
Miss Islington (bot) [Sun, 14 Jan 2024 15:29:30 +0000 (16:29 +0100)] 
[3.11] gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (GH-113567) (#114019)

gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (GH-113567)

Increase the backlog for multiprocessing.connection.Listener` objects created
 by `multiprocessing.manager` and `multiprocessing.resource_sharer` to
 significantly reduce the risk of getting a connection refused error when creating
 a `multiprocessing.connection.Connection` to them.
(cherry picked from commit c7d59bd8cfa053e77ae3446c82afff1fd38a4886)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>