]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.11] gh-111625: Fix link to Info-ZIP homepage (GH-111626) (#111640)
Miss Islington (bot) [Thu, 2 Nov 2023 11:36:35 +0000 (12:36 +0100)] 
[3.11] gh-111625: Fix link to Info-ZIP homepage (GH-111626) (#111640)

Co-authored-by: partev <petrosyan@gmail.com>
2 years ago[3.11] gh-111576: Improve documention for tkinter.messagebox (GH-111578) (GH-111598)
Miss Islington (bot) [Wed, 1 Nov 2023 10:43:37 +0000 (11:43 +0100)] 
[3.11] gh-111576: Improve documention for tkinter.messagebox (GH-111578) (GH-111598)

(cherry picked from commit eaf67e37a2da28c1241362e3b4ff1202945c83c5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] gh-110367: Make regrtest --verbose3 compatible with --huntrleaks -jN (GH-11157...
Miss Islington (bot) [Wed, 1 Nov 2023 03:57:23 +0000 (04:57 +0100)] 
[3.11] gh-110367: Make regrtest --verbose3 compatible with --huntrleaks -jN (GH-111577) (#111590)

gh-110367: Make regrtest --verbose3 compatible with --huntrleaks -jN (GH-111577)

"./python -m test -j1 -R 3:3 --verbose3" now works as expected, since
run_single_test() does not replace sys.stdout with StringIO in this
case.
(cherry picked from commit d9a5530d2327efa1fe66a04d31b5c67e42dbcd9c)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.11] gh-102249: Expand sys.call_tracing documentation (GH-102806) (#111558)
Miss Islington (bot) [Tue, 31 Oct 2023 16:40:17 +0000 (17:40 +0100)] 
[3.11] gh-102249: Expand sys.call_tracing documentation (GH-102806) (#111558)

Co-authored-by: Quentin Peter <impact27@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years ago[3.11] gh-93607: document `root` attribute of `iterparse` (GH-99410) (#111556)
Miss Islington (bot) [Tue, 31 Oct 2023 16:24:41 +0000 (17:24 +0100)] 
[3.11] gh-93607: document `root` attribute of `iterparse` (GH-99410) (#111556)

Co-authored-by: Prometheus3375 <35541026+Prometheus3375@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-106861: Docs: Add availability directives to all Unix-only modules (GH...
Miss Islington (bot) [Tue, 31 Oct 2023 16:24:17 +0000 (17:24 +0100)] 
[3.11] gh-106861: Docs: Add availability directives to all Unix-only modules (GH-108975) (#111554)

Co-authored-by: xzmeng <aumo@foxmail.com>
2 years ago[3.11] gh-109181: Speed up Traceback object creation by lazily compute the line numbe...
Pablo Galindo Salgado [Tue, 31 Oct 2023 15:59:31 +0000 (15:59 +0000)] 
[3.11] gh-109181: Speed up Traceback object creation by lazily compute the line number (GH-111548) (#111550)

.
(cherry picked from commit abb15420c11d9dda9c89f74eac8417240b321109)

2 years ago[3.11] gh-111366: Correctly show custom syntax error messages in the codeop module...
Pablo Galindo Salgado [Tue, 31 Oct 2023 14:41:20 +0000 (14:41 +0000)] 
[3.11] gh-111366: Correctly show custom syntax error messages in the codeop module functions (GH-111384). (#111516)

(cherry picked from commit cd6e0a04a16535d8bc727c84f73730c53267184e)

2 years ago[3.11] gh-108303: Move all inspect test files to `test_inspect/` (GH-109607) (#111543)
Nikita Sobolev [Tue, 31 Oct 2023 14:00:39 +0000 (17:00 +0300)] 
[3.11] gh-108303: Move all inspect test files to `test_inspect/` (GH-109607) (#111543)

2 years ago[3.11] gh-111380: Show SyntaxWarnings only once when parsing if invalid syntax is...
Miss Islington (bot) [Tue, 31 Oct 2023 13:29:42 +0000 (14:29 +0100)] 
[3.11] gh-111380: Show SyntaxWarnings only once when parsing if invalid syntax is encouintered (GH-111381) (#111383)

gh-111380: Show SyntaxWarnings only once when parsing if invalid syntax is encouintered (GH-111381)
(cherry picked from commit 3d2f1f0b830d86f16f42c42b54d3ea4453dac318)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 years ago[3.11] gh-111531: Tkinter: fix reference leaks in bind_class() and bind_all() (GH...
Miss Islington (bot) [Tue, 31 Oct 2023 07:13:29 +0000 (08:13 +0100)] 
[3.11] gh-111531: Tkinter: fix reference leaks in bind_class() and bind_all() (GH-111533) (GH-111536)

(cherry picked from commit e3353c498d79f0f3f108a9baf8807a12e77c2ebe)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] Remove myself from typing CODEOWNERS (GH-111523) (#111526)
Miss Islington (bot) [Tue, 31 Oct 2023 05:47:57 +0000 (06:47 +0100)] 
[3.11] Remove myself from typing CODEOWNERS (GH-111523) (#111526)

Remove myself from typing CODEOWNERS (GH-111523)
(cherry picked from commit 804a207c168b876112984709edc3a94afa433c69)

Co-authored-by: Ken Jin <kenjin@python.org>
2 years ago[3.11] gh-111347: Remove wrong assertion in test_sendfile (GH-111377) (#111462)
Miss Islington (bot) [Tue, 31 Oct 2023 01:14:30 +0000 (02:14 +0100)] 
[3.11] gh-111347: Remove wrong assertion in test_sendfile (GH-111377) (#111462)

gh-111347: Remove wrong assertion in test_sendfile (GH-111377)

Windows is different.
(cherry picked from commit fa35b9e89b2e207fc8bae9eb0284260d0d922e7a)

Co-authored-by: zcxsythenew <30565051+zcxsythenew@users.noreply.github.com>
2 years ago[3.11] gh-111284: Make multiprocessing tests with threads faster and more reliable...
Miss Islington (bot) [Mon, 30 Oct 2023 17:44:27 +0000 (18:44 +0100)] 
[3.11] gh-111284: Make multiprocessing tests with threads faster and more reliable (GH-111285) (GH-111511)

(cherry picked from commit 624ace5a2f02715d084c29eaf2211cd0dd550690)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] gh-111165: Remove documentation for moved functions (GH-111467) (GH-111472)
Serhiy Storchaka [Sun, 29 Oct 2023 19:45:51 +0000 (21:45 +0200)] 
[3.11] gh-111165: Remove documentation for moved functions (GH-111467) (GH-111472)

(cherry picked from commit 4d6bdf8aabcc92303041420a96750fbc52c9f213)

2 years ago[3.11] gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` (GH-111222...
Miss Islington (bot) [Sun, 29 Oct 2023 19:39:25 +0000 (20:39 +0100)] 
[3.11] gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` (GH-111222) (#111470)

gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst` (GH-111222)

* gh-101100: Fix sphinx warnings in `library/asyncio-eventloop.rst`

* Update Doc/library/socket.rst

* Update asyncio-eventloop.rst

* Update socket.rst

---------

(cherry picked from commit 46389c32750f79ab3f398a0132cd002e8a64f809)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-111426: Remove `test_cmd.test_coverage` (GH-111427) (#111433)
Miss Islington (bot) [Sat, 28 Oct 2023 23:23:38 +0000 (01:23 +0200)] 
[3.11] gh-111426: Remove `test_cmd.test_coverage` (GH-111427) (#111433)

gh-111426: Remove `test_cmd.test_coverage` (GH-111427)
(cherry picked from commit 66bea2555dc7b3dd18282cc699fe9a22dea50de3)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.11] CI: Include Python version in cache.config key (GH-111410) (#111422)
Miss Islington (bot) [Sat, 28 Oct 2023 07:51:57 +0000 (09:51 +0200)] 
[3.11] CI: Include Python version in cache.config key (GH-111410) (#111422)

CI: Include Python version in cache.config key (GH-111410)

* Include Python version in cache.config key, after Python setup

* Remove EOL 3.7 from branch triggers
(cherry picked from commit 9d4a1a480b65196c3aabbcd2d165d1fb86d0c8e5)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (GH-110884) (...
Miss Islington (bot) [Fri, 27 Oct 2023 23:36:24 +0000 (01:36 +0200)] 
[3.11] gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (GH-110884) (#111413)

- `ThreadedChildWatcher.close()` is now *officially* a no-op; `_join_threads()` never did anything.
- Threads created by that class are now named `asyncio-waitpid-NNN`.
- `test.test_asyncio.utils.TestCase.close_loop()` now waits for the child watcher's threads, but not forever; if a thread hangs, it raises `RuntimeError`.
(cherry picked from commit c3bb10c9303503e7b55a7bdf9acfa6b3bcb699c6)

Co-authored-by: Guido van Rossum <guido@python.org>
2 years ago[3.11] gh-111406: Fix broken link to bpython's site (GH-111407) (#111409)
Miss Islington (bot) [Fri, 27 Oct 2023 18:45:52 +0000 (20:45 +0200)] 
[3.11] gh-111406: Fix broken link to bpython's site (GH-111407) (#111409)

gh-111406: Fix broken link to bpython's site (GH-111407)
(cherry picked from commit 8a158a753c48d166ebceae0687e88ae0c0725c02)

Co-authored-by: Zack Cerza <zack@cerza.org>
2 years ago[3.11] gh-111276: Clarify docs and comments about the role of LC_CTYPE (GH-111319...
Miss Islington (bot) [Fri, 27 Oct 2023 15:15:15 +0000 (17:15 +0200)] 
[3.11] gh-111276: Clarify docs and comments about the role of LC_CTYPE (GH-111319) (#111392)

Fix locale.LC_CTYPE documentation to no longer mention string.lower() et al. Those functions were removed in Python 3.0:
https://docs.python.org/2/library/string.htmlGH-deprecated-string-functions

Also, fix a comment in logging about locale-specific behavior of `str.lower()`.

(cherry picked from commit 6d42759c5e47ab62d60a72b4ff15d29864554579)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-111187: Postpone removal version for locale.getdefaultlocale() to 3.15...
Hugo van Kemenade [Fri, 27 Oct 2023 13:08:53 +0000 (16:08 +0300)] 
[3.11] gh-111187: Postpone removal version for locale.getdefaultlocale() to 3.15 (GH-111188) (#111326)

2 years ago[3.11] bpo-43950: handle wide unicode characters in tracebacks (GH-28150) (#111373)
Pablo Galindo Salgado [Fri, 27 Oct 2023 00:46:20 +0000 (09:46 +0900)] 
[3.11] bpo-43950: handle wide unicode characters in tracebacks (GH-28150) (#111373)

2 years ago[3.11] gh-111348: Fix direct invocation of `test_doctest`; remove `test_doctest.test_...
Miss Islington (bot) [Thu, 26 Oct 2023 13:12:27 +0000 (15:12 +0200)] 
[3.11] gh-111348: Fix direct invocation of `test_doctest`; remove `test_doctest.test_coverage` (GH-111349) (#111360)

gh-111348: Fix direct invocation of `test_doctest`; remove `test_doctest.test_coverage` (GH-111349)
(cherry picked from commit 31c05b72c15885ad5ff298de39456d8baed28448)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 years ago[3.11] GH-94438: Restore ability to jump over None tests (GH-111338)
Savannah Ostrowski [Wed, 25 Oct 2023 20:47:16 +0000 (13:47 -0700)] 
[3.11] GH-94438: Restore ability to jump over None tests (GH-111338)

(cherry picked from commit 6640f1d)

2 years ago[3.11] gh-111165: Add missed "support." prefix for "verbose" (GH-111327) (GH-111329)
Miss Islington (bot) [Wed, 25 Oct 2023 15:15:50 +0000 (17:15 +0200)] 
[3.11] gh-111165: Add missed "support." prefix for "verbose" (GH-111327) (GH-111329)

(cherry picked from commit a4981921aa2c00f3883ef593fde1dbc034e3c304)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] gh-108590: Improve sqlite3 docs on encoding issues and how to handle those...
Miss Islington (bot) [Wed, 25 Oct 2023 14:07:44 +0000 (16:07 +0200)] 
[3.11] gh-108590: Improve sqlite3 docs on encoding issues and how to handle those (GH-108699) (#111325)

Add a guide for how to handle non-UTF-8 text encodings.
Link to that guide from the 'text_factory' docs.

(cherry picked from commit 1262e41842957c3b402fc0cf0a6eb2ea230c828f)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Corvin <corvin@corvin.dev>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] [3.12] gh-111165: Move test running code from test.support to libregrtest...
Serhiy Storchaka [Wed, 25 Oct 2023 12:37:19 +0000 (15:37 +0300)] 
[3.11] [3.12] gh-111165: Move test running code from test.support to libregrtest (GH-111166) (GH-111316) (GH-111318)

Remove no longer used functions run_unittest() and run_doctest() from
the test.support module.
(cherry picked from commit f6a45a03d0e0ef6b00c45a0de9a606b1d23cbd2f)
(cherry picked from commit 5c4f9a1c7ed9fddd8c3ce4c1793af07f66f36a6b)

2 years ago[3.11] gh-111309: Use unittest to collect and run distutils tests (GH-111311)
Serhiy Storchaka [Wed, 25 Oct 2023 11:57:17 +0000 (14:57 +0300)] 
[3.11] gh-111309: Use unittest to collect and run distutils tests (GH-111311)

* use unittest.main() instead of run_unittest(test_suite()) to run tests from
  modules via the CLI
* add explicit load_tests() to load doctests
* use test.support.load_package_tests() to load tests in submodules of
  distutils.tests
* removes no longer needed test_suite() functions

2 years ago[3.11] gh-111174: Fix crash in getbuffer() called repeatedly for empty BytesIO (GH...
Miss Islington (bot) [Wed, 25 Oct 2023 11:18:30 +0000 (13:18 +0200)] 
[3.11] gh-111174: Fix crash in getbuffer() called repeatedly for empty BytesIO (GH-111210) (GH-111315)

(cherry picked from commit 9da98c0d9a7cc55c67fb0bd3fa162fd3b2c2629b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] Bump `ruff` to the latest version (GH-111288) (#111310)
Artyom Romanov [Wed, 25 Oct 2023 10:33:09 +0000 (15:33 +0500)] 
[3.11] Bump `ruff` to the latest version (GH-111288) (#111310)

2 years ago[3.11] gh-109017: Use non alternate name for Kyiv (GH-109251) (GH-111279)
Miss Islington (bot) [Tue, 24 Oct 2023 20:56:02 +0000 (22:56 +0200)] 
[3.11] gh-109017: Use non alternate name for Kyiv (GH-109251) (GH-111279)

tzdata provides Kiev as an alternative to Kyiv:
https://sources.debian.org/src/tzdata/2023c-10/backward/?hl=314GH-L314

But Debian moved it to the tzdata-legacy package breaking the test:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050530

This patch switches to the name provided by tzdata.

Also check that the new name is actually available.
(cherry picked from commit 46407fe79ca78051cbf6c80e8b8e70a228f9fa50)

Co-authored-by: Jochen Sprickerhof <github@jochen.sprickerhof.de>
2 years ago[3.11] Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271) ...
Miss Islington (bot) [Tue, 24 Oct 2023 16:26:57 +0000 (18:26 +0200)] 
[3.11] Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271) (GH-111273)

Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271)

This reverts commit 7f316763402a7d5556deecc3acd06cb719e189b3.

The change resulted in a tautology and should not have been made.  There
may be an opportunity for additional clarity in this section, but this
change wasn't it :)

(cherry picked from commit c7d68f907ad3e3aa17546df92a32bddb145a69bf)

Ref: https://github.com/python/cpython/pull/108427#-issuecomment-1777525740

Co-authored-by: Zachary Ware <zach@python.org>
2 years ago[3.11] gh-111151: Convert monospaced directives to :ref: (GH-111152) (#111270)
Jelle Zijlstra [Tue, 24 Oct 2023 15:34:46 +0000 (08:34 -0700)] 
[3.11] gh-111151: Convert monospaced directives to :ref: (GH-111152) (#111270)

(cherry picked from commit 1198076447f35b19a9173866ccb9839f3bcf3f17)

Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
2 years ago[3.11] gh-75666: Tkinter: add tests for binding (GH-111202) (GH-111256)
Miss Islington (bot) [Tue, 24 Oct 2023 11:53:38 +0000 (13:53 +0200)] 
[3.11] gh-75666: Tkinter: add tests for binding (GH-111202) (GH-111256)

(cherry picked from commit 9bb202a1a90ef0edce20c495c9426d9766df11bb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] Fix typo in sys docs (GH-111196) (#111249)
Miss Islington (bot) [Tue, 24 Oct 2023 08:15:03 +0000 (10:15 +0200)] 
[3.11] Fix typo in sys docs (GH-111196) (#111249)

Co-authored-by: James Tocknell <aragilar+github@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] Fix a code snippet typo in asyncio docs (GH-108427) (#111244)
Miss Islington (bot) [Tue, 24 Oct 2023 06:35:49 +0000 (08:35 +0200)] 
[3.11] Fix a code snippet typo in asyncio docs (GH-108427) (#111244)

Co-authored-by: A <5249513+Dumeng@users.noreply.github.com>
2 years ago[3.11] gh-101100: Fix Sphinx warnings for `fileno` (GH-111118) (#111227)
Miss Islington (bot) [Mon, 23 Oct 2023 19:18:00 +0000 (21:18 +0200)] 
[3.11] gh-101100: Fix Sphinx warnings for `fileno` (GH-111118) (#111227)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] Add a version added note for PY_VECTORCALL_ARGUMENTS_OFFSET (GH-110963) (...
Miss Islington (bot) [Mon, 23 Oct 2023 16:09:56 +0000 (18:09 +0200)] 
[3.11] Add a version added note for PY_VECTORCALL_ARGUMENTS_OFFSET (GH-110963) (#111220)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
2 years ago[3.11] typo: missing line of output in pull parser example (GH-111068) (#111218)
Miss Islington (bot) [Mon, 23 Oct 2023 16:04:52 +0000 (18:04 +0200)] 
[3.11] typo: missing line of output in pull parser example (GH-111068) (#111218)

Co-authored-by: Don Patterson <37046246+don-patterson@users.noreply.github.com>
2 years ago[3.11] gh-106310 - document the __signature__ attribute (GH-106311) (#111146)
Miss Islington (bot) [Mon, 23 Oct 2023 15:49:17 +0000 (17:49 +0200)] 
[3.11] gh-106310 - document the __signature__ attribute (GH-106311) (#111146)

Co-authored-by: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.11] gh-67565: Add tests for C-contiguity checks (GH-110951) (GH-111199)
Furkan Onder [Mon, 23 Oct 2023 09:49:44 +0000 (12:49 +0300)] 
[3.11] gh-67565: Add tests for C-contiguity checks (GH-110951) (GH-111199)

(cherry picked from commit 9376728ce45191fcc0b908c7487ad7985454537e)

2 years ago[3.11] gh-110383: Italicize variable name (GH-111206) (#111208)
Miss Islington (bot) [Mon, 23 Oct 2023 08:11:54 +0000 (10:11 +0200)] 
[3.11] gh-110383: Italicize variable name (GH-111206) (#111208)

Co-authored-by: Nick <Nikki1993@users.noreply.github.com>
2 years ago[3.11] gh-110383: Added explanation about simplest regex use case for quantifiers...
Miss Islington (bot) [Mon, 23 Oct 2023 07:31:32 +0000 (09:31 +0200)] 
[3.11] gh-110383: Added explanation about simplest regex use case for quantifiers. (GH-111110) (#111205)

Co-authored-by: Nick <Nikki1993@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] gh-110196: Fix ipaddress.IPv6Address.__reduce__ (GH-110198) (GH-111190)
Miss Islington (bot) [Sun, 22 Oct 2023 19:12:58 +0000 (21:12 +0200)] 
[3.11] gh-110196: Fix ipaddress.IPv6Address.__reduce__ (GH-110198) (GH-111190)

(cherry picked from commit 767f416feb551f495bacfff1e9ba1e6672c2f24e)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2 years ago[3.11] gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` (GH-111179) (...
Miss Islington (bot) [Sun, 22 Oct 2023 17:29:06 +0000 (19:29 +0200)] 
[3.11] gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` (GH-111179) (#111186)

gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` (GH-111179)

* gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst`

* Update Doc/library/asyncio-eventloop.rst

* Update Doc/library/asyncio-eventloop.rst

---------

(cherry picked from commit 8c689c9b88426384a9736c708701923a1ab1da79)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2 years ago[3.11] gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (GH-111173) ...
Miss Islington (bot) [Sun, 22 Oct 2023 12:03:39 +0000 (14:03 +0200)] 
[3.11] gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (GH-111173) (#111176)

gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (GH-111173)
(cherry picked from commit 663cf513b0e973ab7aa4a8609d6616ad2c283f22)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
2 years ago[3.11] gh-111085: Fix invalid state handling in TaskGroup and Timeout (GH-111111...
Miss Islington (bot) [Sat, 21 Oct 2023 19:40:07 +0000 (21:40 +0200)] 
[3.11] gh-111085: Fix invalid state handling in TaskGroup and Timeout (GH-111111) (GH-111172)

asyncio.TaskGroup and asyncio.Timeout classes now raise proper RuntimeError
if they are improperly used.

* When they are used without entering the context manager.
* When they are used after finishing.
* When the context manager is entered more than once (simultaneously or
  sequentially).
* If there is no current task when entering the context manager.

They now remain in a consistent state after an exception is thrown,
so subsequent operations can be performed correctly (if they are allowed).

(cherry picked from commit 6c23635f2b7067ef091a550954e09f8b7c329e3f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: James Hilton-Balfe <gobot1234yt@gmail.com>
2 years ago[3.11] gh-111159: Fix `doctest` output comparison for exceptions with notes (GH-11116...
Miss Islington (bot) [Sat, 21 Oct 2023 18:23:38 +0000 (20:23 +0200)] 
[3.11] gh-111159: Fix `doctest` output comparison for exceptions with notes (GH-111160) (#111170)

gh-111159: Fix `doctest` output comparison for exceptions with notes (GH-111160)
(cherry picked from commit fd60549c0ac6c81f05594a5141d24b4433ae39be)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.11] gh-110918: regrtest: allow to intermix --match and --ignore options (GH-110919...
Serhiy Storchaka [Sat, 21 Oct 2023 17:30:19 +0000 (20:30 +0300)] 
[3.11] gh-110918: regrtest: allow to intermix --match and --ignore options (GH-110919) (GH-111168)

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.11] gh-111157: Mention `__notes__` in `traceback.format_exception_only` docstring...
Miss Islington (bot) [Sat, 21 Oct 2023 17:06:51 +0000 (19:06 +0200)] 
[3.11] gh-111157: Mention `__notes__` in `traceback.format_exception_only` docstring (GH-111158) (#111164)

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.11] gh-110932: Fix regrtest for SOURCE_DATE_EPOCH (GH-111143) (#111153)
Miss Islington (bot) [Sat, 21 Oct 2023 09:01:10 +0000 (11:01 +0200)] 
[3.11] gh-110932: Fix regrtest for SOURCE_DATE_EPOCH (GH-111143) (#111153)

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.11] gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing...
Miss Islington (bot) [Fri, 20 Oct 2023 18:28:41 +0000 (20:28 +0200)] 
[3.11] gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing` (GH-111127) (#111131)

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 ago[3.11] Synchronize test_contextlib with test_contextlib_async (GH-111000) (GH-111115)
Miss Islington (bot) [Fri, 20 Oct 2023 14:33:22 +0000 (16:33 +0200)] 
[3.11] Synchronize test_contextlib with test_contextlib_async (GH-111000) (GH-111115)

(cherry picked from commit ff4e53cb747063e95eaec181fd396f062f885ac2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years agogh-110913: Fix WindowsConsoleIO chunking of UTF-8 text (GH-111007)
Miss Islington (bot) [Fri, 20 Oct 2023 12:19:04 +0000 (14:19 +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.11] gh-101100: Fix sphinx warnings in `library/codecs.rst` (GH-110979) (#111071)
Miss Islington (bot) [Fri, 20 Oct 2023 08:09:23 +0000 (10:09 +0200)] 
[3.11] gh-101100: Fix sphinx warnings in `library/codecs.rst` (GH-110979) (#111071)

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

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.11] gh-111092: Make turtledemo run without default root enabled (GH-111093) (...
Miss Islington (bot) [Fri, 20 Oct 2023 04:25:17 +0000 (06:25 +0200)] 
[3.11] gh-111092: Make turtledemo run without default root enabled (GH-111093) (#111096)

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.11] gh-109510: Clearly explain "Which Docstrings Are Examined" (GH-109696) (#111078)
Miss Islington (bot) [Thu, 19 Oct 2023 15:35:07 +0000 (17:35 +0200)] 
[3.11] gh-109510: Clearly explain "Which Docstrings Are Examined" (GH-109696) (#111078)

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.11] GH-101100: Fix reference warnings for ``__enter__`` and ``__exit__`` (GH-11011...
Miss Islington (bot) [Thu, 19 Oct 2023 15:34:27 +0000 (17:34 +0200)] 
[3.11] GH-101100: Fix reference warnings for ``__enter__`` and ``__exit__`` (GH-110112) (#111076)

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

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.11] gh-101100: Fix sphinx warnings in `library/getpass.rst` (GH-110461) (#111072)
Miss Islington (bot) [Thu, 19 Oct 2023 15:31:29 +0000 (17:31 +0200)] 
[3.11] gh-101100: Fix sphinx warnings in `library/getpass.rst` (GH-110461) (#111072)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.11] gh-108791: Fix pdb CLI invalid argument handling (GH-108816) (#111063)
Radislav Chugunov [Thu, 19 Oct 2023 13:26:40 +0000 (16:26 +0300)] 
[3.11] gh-108791: Fix pdb CLI invalid argument handling (GH-108816) (#111063)

* [3.11] 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.11] gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (GH-111053...
Miss Islington (bot) [Thu, 19 Oct 2023 04:30:43 +0000 (06:30 +0200)] 
[3.11] gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (GH-111053) (#111056)

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.11] GH-65052: Prevent pdb from crashing when trying to display objects (GH-111002)
Tian Gao [Wed, 18 Oct 2023 23:42:36 +0000 (16:42 -0700)] 
[3.11] GH-65052: Prevent pdb from crashing when trying to display objects (GH-111002)

(cherry picked from commit c523ce0f434582580a3721e15cb7dd6b56ad0236)

2 years ago[3.11] GH-104232: Fix statement about trace return values (GH-111045)
Miss Islington (bot) [Wed, 18 Oct 2023 20:34:20 +0000 (22:34 +0200)] 
[3.11] GH-104232: Fix statement about trace return values (GH-111045)

(cherry picked from commit d9246c7b734b8958da03494045208681d95f5b74)

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

(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.11] gh-110696: Fix incorrect syntax error message for incorrect argument unpacking...
Pablo Galindo Salgado [Wed, 18 Oct 2023 12:59:17 +0000 (13:59 +0100)] 
[3.11] gh-110696: Fix incorrect syntax error message for incorrect argument unpacking (GH-110706) (#110766)

2 years ago[3.11] gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960) ...
Miss Islington (bot) [Wed, 18 Oct 2023 08:40:39 +0000 (10:40 +0200)] 
[3.11] gh-103737: IDLE - Remove unneeded .keys() for dict iteration (GH-110960) (#111027)

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.11] gh-111019: Align expected and actual titles in test output (GH-111020) (#111025)
Miss Islington (bot) [Wed, 18 Oct 2023 08:04:39 +0000 (10:04 +0200)] 
[3.11] gh-111019: Align expected and actual titles in test output (GH-111020) (#111025)

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.11] Regen Doc/requirements-oldest-sphinx.txt (GH-111012) (#111021)
Miss Islington (bot) [Wed, 18 Oct 2023 04:30:39 +0000 (06:30 +0200)] 
[3.11] Regen Doc/requirements-oldest-sphinx.txt (GH-111012) (#111021)

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.11] gh-110756: Fix libregrtest clear_caches() for distutils (#111011)
Victor Stinner [Tue, 17 Oct 2023 23:20:36 +0000 (01:20 +0200)] 
[3.11] gh-110756: Fix libregrtest clear_caches() for distutils (#111011)

gh-110756: Fix libregrtest clear_caches() for distutils

Restore code removed by recent sync with the main branch which no
longer has distutils:
commit 26748ed4f61520c59af15547792d1e73144a4314.

2 years ago[3.11] gh-107450: Check for overflow in the tokenizer and fix overflow test (GH-11083...
Lysandros Nikolaou [Tue, 17 Oct 2023 22:34:56 +0000 (00:34 +0200)] 
[3.11] gh-107450: Check for overflow in the tokenizer and fix overflow test (GH-110832) (#110939)

(cherry picked from commit a1ac5590e0f8fe008e5562d22edab65d0c1c5507)

Co-authored-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] gh-110995: Fix test_gdb check_usable_gdb() (GH-110998) (#111004)
Miss Islington (bot) [Tue, 17 Oct 2023 18:43:46 +0000 (20:43 +0200)] 
[3.11] gh-110995: Fix test_gdb check_usable_gdb() (GH-110998) (#111004)

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.11] Bump test deps: `ruff` and `pre-commit-hooks` (GH-110972) (#110981)
Nikita Sobolev [Tue, 17 Oct 2023 12:35:00 +0000 (15:35 +0300)] 
[3.11] Bump test deps: `ruff` and `pre-commit-hooks` (GH-110972) (#110981)

(cherry picked from commit b75b1f389f083db8568bff573c33ab4ecf29655a)

2 years ago[3.11] gh-110695: test_asyncio uses 50 ms for clock resolution (GH-110952) (#110971)
Miss Islington (bot) [Tue, 17 Oct 2023 09:59:10 +0000 (11:59 +0200)] 
[3.11] gh-110695: test_asyncio uses 50 ms for clock resolution (GH-110952) (#110971)

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.11] Bump sphinx-lint to v0.8.1 (GH-110933) (#110958)
Miss Islington (bot) [Tue, 17 Oct 2023 05:29:46 +0000 (07:29 +0200)] 
[3.11] Bump sphinx-lint to v0.8.1 (GH-110933) (#110958)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.11] Enable ruff on several more files in `Lib/test` (#110929) (#110935)
Alex Waygood [Mon, 16 Oct 2023 20:17:59 +0000 (21:17 +0100)] 
[3.11] Enable ruff on several more files in `Lib/test` (#110929) (#110935)

(cherry-picked from commit 02d26c4bef3ad0f9c97e47993a7fa67898842e5c)

2 years ago[3.11] C-API docs: Clarify the size of arenas (GH-110895) (#110947)
Miss Islington (bot) [Mon, 16 Oct 2023 19:06:34 +0000 (21:06 +0200)] 
[3.11] C-API docs: Clarify the size of arenas (GH-110895) (#110947)

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.11] regrtest: Prepend 'use' options in --{fast,slow}-ci (GH-110363) (#110924)
Miss Islington (bot) [Mon, 16 Oct 2023 14:55:52 +0000 (16:55 +0200)] 
[3.11] regrtest: Prepend 'use' options in --{fast,slow}-ci (GH-110363) (#110924)

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.11] gh-110527: Improve `PySet_Clear` docs (GH-110528) (#110927)
Miss Islington (bot) [Mon, 16 Oct 2023 13:15:07 +0000 (15:15 +0200)] 
[3.11] gh-110527: Improve `PySet_Clear` docs (GH-110528) (#110927)

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.11] gh-110886 Doc: add a link to BNF Wikipedia article (GH-110887) (#110901)
Miss Islington (bot) [Sun, 15 Oct 2023 17:00:57 +0000 (19:00 +0200)] 
[3.11] gh-110886 Doc: add a link to BNF Wikipedia article (GH-110887) (#110901)

Co-authored-by: partev <petrosyan@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.11] remove redundant call to attach_loop in watcher (GH-110847) (#110870)
Thomas Grainger [Sun, 15 Oct 2023 14:51:13 +0000 (07:51 -0700)] 
[3.11] remove redundant call to attach_loop in watcher (GH-110847) (#110870)

(cherry picked from commit 596589104fe5a4d90cb145b2cc69b71cc9aa9f07)

2 years ago[3.11] [3.12] bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825) (GH...
Serhiy Storchaka [Sun, 15 Oct 2023 08:32:26 +0000 (11:32 +0300)] 
[3.11] [3.12] bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825) (GH-110882) (GH-110889)

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)
(cherry picked from commit 72b0f0eaf52ac46d5f6e165f737d6f891cf8d172)

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

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.11] gh-109747: Improve errors for unsupported look-behind patterns (GH-109859...
Miss Islington (bot) [Sat, 14 Oct 2023 06:51:24 +0000 (08:51 +0200)] 
[3.11] gh-109747: Improve errors for unsupported look-behind patterns (GH-109859) (GH-110860)

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.11] gh-107705: Fix file leak in test_tkinter in the C locale (GH-110507) (GH-110858)
Miss Islington (bot) [Sat, 14 Oct 2023 06:40:18 +0000 (08:40 +0200)] 
[3.11] gh-107705: Fix file leak in test_tkinter in the C locale (GH-110507) (GH-110858)

(cherry picked from commit ca0f3d858d069231ce7c5b382790a774f385b467)

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

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.11] Bump sphinx-lint to 0.7.0 (GH-110830) (#110834)
Miss Islington (bot) [Fri, 13 Oct 2023 13:59:25 +0000 (15:59 +0200)] 
[3.11] Bump sphinx-lint to 0.7.0 (GH-110830) (#110834)

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.11] gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818) (#110827)
Miss Islington (bot) [Fri, 13 Oct 2023 13:24:29 +0000 (15:24 +0200)] 
[3.11] gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818) (#110827)

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.11] gh-107450: Fix parser column offset overflow test on Windows (GH-110768) ...
Miss Islington (bot) [Fri, 13 Oct 2023 08:32:42 +0000 (10:32 +0200)] 
[3.11] gh-107450: Fix parser column offset overflow test on Windows (GH-110768) (#110809)

(cherry picked from commit 05439d308740b621d03562451a7608eb725937ae)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years agogh-110756: Sync regrtest with main branch (#110758) (#110781)
Victor Stinner [Thu, 12 Oct 2023 21:45:36 +0000 (23:45 +0200)] 
gh-110756: Sync regrtest with main branch (#110758) (#110781)

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

Copy also changes from:

* Lib/test/support/__init__.py
* Lib/test/support/os_helper.py
* Lib/test/support/testresult.py
* Lib/test/support/threading_helper.py
* Lib/test/test_support.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.11.
* Add support.set_sanitizer_env_var().
* Update test_faulthandler to use support.set_sanitizer_env_var().
* @support.without_optimizer doesn't exist in 3.11.
* Add support.Py_DEBUG.
* regrtest.refleak: 3.11 doesn't have sys.getunicodeinternedsize.

2 years ago[3.11] gh-109216: Fix possible memory leak in `BUILD_MAP` (#109323)
Nikita Sobolev [Thu, 12 Oct 2023 12:52:03 +0000 (15:52 +0300)] 
[3.11] gh-109216: Fix possible memory leak in `BUILD_MAP` (#109323)

* [3.11] gh-109216: Fix possible memory leak in `BUILD_MAP`

* Add NEWS

* Update Python/ceval.c

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
---------

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 years ago[3.11] gh-107450: Raise OverflowError when parser column offset overflows (GH-110754...
Miss Islington (bot) [Thu, 12 Oct 2023 09:57:36 +0000 (11:57 +0200)] 
[3.11] gh-107450: Raise OverflowError when parser column offset overflows (GH-110754) (#110763)

(cherry picked from commit fb7843ee895ac7f6eeb58f356b1a320eea081cfc)

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

(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.11] gh-110673: test_pty raises on short write (GH-110677) (#110743)
Miss Islington (bot) [Thu, 12 Oct 2023 08:09:49 +0000 (10:09 +0200)] 
[3.11] gh-110673: test_pty raises on short write (GH-110677) (#110743)

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.11] gh-110631: Fix reST indentation in `Doc/reference` (GH-110708) (#110741)
Ezio Melotti [Thu, 12 Oct 2023 00:01:48 +0000 (02:01 +0200)] 
[3.11] gh-110631: Fix reST indentation in `Doc/reference` (GH-110708) (#110741)

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

2 years ago[3.11] gh-110631: Fix reST indentation (GH-110724) (#110739)
Ezio Melotti [Wed, 11 Oct 2023 21:12:53 +0000 (23:12 +0200)] 
[3.11] gh-110631: Fix reST indentation (GH-110724) (#110739)

* Fix wrong indentation in the other dirs.

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

2 years ago[3.11] gh-110631: Fix reST indentation in `Doc/library` (GH-110685) (#110737)
Ezio Melotti [Wed, 11 Oct 2023 21:11:41 +0000 (23:11 +0200)] 
[3.11] gh-110631: Fix reST indentation in `Doc/library` (GH-110685) (#110737)

* [3.11] 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>
* Fix merge glitch.

2 years ago[3.11] gh-108826: Document `dis` module CLI and rename `_test` function to `main...
Hugo van Kemenade [Wed, 11 Oct 2023 20:48:03 +0000 (22:48 +0200)] 
[3.11] gh-108826: Document `dis` module CLI and rename `_test` function to `main` (#108827) (#110689)

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>