]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.12] gh-110918: regrtest: allow to intermix --match and --ignore options (GH-110919...
Serhiy Storchaka [Sat, 21 Oct 2023 17:33:26 +0000 (20:33 +0300)] 
[3.12] gh-110918: regrtest: allow to intermix --match and --ignore options (GH-110919) (GH-111167)

Test case matching patterns specified by options --match, --ignore,
--matchfile and --ignorefile are now tested in the order of
specification, and the last match determines whether the test case be run
or ignored.
(cherry picked from commit 9a1fe09622cd0f1e24c2ba5335c94c5d70306fd0)

2 years ago[3.12] gh-111157: Mention `__notes__` in `traceback.format_exception_only` docstring...
Miss Islington (bot) [Sat, 21 Oct 2023 17:07:09 +0000 (19:07 +0200)] 
[3.12] gh-111157: Mention `__notes__` in `traceback.format_exception_only` docstring (GH-111158) (#111163)

gh-111157: Mention `__notes__` in `traceback.format_exception_only` docstring (GH-111158)
(cherry picked from commit 5e7727b05232b43589d177c15263d7f4f8c584a0)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-110572: Fix potential leaks in test_*_code in _testcapi/getargs.c (GH-11057...
Miss Islington (bot) [Sat, 21 Oct 2023 12:57:22 +0000 (14:57 +0200)] 
[3.12] gh-110572: Fix potential leaks in test_*_code in _testcapi/getargs.c (GH-110573) (GH-111161)

(cherry picked from commit f71cd5394efe154ba92228b2b67be910cc1ede95)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-110932: Fix regrtest for SOURCE_DATE_EPOCH (GH-111143) (#111154)
Miss Islington (bot) [Sat, 21 Oct 2023 09:18:35 +0000 (11:18 +0200)] 
[3.12] gh-110932: Fix regrtest for SOURCE_DATE_EPOCH (GH-111143) (#111154)

gh-110932: Fix regrtest for SOURCE_DATE_EPOCH (GH-111143)

If the SOURCE_DATE_EPOCH environment variable is defined, use its
value as the random seed.
(cherry picked from commit 7237fb578dc9db9dc557759a24d8083425107b91)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-111046: for wasi-threads, export memory as well via the linker (GH-111099...
Miss Islington (bot) [Fri, 20 Oct 2023 22:23:15 +0000 (00:23 +0200)] 
[3.12] gh-111046: for wasi-threads, export memory as well via the linker (GH-111099) (GH-111141)

gh-111046: for wasi-threads, export memory as well via the linker (GH-111099)
(cherry picked from commit 5dfa71769f547fffa893a89b0b04d963a41b2441)

Co-authored-by: YAMAMOTO Takashi <yamamoto@midokura.com>
2 years ago[3.12] gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing...
Miss Islington (bot) [Fri, 20 Oct 2023 18:27:35 +0000 (20:27 +0200)] 
[3.12] gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing` (GH-111127) (#111130)

gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing` (GH-111127)
(cherry picked from commit ea7c26e4b89c71234c4a603567a93f0a44c9cc97)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years agogh-110913: Fix WindowsConsoleIO chunking of UTF-8 text (GH-111007)
Miss Islington (bot) [Fri, 20 Oct 2023 12:37:31 +0000 (14:37 +0200)] 
gh-110913: Fix WindowsConsoleIO chunking of UTF-8 text (GH-111007)

(cherry picked from commit 11312eae6ec3acf51aacafce4cb6d1a5edfd5f2e)

Co-authored-by: Tamás Hegedűs <sorgloomer@users.noreply.github.com>
2 years ago[3.12] Add tests for failing PyUnicode_AsUTF8AndSize() with psize=NULL (GH-111100...
Miss Islington (bot) [Fri, 20 Oct 2023 10:22:09 +0000 (12:22 +0200)] 
[3.12] Add tests for failing PyUnicode_AsUTF8AndSize() with psize=NULL (GH-111100) (GH-111105)

(cherry picked from commit b60f05870816019cfd9b2f7d104364613e66fc78)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `library/codecs.rst` (GH-110979) (#111070)
Miss Islington (bot) [Fri, 20 Oct 2023 08:09:18 +0000 (10:09 +0200)] 
[3.12] gh-101100: Fix sphinx warnings in `library/codecs.rst` (GH-110979) (#111070)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079) (#111097)
Miss Islington (bot) [Fri, 20 Oct 2023 04:49:41 +0000 (06:49 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079) (#111097)

gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079)

Fix Sphinx warnings in library/tty.rst
(cherry picked from commit c42c68aa7bd19b0de7f2132ed468bc4ce83d8aa9)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-111092: Make turtledemo run without default root enabled (GH-111093) (...
Miss Islington (bot) [Fri, 20 Oct 2023 04:22:15 +0000 (06:22 +0200)] 
[3.12] gh-111092: Make turtledemo run without default root enabled (GH-111093) (#111095)

gh-111092: Make turtledemo run without default root enabled (GH-111093)

Add missing 'root' argument to PanedWindow call.
Other root children already have it.
(cherry picked from commit b802882fb2bff8b431df661322908c07491f3ce7)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `library/getpass.rst` (GH-110461) (#111080)
Hugo van Kemenade [Thu, 19 Oct 2023 15:38:58 +0000 (18:38 +0300)] 
[3.12] gh-101100: Fix sphinx warnings in `library/getpass.rst` (GH-110461) (#111080)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-109510: Clearly explain "Which Docstrings Are Examined" (GH-109696) (#111077)
Miss Islington (bot) [Thu, 19 Oct 2023 15:35:04 +0000 (17:35 +0200)] 
[3.12] gh-109510: Clearly explain "Which Docstrings Are Examined" (GH-109696) (#111077)

Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com>
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years ago[3.12] GH-101100: Fix reference warnings for ``__enter__`` and ``__exit__`` (GH-11011...
Miss Islington (bot) [Thu, 19 Oct 2023 15:34:25 +0000 (17:34 +0200)] 
[3.12] GH-101100: Fix reference warnings for ``__enter__`` and ``__exit__`` (GH-110112) (#111075)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-101100: Fix reference warnings for ``__getitem__`` (GH-110118) (#111073)
Miss Islington (bot) [Thu, 19 Oct 2023 15:33:03 +0000 (17:33 +0200)] 
[3.12] GH-101100: Fix reference warnings for ``__getitem__`` (GH-110118) (#111073)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-108791: Fix pdb CLI invalid argument handling (GH-108816) (#111064)
Radislav Chugunov [Thu, 19 Oct 2023 13:25:49 +0000 (16:25 +0300)] 
[3.12] gh-108791: Fix pdb CLI invalid argument handling (GH-108816) (#111064)

* [3.12] gh-108791: Fix `pdb` CLI invalid argument handling (GH-108816)
(cherry picked from commit 162213f2db3835e1115178d38741544f4b4db416)

Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
2 years ago[3.12] gh-111031: Check more files in `test_tokenize` (GH-111032) (#111061)
Miss Islington (bot) [Thu, 19 Oct 2023 09:18:22 +0000 (11:18 +0200)] 
[3.12] gh-111031: Check more files in `test_tokenize` (GH-111032) (#111061)

gh-111031: Check more files in `test_tokenize` (GH-111032)
(cherry picked from commit e9b5399bee7106beeeb38a45cfef3f0ed3fdd703)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (GH-111053...
Miss Islington (bot) [Thu, 19 Oct 2023 04:32:06 +0000 (06:32 +0200)] 
[3.12] gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (GH-111053) (#111055)

gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (GH-111053)

Replace tuple value with internal name, removing numbers.
Remove sorting of already ordered dislay names.
Remove '[0]' indexing into now-gone tuple.
(cherry picked from commit 642eb8df951f2f1d4bf4d93ee568707c5bf40a96)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.12] GH-103082: Clean up the sys.monitoring docs (GH-111048)
Brandt Bucher [Wed, 18 Oct 2023 23:30:13 +0000 (16:30 -0700)] 
[3.12] GH-103082: Clean up the sys.monitoring docs (GH-111048)

(cherry picked from commit 19916941172844f9c52d7a6dce95efaa23035772)

2 years ago[3.12] GH-104232: Fix statement about trace return values (GH-111047)
Miss Islington (bot) [Wed, 18 Oct 2023 23:22:03 +0000 (01:22 +0200)] 
[3.12] GH-104232: Fix statement about trace return values (GH-111047)

(cherry picked from commit d9246c7b734b8958da03494045208681d95f5b74)

2 years ago[3.12] gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct...
Miss Islington (bot) [Wed, 18 Oct 2023 13:32:09 +0000 (15:32 +0200)] 
[3.12] gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct permissions (gh-111037)

(cherry picked from commit cb1bf89c4066f30c80f7d1193b586a2ff8c40579)

Co-authored-by: Joshua Root <jmr@macports.org>
Co-authored-by: Ned Deily <nad@python.org>
2 years ago[3.12] gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960) ...
Miss Islington (bot) [Wed, 18 Oct 2023 09:05:08 +0000 (11:05 +0200)] 
[3.12] gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960) (#111026)

gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960)

Add comments where .keys() is needed.
Leave debugger usages along because situation is unclear as indicated in expanded comment.
Most testing is manual.
(cherry picked from commit baefbb21d91db2d950706737a6ebee9b2eff5c2d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.12] gh-111019: Align expected and actual titles in test output (GH-111020) (#111024)
Miss Islington (bot) [Wed, 18 Oct 2023 08:01:18 +0000 (10:01 +0200)] 
[3.12] gh-111019: Align expected and actual titles in test output (GH-111020) (#111024)

gh-111019: Align expected and actual titles in test output (GH-111020)

Align expected and actual titles in output from
assert_has_calls/assert_called_with for greater readability
(cherry picked from commit 77dbd956090aac66e264d9d640f6adb6b0930b87)

Co-authored-by: James <morisja@gmail.com>
2 years ago[3.12] gh-110938: More syntax tests for PEP695 funcs and classes (GH-110986) (#111023)
Miss Islington (bot) [Wed, 18 Oct 2023 06:02:17 +0000 (08:02 +0200)] 
[3.12] gh-110938: More syntax tests for PEP695 funcs and classes (GH-110986) (#111023)

gh-110938: More syntax tests for PEP695 funcs and classes (GH-110986)
(cherry picked from commit 220bcc9e27c89bf3b3609b80a31b1398840f195e)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-110938: Fix error messages for indented blocks with functio… (#110990)
Jelle Zijlstra [Wed, 18 Oct 2023 05:26:34 +0000 (22:26 -0700)] 
[3.12] gh-110938: Fix error messages for indented blocks with functio… (#110990)

[3.12] gh-110938: Fix error messages for indented blocks with functions and classes with generic type parameters (GH-110973)
(cherry picked from commit 24e4ec7766fd471deb5b7e5087f0e7dba8576cfb)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 years ago[3.12] Regen Doc/requirements-oldest-sphinx.txt (GH-111012) (#111022)
Miss Islington (bot) [Wed, 18 Oct 2023 04:30:14 +0000 (06:30 +0200)] 
[3.12] Regen Doc/requirements-oldest-sphinx.txt (GH-111012) (#111022)

Regen Doc/requirements-oldest-sphinx.txt (GH-111012)

Fix https://github.com/python/cpython/security/dependabot/4: use
urllib3 version 2.0.7.
(cherry picked from commit e7ae43ad7dde74e731a9d258e372d17f3b2eb893)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-107457: update dis documentation with changes in 3.12 (GH-108900) (#110985)
Miss Islington (bot) [Tue, 17 Oct 2023 22:38:42 +0000 (00:38 +0200)] 
[3.12] gh-107457: update dis documentation with changes in 3.12 (GH-108900) (#110985)

gh-107457: update dis documentation with changes in 3.12 (GH-108900)
(cherry picked from commit 198aa67d4ceb5298c3c60f7a77524f5ba084c121)

Co-authored-by: Matthieu Dartiailh <m.dartiailh@gmail.com>
2 years ago[3.12] gh-110995: Fix test_gdb check_usable_gdb() (GH-110998) (#111003)
Miss Islington (bot) [Tue, 17 Oct 2023 18:45:55 +0000 (20:45 +0200)] 
[3.12] gh-110995: Fix test_gdb check_usable_gdb() (GH-110998) (#111003)

gh-110995: Fix test_gdb check_usable_gdb() (GH-110998)

Fix detection of gdb built without Python scripting support.

* check_usable_gdb() doesn't check gdb exit code when calling
  run_gdb().
* Use shutil.which() to get the path to the gdb program.
(cherry picked from commit 920b3dfacad615c7bb9bd9a35774469f8809b453)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] Bump test deps: `ruff` and `pre-commit-hooks` (GH-110972) (#110980)
Nikita Sobolev [Tue, 17 Oct 2023 13:01:57 +0000 (16:01 +0300)] 
[3.12] Bump test deps: `ruff` and `pre-commit-hooks` (GH-110972) (#110980)

(cherry picked from commit b75b1f389f083db8568bff573c33ab4ecf29655a)

2 years ago[3.12] gh-110695: test_asyncio uses 50 ms for clock resolution (GH-110952) (#110970)
Miss Islington (bot) [Tue, 17 Oct 2023 10:13:31 +0000 (12:13 +0200)] 
[3.12] gh-110695: test_asyncio uses 50 ms for clock resolution (GH-110952) (#110970)

gh-110695: test_asyncio uses 50 ms for clock resolution (GH-110952)

Before utils.CLOCK_RES constant was added (20 ms), test_asyncio
already used 50 ms.
(cherry picked from commit 9a9fba825f8aaee4ea9b3429875c6c6324d0dee0)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] Bump sphinx-lint to v0.8.1 (GH-110933) (#110957)
Miss Islington (bot) [Tue, 17 Oct 2023 05:29:43 +0000 (07:29 +0200)] 
[3.12] Bump sphinx-lint to v0.8.1 (GH-110933) (#110957)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] C-API docs: Clarify the size of arenas (GH-110895) (#110946)
Miss Islington (bot) [Mon, 16 Oct 2023 19:03:18 +0000 (21:03 +0200)] 
[3.12] C-API docs: Clarify the size of arenas (GH-110895) (#110946)

C-API docs: Clarify the size of arenas (GH-110895)

Clarify the size of arenas

From 3.10.0 alpha 7, the pymalloc allocator uses arenas with a fixed size of 1
MiB on 64-bit platforms instead of 256 KiB on 32-bit platforms.
(cherry picked from commit f07ca27709855d4637b43bba23384cc795143ee3)

Co-authored-by: Mienxiu <82512658+mienxiu@users.noreply.github.com>
2 years ago[3.12] gh-107450: Check for overflow in the tokenizer and fix overflow test (GH-11083...
Lysandros Nikolaou [Mon, 16 Oct 2023 16:59:18 +0000 (18:59 +0200)] 
[3.12] gh-107450: Check for overflow in the tokenizer and fix overflow test (GH-110832) (#110931)

(cherry picked from commit a1ac5590e0f8fe008e5562d22edab65d0c1c5507)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] Enable ruff on several more files in `Lib/test` (#110929) (#110934)
Alex Waygood [Mon, 16 Oct 2023 15:48:02 +0000 (16:48 +0100)] 
[3.12] Enable ruff on several more files in `Lib/test` (#110929) (#110934)

(cherry-picked from commit 02d26c4bef3ad0f9c97e47993a7fa67898842e5c)

2 years ago[3.12] regrtest: Prepend 'use' options in --{fast,slow}-ci (GH-110363) (#110925)
Miss Islington (bot) [Mon, 16 Oct 2023 13:35:01 +0000 (15:35 +0200)] 
[3.12] regrtest: Prepend 'use' options in --{fast,slow}-ci (GH-110363) (#110925)

regrtest: Prepend 'use' options in --{fast,slow}-ci (GH-110363)

This allows individual resources to be disabled without having to explicitly re-enable all others.
(cherry picked from commit b75186f69edcf54615910a5cd707996144163ef7)

Co-authored-by: Zachary Ware <zach@python.org>
2 years ago[3.12] gh-110527: Improve `PySet_Clear` docs (GH-110528) (#110928)
Miss Islington (bot) [Mon, 16 Oct 2023 13:14:52 +0000 (15:14 +0200)] 
[3.12] gh-110527: Improve `PySet_Clear` docs (GH-110528) (#110928)

gh-110527: Improve `PySet_Clear` docs (GH-110528)
(cherry picked from commit bfc1cd8145db00df23fbbd2ed95324bb96c0b25b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] Lint: Include test_monitoring.py for Ruff (GH-110898) (#110899)
Miss Islington (bot) [Sun, 15 Oct 2023 17:34:37 +0000 (19:34 +0200)] 
[3.12] Lint: Include test_monitoring.py for Ruff (GH-110898) (#110899)

Lint: Include test_monitoring.py for Ruff (GH-110898)
(cherry picked from commit 9608704cde4441c76c1b8b765e3aea072bca3b0d)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] gh-106193: Rename and fix duplicated tests in `test_monitoring` (GH-109139...
Hugo van Kemenade [Sun, 15 Oct 2023 17:32:08 +0000 (20:32 +0300)] 
[3.12] gh-106193: Rename and fix duplicated tests in `test_monitoring` (GH-109139) (#110897)

2 years ago[3.12] gh-110886 Doc: add a link to BNF Wikipedia article (GH-110887) (#110900)
Miss Islington (bot) [Sun, 15 Oct 2023 17:00:44 +0000 (19:00 +0200)] 
[3.12] gh-110886 Doc: add a link to BNF Wikipedia article (GH-110887) (#110900)

Co-authored-by: partev <petrosyan@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825) (GH-110882)
Serhiy Storchaka [Sun, 15 Oct 2023 07:59:19 +0000 (10:59 +0300)] 
[3.12] bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825) (GH-110882)

zipinfo now supports the full range of values in the TZ string
determined by RFC 8536 and detects all invalid formats.
Both Python and C implementations now raise exceptions of the same
type on invalid data.
(cherry picked from commit ab08ff7882b6181fb785eed7410dbf8030aded70)

2 years ago[3.12] gh-109216: Fix possible memory leak in `BUILD_MAP` (#109324)
Nikita Sobolev [Sun, 15 Oct 2023 01:38:40 +0000 (04:38 +0300)] 
[3.12] gh-109216: Fix possible memory leak in `BUILD_MAP` (#109324)

2 years ago[3.12] gh-101100: Fix sphinx warnings in `library/time.rst` (GH-110862) (#110877)
Miss Islington (bot) [Sat, 14 Oct 2023 14:28:58 +0000 (16:28 +0200)] 
[3.12] gh-101100: Fix sphinx warnings in `library/time.rst` (GH-110862) (#110877)

gh-101100: Fix sphinx warnings in `library/time.rst` (GH-110862)
(cherry picked from commit 12deda763359d46d4eccbb8991afed71fa31a68b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] remove redundant call to attach_loop in watcher (GH-110847) (#110867)
Miss Islington (bot) [Sat, 14 Oct 2023 10:27:08 +0000 (12:27 +0200)] 
[3.12] remove redundant call to attach_loop in watcher (GH-110847) (#110867)

(cherry picked from commit 596589104fe5a4d90cb145b2cc69b71cc9aa9f07)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2 years ago[3.12] gh-110715: Add missing import in zipfile (gh-110822) (gh-110861)
Miss Islington (bot) [Sat, 14 Oct 2023 07:58:31 +0000 (09:58 +0200)] 
[3.12] gh-110715: Add missing import in zipfile (gh-110822) (gh-110861)

gh-110715: Add missing import in zipfile (gh-110822)
(cherry picked from commit 4110cfec1233139b4e7c63459ba465ab80554e3e)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2 years ago[3.12] gh-110628: Add tests for PyLong C API (GH-110629) (GH-110854)
Serhiy Storchaka [Sat, 14 Oct 2023 07:20:24 +0000 (10:20 +0300)] 
[3.12] gh-110628: Add tests for PyLong C API (GH-110629) (GH-110854)

(cherry picked from commit 9d40ebf1902812fad6aa85ede7b6f1fdff3c1291)

2 years ago[3.12] gh-107705: Fix file leak in test_tkinter in the C locale (GH-110507) (GH-110857)
Miss Islington (bot) [Sat, 14 Oct 2023 06:43:59 +0000 (08:43 +0200)] 
[3.12] gh-107705: Fix file leak in test_tkinter in the C locale (GH-110507) (GH-110857)

(cherry picked from commit ca0f3d858d069231ce7c5b382790a774f385b467)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-109747: Improve errors for unsupported look-behind patterns (GH-109859...
Miss Islington (bot) [Sat, 14 Oct 2023 06:42:19 +0000 (08:42 +0200)] 
[3.12] gh-109747: Improve errors for unsupported look-behind patterns (GH-109859) (GH-110859)

Now re.error is raised instead of OverflowError or RuntimeError for
too large width of look-behind pattern.

The limit is increased to 2**32-1 (was 2**31-1).
(cherry picked from commit e2b3d831fd2824d8a5713e3ed2a64aad0fb6b62d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `usage/cmdline.rst` (GH-110841) (#110855)
Miss Islington (bot) [Sat, 14 Oct 2023 06:28:34 +0000 (08:28 +0200)] 
[3.12] gh-101100: Fix sphinx warnings in `usage/cmdline.rst` (GH-110841) (#110855)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-110392: Fix tty functions (GH-110642) (GH-110853)
Miss Islington (bot) [Sat, 14 Oct 2023 06:18:14 +0000 (08:18 +0200)] 
[3.12] gh-110392: Fix tty functions (GH-110642) (GH-110853)

* tty.setraw() and tty.setcbreak() previously returned partially modified
  list of the original tty attributes. Now they return the correct list of
  the original tty attributes

* tty.cfmakeraw() and tty.cfmakecbreak() now make a copy of the list of
  special characters before modifying it.

(cherry picked from commit 84e2096fbdea880799f2fdb3f0992a8961106bed)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-108303: Move all inspect test files to `test_inspect/` (GH-109607) (#110732)
Nikita Sobolev [Fri, 13 Oct 2023 17:05:03 +0000 (20:05 +0300)] 
[3.12] gh-108303: Move all inspect test files to `test_inspect/` (GH-109607) (#110732)

(cherry picked from commit 732532b0af9d1b5c7ae4932526c8d20d86c15507)

2 years ago[3.12] Bump sphinx-lint to 0.7.0 (GH-110830) (#110833)
Miss Islington (bot) [Fri, 13 Oct 2023 13:59:12 +0000 (15:59 +0200)] 
[3.12] Bump sphinx-lint to 0.7.0 (GH-110830) (#110833)

Bump sphinx-lint to 0.7.0 (GH-110830)
(cherry picked from commit 0ed2329a1627fc8ae97b009114cd960c25567f75)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] gh-110815: Improve tests for PyArg_ParseTupleAndKeywords() (GH-110817) (GH...
Miss Islington (bot) [Fri, 13 Oct 2023 13:41:43 +0000 (15:41 +0200)] 
[3.12] gh-110815: Improve tests for PyArg_ParseTupleAndKeywords() (GH-110817) (GH-110825)

(cherry picked from commit 548ce0923b9ef93b1c1df59f8febc4bb3daff28a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818) (#110826)
Miss Islington (bot) [Fri, 13 Oct 2023 13:24:28 +0000 (15:24 +0200)] 
[3.12] gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818) (#110826)

gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818)

* Remove redundant versionchanged

* Add missing versionchanged

* Update Doc/library/asyncio-task.rst

---------

(cherry picked from commit f81e36f700ac8c6766207fcf3bc2540692af868b)

Co-authored-by: paskozdilar <53006174+paskozdilar@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 years ago[3.12] gh-110803: Reorganize docs for what PyType_Slot doesn't cover (GH-110813)...
Miss Islington (bot) [Fri, 13 Oct 2023 12:59:55 +0000 (14:59 +0200)] 
[3.12] gh-110803: Reorganize docs for what PyType_Slot doesn't cover (GH-110813) (#110823)

gh-110803: Reorganize docs for what PyType_Slot doesn't cover (GH-110813)

* gh-110803: Reorganize docs for what PyType_Slot doesn't cover

- Cover the offset fields first
- Mention the old alternative for MANAGED flags, which is needed
  to support older Pythons
- De-emphasize the internal flags: use an inline list.
- Add a note to PyMemberDef saying what to do with it

* Remove an older draft...
(cherry picked from commit 2ab34f0e425d90d0a153104ef2f4343dce2a414d)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years ago[3.12] gh-107450: Fix parser column offset overflow test on Windows (GH-110768) ...
Miss Islington (bot) [Fri, 13 Oct 2023 08:31:39 +0000 (10:31 +0200)] 
[3.12] gh-107450: Fix parser column offset overflow test on Windows (GH-110768) (#110808)

(cherry picked from commit 05439d308740b621d03562451a7608eb725937ae)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-110782: Fix crash when TypeVar is constructed with keyword args (GH-110784...
Miss Islington (bot) [Thu, 12 Oct 2023 23:24:37 +0000 (01:24 +0200)] 
[3.12] gh-110782: Fix crash when TypeVar is constructed with keyword args (GH-110784) (#110787)

gh-110782: Fix crash when TypeVar is constructed with keyword args (GH-110784)
(cherry picked from commit d2a536b1706d4a79303b7ac53684bb82eac2de23)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.12] gh-110756: Sync regrtest with main branch (#110779)
Victor Stinner [Thu, 12 Oct 2023 21:24:12 +0000 (23:24 +0200)] 
[3.12] gh-110756: Sync regrtest with main branch (#110779)

gh-110756: Sync regrtest with main branch

* Remove runtest.py and runtest_mp.py of Lib/test/libregrtest/.
* Backport support._parse_memlimit().

2 years ago[3.12] gh-110756: Sync regrtest with main branch (#110758)
Victor Stinner [Thu, 12 Oct 2023 20:03:07 +0000 (22:03 +0200)] 
[3.12] gh-110756: Sync regrtest with main branch (#110758)

gh-110756: Sync regrtest with main branch

Copy files from main to this branch:

* Lib/test/libregrtest/*.py
* Lib/test/__init__.py
* Lib/test/__main__.py
* Lib/test/autotest.py
* Lib/test/pythoninfo.py
* Lib/test/regrtest.py
* Lib/test/test_regrtest.py

Do not modify scripts running tests such as Makefile.pre.in,
.github/workflows/build.yml or Tools/scripts/run_tests.py: do not use
--fast-ci and --slow-ci in this change.

Changes:

* SPLITTESTDIRS: don't include test_inspect.
* Add utils.process_cpu_count() using len(os.sched_getaffinity(0)).
* test_regrtest doesn't use @support.without_optimizer which doesn't
  exist in Python 3.12.
* Add support.set_sanitizer_env_var().
* Update test_faulthandler to use support.set_sanitizer_env_var().

2 years ago[3.12] gh-110696: Fix incorrect syntax error message for incorrect argument unpacking...
Pablo Galindo Salgado [Thu, 12 Oct 2023 10:51:56 +0000 (11:51 +0100)] 
[3.12] gh-110696: Fix incorrect syntax error message for incorrect argument unpacking (GH-110706) (#110765)

(cherry picked from commit 3d180347ae73119bb51500efeeafdcd62bcc6f78)

2 years ago[3.12] gh-107450: Raise OverflowError when parser column offset overflows (GH-110754...
Miss Islington (bot) [Thu, 12 Oct 2023 10:03:09 +0000 (12:03 +0200)] 
[3.12] gh-107450: Raise OverflowError when parser column offset overflows (GH-110754) (#110762)

(cherry picked from commit fb7843ee895ac7f6eeb58f356b1a320eea081cfc)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
2 years ago[3.12] GH-107518: Remove the Argument Clinic How-To (#109900) (#110760)
Erlend E. Aasland [Thu, 12 Oct 2023 09:37:37 +0000 (11:37 +0200)] 
[3.12] GH-107518: Remove the Argument Clinic How-To (#109900) (#110760)

(cherry picked from commit d1f7fae424d51b0374c8204599583c4a26c1a992)

* Remove the content of the Argument Clinic HOWTO
* Update cross-references to the Argument Clinic
* Add a note directing readers to the devguide

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-110673: test_pty raises on short write (GH-110677) (#110742)
Miss Islington (bot) [Thu, 12 Oct 2023 08:10:00 +0000 (10:10 +0200)] 
[3.12] gh-110673: test_pty raises on short write (GH-110677) (#110742)

gh-110673: test_pty raises on short write (GH-110677)

Add write_all() helper function to test_pty to raise an exception on
short write: if os.writes() does not write all bytes. It should not
happen for a PTY.
(cherry picked from commit b4e8049766a46a9e6548b18d7e9a0c9f573cd122)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-110631: Fix reST indentation in `Doc/reference` (GH-110708) (#110740)
Miss Islington (bot) [Wed, 11 Oct 2023 21:13:21 +0000 (23:13 +0200)] 
[3.12] gh-110631: Fix reST indentation in `Doc/reference` (GH-110708) (#110740)

gh-110631: Fix reST indentation in `Doc/reference` (GH-110708)

Fix wrong indentation in the Doc/reference dir.
(cherry picked from commit 41d8ec5a1bae1e5d4452da0a1a0649ace4ecb7b0)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2 years ago[3.12] gh-110631: Fix reST indentation (GH-110724) (#110738)
Ezio Melotti [Wed, 11 Oct 2023 21:12:36 +0000 (23:12 +0200)] 
[3.12] gh-110631: Fix reST indentation (GH-110724) (#110738)

* Fix wrong indentation in the other dirs.

* Fix more wrong indentation..
(cherry picked from commit 718391f475f2550d99dd794069ca76312f7f6aa6)

2 years ago[3.12] gh-110631: Fix reST indentation in `Doc/library` (GH-110685) (#110736)
Miss Islington (bot) [Wed, 11 Oct 2023 21:11:28 +0000 (23:11 +0200)] 
[3.12] gh-110631: Fix reST indentation in `Doc/library` (GH-110685) (#110736)

gh-110631: Fix reST indentation in `Doc/library` (GH-110685)

Fix wrong indentation in the Doc/library dir.
(cherry picked from commit bb7923f556537a463c403dc1097726d8a8e1a6f2)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2 years ago[3.12] gh-108826: Document `dis` module CLI and rename `_test` function to `main...
Hugo van Kemenade [Wed, 11 Oct 2023 20:47:38 +0000 (22:47 +0200)] 
[3.12] gh-108826: Document `dis` module CLI and rename `_test` function to `main` (#108827) (#110681)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
2 years ago[3.12] gh-65052: Prevent pdb from crashing when trying to display objects (GH-110578...
Miss Islington (bot) [Wed, 11 Oct 2023 18:59:11 +0000 (20:59 +0200)] 
[3.12] gh-65052: Prevent pdb from crashing when trying to display objects (GH-110578) (#110734)

gh-65052: Prevent pdb from crashing when trying to display objects (GH-110578)
(cherry picked from commit c523ce0f434582580a3721e15cb7dd6b56ad0236)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2 years ago[3.12] gh-109408: Revert pre-commit whitespace checks pending portable solution ...
Miss Islington (bot) [Wed, 11 Oct 2023 16:37:41 +0000 (18:37 +0200)] 
[3.12] gh-109408: Revert pre-commit whitespace checks pending portable solution (GH-110726) (#110730)

gh-109408: Revert pre-commit whitespace checks pending portable solution (GH-110726)
(cherry picked from commit de956b263b98bb9928ce4377c42ca8271c4f2682)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-76106: Remove the cleanup lock in test_socket (GH-110539) (GH-110699)
Miss Islington (bot) [Wed, 11 Oct 2023 11:15:44 +0000 (13:15 +0200)] 
[3.12] gh-76106: Remove the cleanup lock in test_socket  (GH-110539) (GH-110699)

It does not already work (because it locks only addCleanup(), not doCleanups()),
and it is no longer needed since the clean up procedure waits for all test threads to join.
(cherry picked from commit f27b83090701b9c215e0d65f1f924fb9330cb649)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-110631: fix wrong indentation in the `Doc/whatsnew` dir (GH-110632) (#110690)
Ezio Melotti [Wed, 11 Oct 2023 09:53:17 +0000 (11:53 +0200)] 
[3.12] gh-110631: fix wrong indentation in the `Doc/whatsnew` dir (GH-110632) (#110690)

fix wrong indentation in the `Doc/whatsnew` dir (#110632)

2 years ago[3.12] gh-84489: C API: Add tests for Py_BuildValue() (GH-110596) (GH-110680)
Miss Islington (bot) [Wed, 11 Oct 2023 08:12:39 +0000 (10:12 +0200)] 
[3.12] gh-84489: C API: Add tests for Py_BuildValue() (GH-110596) (GH-110680)

(cherry picked from commit 5c6e85480ad8365c1b05fdbd678c7867103f7d76)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] GH-110488: Fix two small issues in `pathlib.PurePath.with_name()` (GH-110651...
Barney Gale [Wed, 11 Oct 2023 04:30:23 +0000 (05:30 +0100)] 
[3.12] GH-110488: Fix two small issues in `pathlib.PurePath.with_name()` (GH-110651) (#110678)

Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError`

Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise
`ValueError`.

(cherry picked from commit b5f7777cb3ecae02d49e0b348968c1ff1ffe21f4)

2 years ago[3.12] gh-110662: multiprocessing test_async_timeout() increase timeout (GH-110663...
Miss Islington (bot) [Wed, 11 Oct 2023 03:06:58 +0000 (05:06 +0200)] 
[3.12] gh-110662: multiprocessing test_async_timeout() increase timeout (GH-110663) (#110674)

gh-110662: multiprocessing test_async_timeout() increase timeout (GH-110663)

Increase timeout from 1 second to 30 seconds, if not longer. The
important part is that apply_async() takes longer than TIMEOUT2.
(cherry picked from commit 790ecf6302e47b84da5d1c3b14dbdf070bce615b)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-110666: Fix multiprocessing test_terminate() elapsed (GH-110667) (#110668)
Miss Islington (bot) [Wed, 11 Oct 2023 02:13:01 +0000 (04:13 +0200)] 
[3.12] gh-110666: Fix multiprocessing test_terminate() elapsed (GH-110667) (#110668)

gh-110666: Fix multiprocessing test_terminate() elapsed (GH-110667)

multiprocessing test_terminate() and test_wait_socket_slow() no
longer test the CI performance: no longer check maximum elapsed time.

Add CLOCK_RES constant: tolerate a difference of 100 ms.
(cherry picked from commit 1556f426da3f2fb5842689999933c8038b65c034)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-110656: Fix logging test_post_fork_child_no_deadlock() if ASAN (GH-110657...
Miss Islington (bot) [Wed, 11 Oct 2023 01:31:49 +0000 (03:31 +0200)] 
[3.12] gh-110656: Fix logging test_post_fork_child_no_deadlock() if ASAN (GH-110657) (#110664)

gh-110656: Fix logging test_post_fork_child_no_deadlock() if ASAN (GH-110657)

Skip test_post_fork_child_no_deadlock() if Python is built with ASAN.

Add support.HAVE_ASAN_FORK_BUG.
(cherry picked from commit f901f56313610389027cb4eae80d1d4b071aef69)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-110647: Fix signal test_stress_modifying_handlers() (GH-110650) (#110658)
Miss Islington (bot) [Wed, 11 Oct 2023 00:26:48 +0000 (02:26 +0200)] 
[3.12] gh-110647: Fix signal test_stress_modifying_handlers() (GH-110650) (#110658)

gh-110647: Fix signal test_stress_modifying_handlers() (GH-110650)

* cycle_handlers() now waits until at least one signal is received.
* num_received_signals can be equal to num_sent_signals.
(cherry picked from commit e07c37cd5212c9d13749b4d02a1d68e1efcba6cf)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489) (#109682)
Miss Islington (bot) [Tue, 10 Oct 2023 20:38:18 +0000 (22:38 +0200)] 
[3.12] gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489) (#109682)

* gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489)
(cherry picked from commit e57ecf6bbc59f999d27b125ea51b042c24a07bd9)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Python 3.12 backport: update also `test_nntplib`.

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: T. Wouters <thomas@python.org>
2 years ago[3.12] gh-110631: Set three-space indents for reST in EditorConfig (GH-110635) (...
Miss Islington (bot) [Tue, 10 Oct 2023 15:20:52 +0000 (17:20 +0200)] 
[3.12] gh-110631: Set three-space indents for reST in EditorConfig (GH-110635) (#110637)

gh-110631: Set three-space indents for reST in EditorConfig (GH-110635)

Set three-space indents in EditorConfig
(cherry picked from commit 66a9b1082049855889854bfde617059499c26dd2)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] GH-109408: Move the C file whitespace check from patchcheck to pre-commit...
Adam Turner [Tue, 10 Oct 2023 15:00:00 +0000 (16:00 +0100)] 
[3.12] GH-109408: Move the C file whitespace check from patchcheck to pre-commit (GH-109890) (#110636)

(cherry picked from commit f5edb56328b46f262b74a53343b8098a3934f761)

2 years ago[3.12] GH-109408: Move the Python file whitespace check from patchcheck to pre-commit...
Miss Islington (bot) [Tue, 10 Oct 2023 14:06:35 +0000 (16:06 +0200)] 
[3.12] GH-109408: Move the Python file whitespace check from patchcheck to pre-commit (GH-109891) (#110633)

GH-109408: Move the Python file whitespace check from patchcheck to pre-commit (GH-109891)
(cherry picked from commit 08ec4a1dbf66383303de9ce5cb55b2b437ef92c0)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] Don't doubly-parallelise sphinx-lint (GH-110617) (#110626)
Miss Islington (bot) [Tue, 10 Oct 2023 12:58:06 +0000 (14:58 +0200)] 
[3.12] Don't doubly-parallelise sphinx-lint (GH-110617) (#110626)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-110388: Add tests for tty (GH-110394) (#110621)
Miss Islington (bot) [Tue, 10 Oct 2023 12:55:23 +0000 (14:55 +0200)] 
[3.12] gh-110388: Add tests for tty (GH-110394) (#110621)

cherry picked from commit 7f702b26dbbf24ab5ef2be5444ae652300733b5b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-81002: Add tests for termios (GH-110386) (GH-110619)
Miss Islington (bot) [Tue, 10 Oct 2023 12:10:55 +0000 (14:10 +0200)] 
[3.12] gh-81002: Add tests for termios (GH-110386) (GH-110619)

(cherry picked from commit 92a9e980245156bf75ede0869f8ba9512e04d2eb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `library/socketserver.rst` (GH-110207) ...
Miss Islington (bot) [Tue, 10 Oct 2023 12:10:22 +0000 (14:10 +0200)] 
[3.12] gh-101100: Fix sphinx warnings in `library/socketserver.rst` (GH-110207) (GH-110623)

(cherry picked from commit 756062b296df6242ba324e4cdc8f3e38bfc83617)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-110378: Fix test_async_gen_propagates_generator_exit in test_contextlib_asy...
Miss Islington (bot) [Tue, 10 Oct 2023 11:12:30 +0000 (13:12 +0200)] 
[3.12] gh-110378: Fix test_async_gen_propagates_generator_exit in test_contextlib_async (GH-110500) (#110610)

It now fails if the original bug is not fixed, and no longer produce ResourceWarning with fixed code.
(cherry picked from commit 5aa62a8de15212577a13966710b3aede46e93824)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-110590: Fix a bug where _sre.compile would overwrite exceptions (GH-110591...
Miss Islington (bot) [Tue, 10 Oct 2023 10:55:21 +0000 (12:55 +0200)] 
[3.12] gh-110590: Fix a bug where _sre.compile would overwrite exceptions (GH-110591) (#110613)

TypeError would be overwritten by OverflowError
if 'code' param contained non-ints.
(cherry picked from commit 344d3a222a7864f8157773749bdd77d1c9dfc1e6)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-110558: Enable ruff's pyupgrade rules when running on Argument Clinic ...
Miss Islington (bot) [Tue, 10 Oct 2023 10:35:21 +0000 (12:35 +0200)] 
[3.12] gh-110558: Enable ruff's pyupgrade rules when running on Argument Clinic (GH-110603) (#110609)

gh-110558: Enable ruff's pyupgrade rules when running on Argument Clinic (GH-110603)
(cherry picked from commit fc811c8d205db9c19f42890e2c4193a0c2f87965)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] gh-78469: Declare missing sethostname for Solaris 10 (GH-109447) (#110580)
Miss Islington (bot) [Tue, 10 Oct 2023 09:26:36 +0000 (11:26 +0200)] 
[3.12] gh-78469: Declare missing sethostname for Solaris 10 (GH-109447) (#110580)

Add OS version specific macro for Solaris: Py_SUNOS_VERSION.
(cherry picked from commit 3b1580af07c0ce90d1c2073ab087772283d7e3b9)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
2 years ago[3.12] gh-110378: Close invalid generators in contextmanager and asynccontextmanager...
Miss Islington (bot) [Tue, 10 Oct 2023 09:12:28 +0000 (11:12 +0200)] 
[3.12] gh-110378: Close invalid generators in contextmanager and asynccontextmanager (GH-110499) (#110588)

contextmanager and asynccontextmanager context managers now close an invalid
underlying generator object that yields more then one value.
(cherry picked from commit 96fed66a65097eac2dc528ce29c9ba676bb07689)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-110558: Run ruff on Argument Clinic in CI (#110559) (#110598)
Alex Waygood [Tue, 10 Oct 2023 08:58:56 +0000 (10:58 +0200)] 
[3.12] gh-110558: Run ruff on Argument Clinic in CI (#110559) (#110598)

2 years ago[3.12] gh-109408: Add the docs whitespace check from patchcheck to pre-commit (GH...
Miss Islington (bot) [Tue, 10 Oct 2023 08:39:55 +0000 (10:39 +0200)] 
[3.12] gh-109408: Add the docs whitespace check from patchcheck to pre-commit (GH-109854) (#110594)

gh-109408: Add the docs whitespace check from patchcheck to pre-commit (GH-109854)
(cherry picked from commit 7426ed0347d66f7ef61ea7ae6c3163258b8fb128)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] Add some 'meta hooks' to our pre-commit config (GH-110587) (#110599)
Miss Islington (bot) [Tue, 10 Oct 2023 08:24:10 +0000 (10:24 +0200)] 
[3.12] Add some 'meta hooks' to our pre-commit config (GH-110587) (#110599)

Add some 'meta hooks' to our pre-commit config (GH-110587)
(cherry picked from commit d5ec77fafd352b4eb290b86d70e4d0b4673459eb)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] Remove unused `SPHINXLINT` var from `Doc/Makefile`. (GH-110570) (#110585)
Miss Islington (bot) [Tue, 10 Oct 2023 01:14:00 +0000 (03:14 +0200)] 
[3.12] Remove unused `SPHINXLINT` var from `Doc/Makefile`. (GH-110570) (#110585)

Remove unused `SPHINXLINT` var from `Doc/Makefile`. (GH-110570)

Remove unused `SPHINXLINT` var.
(cherry picked from commit bdbe43c7d0ad5ebda0232a4ab39689ea79a9733a)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2 years ago[3.12] gh-110519: Improve deprecation warning in the gettext module (GH-110520) ...
Miss Islington (bot) [Mon, 9 Oct 2023 14:27:01 +0000 (16:27 +0200)] 
[3.12] gh-110519: Improve deprecation warning in the gettext module (GH-110520) (GH-110563)

Deprecation warning about non-integer numbers in gettext now always refers
to the line in the user code where gettext function or method is used.
Previously, it could refer to a line in gettext code.

Also, increase test coverage for NullTranslations and domain-aware functions
like dngettext().
(cherry picked from commit 326c6c4e07137b43c49b74bd5528619360080469)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-109191: Fix build with newer editline (gh-110239) (gh-110562)
Miss Islington (bot) [Mon, 9 Oct 2023 14:01:00 +0000 (16:01 +0200)] 
[3.12] gh-109191: Fix build with newer editline (gh-110239) (gh-110562)

gh-109191: Fix build with newer editline (gh-110239)
(cherry picked from commit f4cb0d27cc08f490c42a22e646eb73cc7072d54a)

Co-authored-by: Bo Anderson <mail@boanderson.me>
2 years ago[3.12] gh-110549: Remove unused includes of <stddef.h> in _testcapi (GH-110552) ...
Serhiy Storchaka [Mon, 9 Oct 2023 11:43:35 +0000 (14:43 +0300)] 
[3.12] gh-110549: Remove unused includes of <stddef.h> in _testcapi (GH-110552) (GH-110553)

(cherry picked from commit 89df5b73d07872d554da60b455b46c98e01a022d)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-110437: Allow overriding VCRuntimeDLL with a semicolon separated list of...
Miss Islington (bot) [Mon, 9 Oct 2023 11:42:04 +0000 (13:42 +0200)] 
[3.12] gh-110437: Allow overriding VCRuntimeDLL with a semicolon separated list of DLLs to bundle (GH-110470)

gh-110437: Allow overriding VCRuntimeDLL with a semicolon separated list of DLLs to bundle (GH-110470)
(cherry picked from commit 12cc6792d0ca1d0b72712d77c6efcb0aa0c7e7ba)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 years ago[3.12] gh-110525: Cover PySet_Add corner case with frozenset objects (GH-110544)...
Miss Islington (bot) [Mon, 9 Oct 2023 11:40:53 +0000 (13:40 +0200)] 
[3.12] gh-110525: Cover PySet_Add corner case with frozenset objects (GH-110544) (GH-110554)

(cherry picked from commit ea39c877c0a8e7a717f2e4bf7d92a3a8780e67c0)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-109286: Update macOS installer to use SQLite 3.43.1 (GH-110482) (#110550)
Miss Islington (bot) [Mon, 9 Oct 2023 10:43:26 +0000 (12:43 +0200)] 
[3.12] gh-109286: Update macOS installer to use SQLite 3.43.1 (GH-110482) (#110550)

(cherry picked from commit 48419a50b44a195ad7de958f479a924e7c2d3e1b)

Co-authored-by: jtranquilli <76231120+jtranquilli@users.noreply.github.com>
2 years ago[3.12] gh-110525: Add CAPI tests for set and frozenset objects (GH-110526). (GH-110547)
Nikita Sobolev [Mon, 9 Oct 2023 10:04:09 +0000 (13:04 +0300)] 
[3.12] gh-110525: Add CAPI tests for set and frozenset objects (GH-110526). (GH-110547)

(cherry picked from commit c49edd7d9c5395a6a6696a4846f56bc8b2b22792)