]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
21 months ago[3.12] Docs: use placeholders in dbm flag param docs (GH-114482) (#114497)
Miss Islington (bot) [Tue, 23 Jan 2024 20:05:21 +0000 (21:05 +0100)] 
[3.12] Docs: use placeholders in dbm flag param docs (GH-114482) (#114497)

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.12] gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (GH-114343) (#114488)
Miss Islington (bot) [Tue, 23 Jan 2024 15:58:44 +0000 (16:58 +0100)] 
[3.12] gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (GH-114343) (#114488)

gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (GH-114343)
(cherry picked from commit ba253a4794ae2d35a6f6df46a98a1ed38bd61268)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] Docs: mark up FTP.connect() and FTP.login() with param lists (GH-114395) ...
Miss Islington (bot) [Tue, 23 Jan 2024 14:04:01 +0000 (15:04 +0100)] 
[3.12] Docs: mark up FTP.connect() and FTP.login() with param lists (GH-114395) (#114485)

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.12] Docs: mark up FTP.retrbinary and FTP.storbinary with param lists (GH-114399...
Miss Islington (bot) [Tue, 23 Jan 2024 14:00:27 +0000 (15:00 +0100)] 
[3.12] Docs: mark up FTP.retrbinary and FTP.storbinary with param lists (GH-114399) (#114483)

(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.12] gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` (GH-114425) (#114477)
Miss Islington (bot) [Tue, 23 Jan 2024 11:23:31 +0000 (12:23 +0100)] 
[3.12] gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` (GH-114425) (#114477)

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.12] Docs: align usage of versionadded/versionchanged with recommended practice...
Erlend E. Aasland [Tue, 23 Jan 2024 09:39:57 +0000 (10:39 +0100)] 
[3.12] Docs: align usage of versionadded/versionchanged with recommended practice (#114409) (#114472)

(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.12] GH-105900: Fix `pathlib.Path.symlink_to(target_is_directory=...)` docs (GH...
Miss Islington (bot) [Tue, 23 Jan 2024 05:36:16 +0000 (06:36 +0100)] 
[3.12] GH-105900: Fix `pathlib.Path.symlink_to(target_is_directory=...)` docs (GH-114035) (#114464)

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.12] GH-82695: Clarify `pathlib.Path.mkdir()` documentation (GH-114032) (#114462)
Miss Islington (bot) [Tue, 23 Jan 2024 02:37:35 +0000 (03:37 +0100)] 
[3.12] GH-82695: Clarify `pathlib.Path.mkdir()` documentation (GH-114032) (#114462)

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.12] GH-99334: Explain that `PurePath.is_relative_to()` is purely lexical. (GH...
Miss Islington (bot) [Tue, 23 Jan 2024 01:12:59 +0000 (02:12 +0100)] 
[3.12] GH-99334: Explain that `PurePath.is_relative_to()` is purely lexical. (GH-114031) (#114460)

(cherry picked from commit 3a61d24062aaa1e13ba794360b6c765d9a1f2b06)

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

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

(cherry picked from commit 7fc51c3f6b7b13f88480557ff14bdb1c049f9a37)

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

(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.12] gh-114275: Skip doctests that use `asyncio` in `test_pdb` for WASI builds...
Miss Islington (bot) [Mon, 22 Jan 2024 17:02:23 +0000 (18:02 +0100)] 
[3.12] gh-114275: Skip doctests that use `asyncio` in `test_pdb` for WASI builds (GH-114309) (#114439)

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.12] gh-101100: Fix Sphinx warnings in `reference/expressions.rst` (GH-114194)...
Miss Islington (bot) [Mon, 22 Jan 2024 16:50:20 +0000 (17:50 +0100)] 
[3.12] gh-101100: Fix Sphinx warnings in `reference/expressions.rst` (GH-114194) (#114436)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.12] Docs: Fix typo in code snippet (GH-114421) (GH-114434)
Miss Islington (bot) [Mon, 22 Jan 2024 16:03:22 +0000 (17:03 +0100)] 
[3.12] Docs: Fix typo in code snippet (GH-114421) (GH-114434)

(cherry picked from commit 6d30cbee013b4182937ffa11a7c87d2a7b6b7b41)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
21 months ago[3.12] gh-108303: Remove `Lib/test/shadowed_super.py` (GH-114372) (#114433)
Miss Islington (bot) [Mon, 22 Jan 2024 15:40:42 +0000 (16:40 +0100)] 
[3.12] gh-108303: Remove `Lib/test/shadowed_super.py` (GH-114372) (#114433)

gh-108303: Remove `Lib/test/shadowed_super.py` (GH-114372)

Move code into Lib/test/test_super.py.
(cherry picked from commit 2ef520ebecf5544ba792266a5dbe4d53653a4a03)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-102512: Turn _DummyThread into _MainThread after os.fork() called from...
Miss Islington (bot) [Mon, 22 Jan 2024 15:24:43 +0000 (16:24 +0100)] 
[3.12] gh-102512: Turn _DummyThread into _MainThread after os.fork() called from a foreign thread (GH-113261) (GH-114430)

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: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
21 months ago[3.12] gh-111803: Make test_deep_nesting from test_plistlib more strict (GH-114026...
Miss Islington (bot) [Mon, 22 Jan 2024 15:16:12 +0000 (16:16 +0100)] 
[3.12] gh-111803: Make test_deep_nesting from test_plistlib more strict (GH-114026) (GH-114406)

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.12] gh-108303: Move `smtpd` to `test.support` (GH-114368) (#114427)
Miss Islington (bot) [Mon, 22 Jan 2024 14:08:31 +0000 (15:08 +0100)] 
[3.12] gh-108303: Move `smtpd` to `test.support` (GH-114368) (#114427)

gh-108303: Move `smtpd` to `test.support` (GH-114368)

Update test_logging.py and test_smtplib.py.
(cherry picked from commit 8f5e7d739f56a75022dfe8fa24675b6c7b321ab5)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-114115: Update documentation of array.array (GH-114117) (GH-114417)
Serhiy Storchaka [Mon, 22 Jan 2024 09:37:16 +0000 (11:37 +0200)] 
[3.12] gh-114115: Update documentation of array.array (GH-114117) (GH-114417)

(cherry picked from commit 650f9e4c94711ff49ea4e13bf800945a6147b7e0)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.12] gh-114328: tty cbreak mode should not alter ICRNL (GH-114335) (#114410)
Miss Islington (bot) [Sun, 21 Jan 2024 23:41:03 +0000 (00:41 +0100)] 
[3.12] gh-114328: tty cbreak mode should not alter ICRNL (GH-114335) (#114410)

The terminal CR -> NL mapping setting should be inherited in cbreak mode as OSes do not specify altering it as part of their stty cbreak mode definition.
(cherry picked from commit fd49e226700e2483a452c3c92da6f15d822ae054)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
21 months ago[3.12] gh-114241: Fix and improve the ftplib CLI (GH-114242) (GH-114404)
Miss Islington (bot) [Sun, 21 Jan 2024 20:48:12 +0000 (21:48 +0100)] 
[3.12] gh-114241: Fix and improve the ftplib CLI (GH-114242) (GH-114404)

* 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.12] Docs: align sqlite3 docs with versionadded/versionchanged recommendations...
Erlend E. Aasland [Sun, 21 Jan 2024 20:04:01 +0000 (21:04 +0100)] 
[3.12] Docs: align sqlite3 docs with versionadded/versionchanged recommendations (#114400) (#114402)

(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.12] Docs: link to sys.stdout in ftplib docs (GH-114396) (#114397)
Miss Islington (bot) [Sun, 21 Jan 2024 17:47:55 +0000 (18:47 +0100)] 
[3.12] Docs: link to sys.stdout in ftplib docs (GH-114396) (#114397)

(cherry picked from commit de17cf444a7b1e06380bb5bf8547f1fc3c03fc4a)

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

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

(cherry picked from commit 38768e4cdd1c4b6e03702da8a94e1c22479d6ed3)

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

(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.12] Docs: mark up the FTP debug levels as a list (GH-114360) (#114375)
Miss Islington (bot) [Sun, 21 Jan 2024 10:26:34 +0000 (11:26 +0100)] 
[3.12] Docs: mark up the FTP debug levels as a list (GH-114360) (#114375)

(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.12] gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (GH-114373) (#114377)
Miss Islington (bot) [Sun, 21 Jan 2024 09:41:00 +0000 (10:41 +0100)] 
[3.12] gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (GH-114373) (#114377)

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.12] Fix the confusing "User-defined methods" reference in the datamodel (GH-114276...
Miss Islington (bot) [Sun, 21 Jan 2024 03:52:04 +0000 (04:52 +0100)] 
[3.12] Fix the confusing "User-defined methods" reference in the datamodel (GH-114276) (#114365)

21 months ago[3.12] Docs: Add missing line continuation to FTP_TLS class docs (GH-114352) (#114353)
Miss Islington (bot) [Sat, 20 Jan 2024 20:21:00 +0000 (21:21 +0100)] 
[3.12] Docs: Add missing line continuation to FTP_TLS class docs (GH-114352) (#114353)

Docs: Add missing line continuation to FTP_TLS class docs (GH-114352)

Regression introduced by b1ad5a5d4.
(cherry picked from commit 8f4f77364750d0ceec47157e8920983e3f41651f)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.12] Docs: structure the ftplib reference (GH-114317) (#114347)
Miss Islington (bot) [Sat, 20 Jan 2024 19:16:53 +0000 (20:16 +0100)] 
[3.12] Docs: structure the ftplib reference (GH-114317) (#114347)

Docs: structure the ftplib reference (GH-114317)

Introduce the following headings and subheadings:

- Reference
  * FTP objects
  * FTP_TLS objects
  * Module variables
(cherry picked from commit b1ad5a5d446f944a45c43a3e865d1d8f47611071)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.12] GH-99380: Update to Sphinx 7 (GH-99381) (#114341)
Adam Turner [Sat, 20 Jan 2024 11:28:34 +0000 (11:28 +0000)] 
[3.12] GH-99380: Update to Sphinx 7 (GH-99381) (#114341)

(cherry picked from commit e6495159f6f2ca4fe3b5143c62fc2ad5873ef54f)

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

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>
21 months ago[3.12] Retain shorter tables of contents for Sphinx 5.2.3+ (GH-114318) (#114337)
Miss Islington (bot) [Sat, 20 Jan 2024 10:33:15 +0000 (11:33 +0100)] 
[3.12] Retain shorter tables of contents for Sphinx 5.2.3+ (GH-114318) (#114337)

21 months ago[3.12] Check for valid tp_version_tag in specializer (gh-89811) (gh-114216)
Peter Lazorchak [Fri, 19 Jan 2024 20:45:33 +0000 (12:45 -0800)] 
[3.12] Check for valid tp_version_tag in specializer (gh-89811) (gh-114216)

21 months ago[3.12] gh-114286: Fix `maybe-uninitialized` warning in `Modules/_io/fileio.c` (GH...
Miss Islington (bot) [Fri, 19 Jan 2024 10:58:09 +0000 (11:58 +0100)] 
[3.12] gh-114286: Fix `maybe-uninitialized` warning in `Modules/_io/fileio.c` (GH-114287) (GH-114288)

(cherry picked from commit 05e47202a34e6ae05e699af1083455f5b8b59496)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months ago[3.12] gh-112092: clarify unstable ABI recompilation requirements (GH-112093) (#114260)
Miss Islington (bot) [Thu, 18 Jan 2024 20:28:04 +0000 (21:28 +0100)] 
[3.12] gh-112092: clarify unstable ABI recompilation requirements (GH-112093) (#114260)

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>
21 months ago[3.12] gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest...
Miss Islington (bot) [Thu, 18 Jan 2024 16:25:04 +0000 (17:25 +0100)] 
[3.12] gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (GH-112109) (#114254)

gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (GH-112109)
(cherry picked from commit 9c93350f582fe6f5fed2cd873869dfe4fbf2dfe8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Brett Cannon <brett@python.org>
21 months ago[3.12] gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350) (GH-114253)
Miss Islington (bot) [Thu, 18 Jan 2024 16:11:03 +0000 (17:11 +0100)] 
[3.12] gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350) (GH-114253)

(cherry picked from commit b8f29b1293f55e12e86a2a039b49b6f9f73851b7)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
21 months ago[3.12] gh-111301: Advertise importlib methods removal in What's new in Python 3.12...
Miss Islington (bot) [Thu, 18 Jan 2024 13:38:13 +0000 (14:38 +0100)] 
[3.12] gh-111301: Advertise importlib methods removal in What's new in Python 3.12 (GH-111630) (GH-114187)

(cherry picked from commit f49752552e673e5192f22eae0076b2650c7d6afc)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
21 months ago[3.12] gh-113205: test_multiprocessing.test_terminate: Shorter sleep for threadpools...
Miss Islington (bot) [Thu, 18 Jan 2024 12:49:24 +0000 (13:49 +0100)] 
[3.12] gh-113205: test_multiprocessing.test_terminate: Shorter sleep for threadpools (GH-114186) (GH-114222)

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>
21 months ago[3.12] gh-104522: Fix test_subprocess failure when build Python in the root home...
Miss Islington (bot) [Thu, 18 Jan 2024 12:18:15 +0000 (13:18 +0100)] 
[3.12] gh-104522: Fix test_subprocess failure when build Python in the root home directory (GH-114236) (GH-114239)

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>
21 months ago[3.12] gh-114231: Fix indentation in enum.rst (GH-114232) (#114234)
Miss Islington (bot) [Thu, 18 Jan 2024 09:29:34 +0000 (10:29 +0100)] 
[3.12] gh-114231: Fix indentation in enum.rst (GH-114232) (#114234)

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

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>
21 months ago[3.12] gh-114149: [Enum] revert GH-114196 and add more tuple-subclass tests (GH-11421...
Miss Islington (bot) [Thu, 18 Jan 2024 04:36:28 +0000 (05:36 +0100)] 
[3.12] gh-114149: [Enum] revert GH-114196 and add more tuple-subclass tests (GH-114215) (GH-114218)

gh-114149: [Enum] revert GH-114160 and add more tuple-subclass tests (GH-114215)

This reverts commit 05e142b1543eb9662d6cc33722e7e16250c9219f.
(cherry picked from commit 4c7e09d0129dafddba58979ced9580f856f65efa)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
21 months ago[3.12] gh-114211: Update EmailMessage doc about ordered keys (GH-114224) (#114225)
Miss Islington (bot) [Thu, 18 Jan 2024 02:55:40 +0000 (03:55 +0100)] 
[3.12] gh-114211: Update EmailMessage doc about ordered keys (GH-114224) (#114225)

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

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
21 months ago[3.12] gh-104522: Fix OSError raised when run a subprocess (GH-114195) (#114219)
Miss Islington (bot) [Thu, 18 Jan 2024 01:19:11 +0000 (02:19 +0100)] 
[3.12] gh-104522: Fix OSError raised when run a subprocess (GH-114195) (#114219)

gh-104522: Fix OSError raised when run a subprocess (GH-114195)

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: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Robert O'Shea <PurityLake@users.noreply.github.com>
21 months ago[3.12] gh-112343: pdb: Use tokenize to replace convenience variables (GH-112380)...
Tian Gao [Wed, 17 Jan 2024 22:15:44 +0000 (14:15 -0800)] 
[3.12] gh-112343: pdb: Use tokenize to replace convenience variables (GH-112380) (#114202)

21 months ago[3.12] gh-114149: [Enum] fix tuple subclass handling when using custom __new__ (GH...
Miss Islington (bot) [Wed, 17 Jan 2024 21:34:48 +0000 (22:34 +0100)] 
[3.12] gh-114149: [Enum] fix tuple subclass handling when using custom __new__ (GH-114160) (GH-114196)

(cherry picked from commit 33b47a2c2853066b549f242065f6c2e12e18b33b)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
21 months ago[3.12] gh-38807: Fix race condition in Lib/trace.py (GH-110143) (GH-114206)
Miss Islington (bot) [Wed, 17 Jan 2024 20:35:00 +0000 (21:35 +0100)] 
[3.12] gh-38807: Fix race condition in Lib/trace.py (GH-110143) (GH-114206)

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>
21 months ago[3.12] gh-105102: Fix nested unions in structures when the system byteorder is the...
Serhiy Storchaka [Wed, 17 Jan 2024 20:11:44 +0000 (22:11 +0200)] 
[3.12] gh-105102: Fix nested unions in structures when the system byteorder is the opposite (GH-105106) (GH-114204)

(cherry picked from commit 0b541f64c472976b2fee1ec9919bc7b02a798242)

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

(cherry picked from commit 7573c44c3278eacf0233146037d843bb2563877a)

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

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
21 months ago[3.12] gh-104282: Fix null pointer dereference in `lzma._decode_filter_properties...
Miss Islington (bot) [Wed, 17 Jan 2024 13:31:33 +0000 (14:31 +0100)] 
[3.12] gh-104282: Fix null pointer dereference in `lzma._decode_filter_properties` (GH-104283) (GH-114181)

(cherry picked from commit 0154405350c272833bd51f68138223655e142a37)

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

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>
21 months ago[3.12] gh-72284: Revise lists in IDLE doc (GH-114174) (#114175)
Miss Islington (bot) [Wed, 17 Jan 2024 08:35:19 +0000 (09:35 +0100)] 
[3.12] gh-72284: Revise lists in IDLE doc  (GH-114174) (#114175)

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>
21 months ago[3.12] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (GH-114168...
Miss Islington (bot) [Wed, 17 Jan 2024 06:35:15 +0000 (07:35 +0100)] 
[3.12] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (GH-114168) (#114170)

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

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

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

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

* 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>
21 months ago[3.12] gh-106293: Fix typos in Objects/object_layout.md (GH-106294) (#114158)
Miss Islington (bot) [Tue, 16 Jan 2024 23:35:20 +0000 (00:35 +0100)] 
[3.12] gh-106293: Fix typos in Objects/object_layout.md (GH-106294) (#114158)

(cherry picked from commit 60ca37fdee52cc4ff318b6e9ddbb260e8583b33b)

Co-authored-by: Mano Sriram <mano.sriram0@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
21 months ago[3.12] gh-94220: Align fnmatch docs with the implementation and amend markup (GH...
Miss Islington (bot) [Tue, 16 Jan 2024 22:42:29 +0000 (23:42 +0100)] 
[3.12] gh-94220: Align fnmatch docs with the implementation and amend markup (GH-114152) (#114155)

- 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>
21 months ago[3.12] GH-78988: Document `pathlib.Path.glob()` exception propagation. (GH-114036...
Barney Gale [Tue, 16 Jan 2024 22:39:09 +0000 (22:39 +0000)] 
[3.12] GH-78988: Document `pathlib.Path.glob()` exception propagation. (GH-114036) (#114154)

We propagate the `OSError` from the `is_dir()` call on the top-level
directory, and suppress all others.

(cherry picked from commit 7092b3f1319269accf4c02f08256d51f111b9ca3)

21 months ago[3.12] gh-113659: Skip hidden .pth files (GH-113660) (GH-114143)
Miss Islington (bot) [Tue, 16 Jan 2024 18:57:14 +0000 (19:57 +0100)] 
[3.12] gh-113659: Skip hidden .pth files (GH-113660) (GH-114143)

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>
21 months ago[3.12] Fix 'expresion' typo in IDLE doc (GH-114130) (#114139)
Miss Islington (bot) [Tue, 16 Jan 2024 18:27:43 +0000 (19:27 +0100)] 
[3.12] Fix 'expresion' typo in IDLE doc (GH-114130) (#114139)

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>
21 months agogh-114096: Restore privileges in _winapi.CreateJunction after creating the junction...
Miss Islington (bot) [Tue, 16 Jan 2024 17:39:59 +0000 (18:39 +0100)] 
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.
(cherry picked from commit de4ced54eb08e8630e3b6c13436d4ecc3fb14708)

Co-authored-by: Steve Dower <steve.dower@python.org>
21 months ago[3.12] Docs: Improve multiprocessing.SharedMemory reference (#114093) (#114137)
Erlend E. Aasland [Tue, 16 Jan 2024 17:17:29 +0000 (18:17 +0100)] 
[3.12] Docs: Improve multiprocessing.SharedMemory reference (#114093) (#114137)

(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

21 months ago[3.12] gh-114107: test.pythoninfo logs Windows Developer Mode (GH-114121) (#114129)
Miss Islington (bot) [Tue, 16 Jan 2024 16:53:29 +0000 (17:53 +0100)] 
[3.12] gh-114107: test.pythoninfo logs Windows Developer Mode (GH-114121) (#114129)

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>
21 months ago[3.12] gh-114069: Revise Tutorial Methods paragraph (GH-114127) (#114131)
Miss Islington (bot) [Tue, 16 Jan 2024 16:43:20 +0000 (17:43 +0100)] 
[3.12] gh-114069: Revise Tutorial Methods paragraph (GH-114127) (#114131)

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>
21 months ago[3.12] gh-113858: GH Actions: Make ccache smaller (GH-113859, GH-113945) (GH-114082)
Petr Viktorin [Tue, 16 Jan 2024 15:28:27 +0000 (16:28 +0100)] 
[3.12] gh-113858: GH Actions: Make ccache smaller (GH-113859, GH-113945) (GH-114082)

This backports 3 PRs:

- https://github.com/python/cpython/pull/113859

  Only save ccache on pushes

- https://github.com/python/cpython/pull/113945

  Cut down ccache size

  - Only save the ccache in the main reusable builds, not on builds that
    don't use special build options:
      - Generated files check
    - OpenSSL tests
    - Hypothesis tests
  - Halve the max cache size, to 200M

- https://github.com/python/cpython/pull/114113

  Fixup for the above

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
21 months ago[3.12] Docs: Align multiprocessing.shared_memory docs with Sphinx recommendations...
Erlend E. Aasland [Tue, 16 Jan 2024 12:56:07 +0000 (13:56 +0100)] 
[3.12] Docs: Align multiprocessing.shared_memory docs with Sphinx recommendations (#114103) (#114112)

(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

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

(cherry picked from commit d4dfad2aa9e76038302b0c5a29ebacc2723ed50d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] Update KDE recipe to match the standard use of the h parameter (gh-113958...
Raymond Hettinger [Tue, 16 Jan 2024 04:46:01 +0000 (22:46 -0600)] 
[3.12] Update KDE recipe to match the standard use of the h parameter (gh-113958) (#114098)

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

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>
21 months ago[3.12] gh-109862: Fix test_create_subprocess_with_pidfd when it was run separately...
Miss Islington (bot) [Mon, 15 Jan 2024 07:55:35 +0000 (08:55 +0100)] 
[3.12] gh-109862: Fix test_create_subprocess_with_pidfd when it was run separately (GH-113991) (GH-114072)

(cherry picked from commit f8a79109d0c4f408d34d51861cc0a7c447f46d70)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-101100: Fix Sphinx warnings in `howto/urllib2.rst` and `library/http.client...
Hugo van Kemenade [Sun, 14 Jan 2024 21:14:08 +0000 (23:14 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings in `howto/urllib2.rst` and `library/http.client.rst` (GH-114060) (#114063)

(cherry picked from commit c2808431b32fa7bc0d222d4549389f781f1a7333)

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

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>
21 months ago[3.12] gh-95649: Document that asyncio contains uvloop code (GH-107536) (#114046)
Alois Klink [Sun, 14 Jan 2024 02:15:06 +0000 (02:15 +0000)] 
[3.12] gh-95649: Document that asyncio contains uvloop code (GH-107536) (#114046)

Some of the asyncio SSL changes in GH-31275 [1] were taken from
v0.16.0 of the uvloop project [2]. In order to comply with the MIT
license, we need to just need to document the copyright information.

[1]: https://github.com/python/cpython/pull/31275
[2]: https://github.com/MagicStack/uvloop/tree/v0.16.0

(cherry picked from commit dce30c9cbc212e5455e100f35ac6afeb30dfd23e)

21 months ago[3.12] gh-114014: Update `fractions.Fraction()`'s rational parsing regex (GH-114015...
Miss Islington (bot) [Sat, 13 Jan 2024 18:21:34 +0000 (19:21 +0100)] 
[3.12] gh-114014: Update `fractions.Fraction()`'s rational parsing regex (GH-114015) (#114023)

Fix a bug in the regex used for parsing a string input to the `fractions.Fraction` constructor. That bug led to an inconsistent exception message being given for some inputs.

---------

(cherry picked from commit dd56b5748317c3d504d6a9660d9207620c547f5c)

Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
21 months ago[3.12] gh-114021: Pin various sphinxcontrib extensions to older versions (#114022)
Ronald Oussoren [Sat, 13 Jan 2024 17:39:02 +0000 (18:39 +0100)] 
[3.12] gh-114021: Pin various sphinxcontrib extensions to older versions (#114022)

21 months ago[3.12] gh-89159: Document missing TarInfo members (GH-91564) (#114006)
Miss Islington (bot) [Fri, 12 Jan 2024 23:26:08 +0000 (00:26 +0100)] 
[3.12] gh-89159: Document missing TarInfo members (GH-91564) (#114006)

gh-89159: Document missing TarInfo members (GH-91564)
(cherry picked from commit 3aa4b839e4aa01d4e8bc5c7685fd0eb17c4609b8)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
21 months ago[3.12] datamodel: Fix a typo in ``object.__init_subclass__`` (GH-111599) (#114004)
Miss Islington (bot) [Fri, 12 Jan 2024 23:05:48 +0000 (00:05 +0100)] 
[3.12] datamodel: Fix a typo in ``object.__init_subclass__`` (GH-111599) (#114004)

datamodel: Fix a typo in ``object.__init_subclass__`` (GH-111599)
(cherry picked from commit a47353d587b78bb5501b21343d9bca739c49a43a)

Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
21 months ago[3.12] Link to the glossary for "magic methods" in ``MagicMock`` (GH-111292) (#114002)
Miss Islington (bot) [Fri, 12 Jan 2024 23:00:50 +0000 (00:00 +0100)] 
[3.12] Link to the glossary for "magic methods" in ``MagicMock`` (GH-111292) (#114002)

Link to the glossary for "magic methods" in ``MagicMock`` (GH-111292)

The MagicMock documentation mentions magic methods several times without
actually pointing to the term in the glossary. This can be helpful for
people to fully understand what those magic methods are.
(cherry picked from commit e97da8677f7bbc6d970e230d334cd646ab662af1)

Co-authored-by: Pierre Equoy <pierre.equoy@canonical.com>
21 months ago[3.12] gh-101100: Fix Sphinx Lint warnings in `Misc/` (GH-113946) (#113998)
Hugo van Kemenade [Fri, 12 Jan 2024 22:58:16 +0000 (00:58 +0200)] 
[3.12] gh-101100: Fix Sphinx Lint warnings in `Misc/` (GH-113946) (#113998)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
21 months ago[3.12] Tutorial: Clarify 'nonzero exit status' in the appendix (GH-112039) (#113999)
Miss Islington (bot) [Fri, 12 Jan 2024 22:48:59 +0000 (23:48 +0100)] 
[3.12] Tutorial: Clarify 'nonzero exit status' in the appendix (GH-112039) (#113999)

Tutorial: Clarify 'nonzero exit status' in the appendix (GH-112039)
(cherry picked from commit 32f3684b8f18d757945eee67a697cb4a95c697db)

Co-authored-by: Andrew Zipperer <47086307+zipperer@users.noreply.github.com>
21 months agogh-111877: Fixes stat() handling for inaccessible files on Windows (GH-113716)
Miss Islington (bot) [Fri, 12 Jan 2024 15:53:27 +0000 (16:53 +0100)] 
gh-111877: Fixes stat() handling for inaccessible files on Windows (GH-113716)

(cherry picked from commit ed066481c76c6888ff5709f5b9f93b92c232a4a6)

Co-authored-by: Steve Dower <steve.dower@python.org>
21 months ago[3.12] Docs: Amend codeobject.co_lines docs; end number is exclusive (GH-113970)...
Miss Islington (bot) [Fri, 12 Jan 2024 15:10:43 +0000 (16:10 +0100)] 
[3.12] Docs: Amend codeobject.co_lines docs; end number is exclusive (GH-113970) (#113987)

The end number should be exclusive, not inclusive.
(cherry picked from commit e68806c7122070078507b370b13bb225f8501ff8)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
21 months ago[3.12] gh-113027: Fix test_variable_tzname in test_email (GH-113821) (GH-113831)
Miss Islington (bot) [Fri, 12 Jan 2024 12:00:17 +0000 (13:00 +0100)] 
[3.12] gh-113027: Fix test_variable_tzname in test_email (GH-113821) (GH-113831)

Determine the support of the Kyiv timezone by checking the result of
astimezone() which uses the system tz database and not the one
populated by zoneinfo.
(cherry picked from commit 931d7e052e22aa01e18fcc67ed71b6ea305aff71)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-113903: Fix an IDLE configdialog test (GH-113973) (#113974)
Miss Islington (bot) [Fri, 12 Jan 2024 03:39:45 +0000 (04:39 +0100)] 
[3.12] gh-113903: Fix an IDLE configdialog test (GH-113973) (#113974)

test_configdialog.HighPageTest.test_highlight_target_text_mouse fails
if a line of the Highlight tab text sample is not visible. If so, bbox()
in click_char() returns None and the unpacking iteration fails.

This occurred on a Devuan Linux system. Fix by moving the
'see character' call inside click_char, just before the bbox call.

Also, reduce the click_char calls to just one per tag name and
replace the other nested function with a dict comprehension.
(cherry picked from commit c4992f4106aa509375f5beca8dc044a7f6c36a72)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
21 months ago[3.12] Improve kde graph with better caption and number formatting (gh-113967) (gh...
Miss Islington (bot) [Fri, 12 Jan 2024 00:49:10 +0000 (01:49 +0100)] 
[3.12] Improve kde graph with better caption and number formatting (gh-113967) (gh-113968)

21 months ago[3.12] GH-107678: Improve Unicode handling clarity in ``library/re.rst`` (GH-107679...
Miss Islington (bot) [Fri, 12 Jan 2024 00:02:28 +0000 (01:02 +0100)] 
[3.12] GH-107678: Improve Unicode handling clarity in ``library/re.rst`` (GH-107679) (#113965)

GH-107678: Improve Unicode handling clarity in ``library/re.rst`` (GH-107679)
(cherry picked from commit c9b8a22f3404d59e2c4950715f8c29413a349b8e)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
21 months agogh-81489: Use Unicode APIs for mmap tagname on Windows (GH-14133)
Miss Islington (bot) [Thu, 11 Jan 2024 23:13:02 +0000 (00:13 +0100)] 
gh-81489: Use Unicode APIs for mmap tagname on Windows (GH-14133)

(cherry picked from commit b4d4aa9e8d61476267951c72321fadffc2d82227)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.12] gh-112419: Document removal of sys.meta_path's 'find_module' fallback (GH...
Miss Islington (bot) [Thu, 11 Jan 2024 09:49:21 +0000 (10:49 +0100)] 
[3.12] gh-112419: Document removal of sys.meta_path's 'find_module' fallback (GH-112421) (#113934)

(cherry picked from commit ec23e90082ffdedc7f0bdd2dfadfc4983ddc0712)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
21 months ago[3.12] gh-109858: Protect zipfile from "quoted-overlap" zipbomb (GH-110016) (GH-113912)
Miss Islington (bot) [Thu, 11 Jan 2024 09:24:29 +0000 (10:24 +0100)] 
[3.12] gh-109858: Protect zipfile from "quoted-overlap" zipbomb (GH-110016) (GH-113912)

Raise BadZipFile when try to read an entry that overlaps with other entry or
central directory.
(cherry picked from commit 66363b9a7b9fe7c99eba3a185b74c5fdbf842eba)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (GH-113897) (#113928)
Miss Islington (bot) [Wed, 10 Jan 2024 23:56:57 +0000 (00:56 +0100)] 
[3.12] gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (GH-113897) (#113928)

gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (GH-113897)

Fix DeprecationWarning in test___ne__().

(cherry picked from commit 9d33c23857cfd952bf3e1e7f34c77b7c9a5accc3)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
21 months agogh-87868: Sort and remove duplicates in getenvironment() (GH-102731)
Miss Islington (bot) [Wed, 10 Jan 2024 23:43:39 +0000 (00:43 +0100)] 
gh-87868: Sort and remove duplicates in getenvironment() (GH-102731)

(cherry picked from commit c31be58da8577ef140e83d4e46502c7bb1eb9abf)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
21 months ago[3.12] gh-113625: Align object addresses in the Descriptor HowTo Guide (GH-113894...
Miss Islington (bot) [Wed, 10 Jan 2024 17:32:54 +0000 (18:32 +0100)] 
[3.12] gh-113625: Align object addresses in the Descriptor HowTo Guide (GH-113894) (#113922)

gh-113625: Align object addresses in the Descriptor HowTo Guide (GH-113894)
(cherry picked from commit 901a971e161e060bd95f3cf3aeebe8b48d6e6dac)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
21 months ago[3.12] gh-70835: Clarify error message for CSV file opened with wrong newline (GH...
Miss Islington (bot) [Wed, 10 Jan 2024 13:26:04 +0000 (14:26 +0100)] 
[3.12] gh-70835: Clarify error message for CSV file opened with wrong newline (GH-113786) (GH-113905)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-113594: Fix UnicodeEncodeError in TokenList.fold() (GH-113730) (GH-113907)
Miss Islington (bot) [Wed, 10 Jan 2024 13:21:50 +0000 (14:21 +0100)] 
[3.12] gh-113594: Fix UnicodeEncodeError in TokenList.fold() (GH-113730) (GH-113907)

It occurred when try to re-encode an unknown-8bit part combined with non-unknown-8bit part.
(cherry picked from commit e9d5b6ea2d68564f176fdf70c2d7028e060c62b5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
21 months ago[3.12] gh-113664: Improve style of Big O notation (GH-113695) (GH-113909)
Miss Islington (bot) [Wed, 10 Jan 2024 13:08:08 +0000 (14:08 +0100)] 
[3.12] gh-113664: Improve style of Big O notation (GH-113695) (GH-113909)

Use cursive to make it looking like mathematic formulas.
(cherry picked from commit a8629816c6c0e6770248a60529fd7c9ba08aad55)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>