Commit graph

115969 commits

Author SHA1 Message Date
Miss Islington (bot)
ff7dc61643
[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 7f31676340.

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 c7d68f907a)


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

Co-authored-by: Zachary Ware <zach@python.org>
2023-10-24 11:26:57 -05:00
Jelle Zijlstra
575bff3732
[3.11] gh-111151: Convert monospaced directives to :ref: (GH-111152) (#111270)
(cherry picked from commit 1198076447)

Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
2023-10-24 15:34:46 +00:00
Miss Islington (bot)
c905fab338
[3.11] gh-75666: Tkinter: add tests for binding (GH-111202) (GH-111256)
(cherry picked from commit 9bb202a1a9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-24 14:53:38 +03:00
Miss Islington (bot)
10376a164f
[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>
2023-10-24 08:15:03 +00:00
Miss Islington (bot)
e35393fde9
[3.11] Fix a code snippet typo in asyncio docs (GH-108427) (#111244)
Co-authored-by: A <5249513+Dumeng@users.noreply.github.com>
2023-10-24 06:35:49 +00:00
Miss Islington (bot)
bf41dcda70
[3.11] gh-101100: Fix Sphinx warnings for fileno (GH-111118) (#111227)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-23 19:18:00 +00:00
Miss Islington (bot)
09bd752d94
[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>
2023-10-23 16:09:56 +00:00
Miss Islington (bot)
a449a70bcb
[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>
2023-10-23 16:04:52 +00:00
Miss Islington (bot)
135d5c5840
[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>
2023-10-23 18:49:17 +03:00
Furkan Onder
f446df741f
[3.11] gh-67565: Add tests for C-contiguity checks (GH-110951) (GH-111199)
(cherry picked from commit 9376728ce4)
2023-10-23 12:49:44 +03:00
Miss Islington (bot)
0a23960266
[3.11] gh-110383: Italicize variable name (GH-111206) (#111208)
Co-authored-by: Nick <Nikki1993@users.noreply.github.com>
2023-10-23 11:11:54 +03:00
Miss Islington (bot)
6020a3e736
[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>
2023-10-23 07:31:32 +00:00
Miss Islington (bot)
3c3c489d41
[3.11] gh-110196: Fix ipaddress.IPv6Address.__reduce__ (GH-110198) (GH-111190)
(cherry picked from commit 767f416feb)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2023-10-22 19:12:58 +00:00
Miss Islington (bot)
aaa755dd48
[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 8c689c9b88)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2023-10-22 10:29:06 -07:00
Miss Islington (bot)
d0502a9c67
[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 663cf513b0)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
2023-10-22 12:03:39 +00:00
Miss Islington (bot)
cf777399a9
[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 6c23635f2b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: James Hilton-Balfe <gobot1234yt@gmail.com>
2023-10-21 19:40:07 +00:00
Miss Islington (bot)
cf28c61c73
[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 fd60549c0a)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-21 18:23:38 +00:00
Serhiy Storchaka
4222dd93af
[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 9a1fe09622)
2023-10-21 17:30:19 +00:00
Miss Islington (bot)
17b8e35b65
[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 5e7727b052)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-21 18:06:51 +01:00
Miss Islington (bot)
47670fbdd0
[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 7237fb578d)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-10-21 09:01:10 +00:00
Miss Islington (bot)
9addf2cf11
[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 ea7c26e4b8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-20 18:28:41 +00:00
Miss Islington (bot)
7213fc248d
[3.11] Synchronize test_contextlib with test_contextlib_async (GH-111000) (GH-111115)
(cherry picked from commit ff4e53cb74)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-20 14:33:22 +00:00
Miss Islington (bot)
69bcaf7e0e
gh-110913: Fix WindowsConsoleIO chunking of UTF-8 text (GH-111007)
(cherry picked from commit 11312eae6e)

Co-authored-by: Tamás Hegedűs <sorgloomer@users.noreply.github.com>
2023-10-20 12:19:04 +00:00
Miss Islington (bot)
6df935c212
[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>
2023-10-20 11:09:23 +03:00
Miss Islington (bot)
f1dbde0d3a
[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 c42c68aa7b)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-20 07:50:17 +03:00
Miss Islington (bot)
69f0c90011
[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 b802882fb2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-10-20 04:25:17 +00:00
Miss Islington (bot)
2b3f9a5a1d
[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>
2023-10-19 18:35:07 +03:00
Miss Islington (bot)
f22cdecb19
[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>
2023-10-19 18:34:27 +03:00
Miss Islington (bot)
1b60244b97
[3.11] GH-101100: Fix reference warnings for `__getitem__` (GH-110118) (#111074)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-10-19 18:33:12 +03:00
Miss Islington (bot)
4fc5352a0d
[3.11] gh-101100: Fix sphinx warnings in library/getpass.rst (GH-110461) (#111072)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-19 18:31:29 +03:00
Radislav Chugunov
26a028269b
[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 162213f2db)

Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
2023-10-19 14:26:40 +01:00
Miss Islington (bot)
2258d6cfa2
[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 642eb8df95)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-10-19 04:30:43 +00:00
Tian Gao
fabfc2ccfc
[3.11] GH-65052: Prevent pdb from crashing when trying to display objects (GH-111002)
(cherry picked from commit c523ce0f43)
2023-10-18 16:42:36 -07:00
Miss Islington (bot)
faa7c207bf
[3.11] GH-104232: Fix statement about trace return values (GH-111045)
(cherry picked from commit d9246c7b73)
2023-10-18 20:34:20 +00:00
Miss Islington (bot)
8e3d90c332
[3.11] gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct permissions (gh-111038)
(cherry picked from commit cb1bf89c40)

Co-authored-by: Joshua Root <jmr@macports.org>
Co-authored-by: Ned Deily <nad@python.org>
2023-10-18 13:25:04 +00:00
Pablo Galindo Salgado
4e4a3e161f
[3.11] gh-110696: Fix incorrect syntax error message for incorrect argument unpacking (GH-110706) (#110766) 2023-10-18 13:59:17 +01:00
Miss Islington (bot)
7c308f4c64
[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 baefbb21d9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-10-18 08:40:39 +00:00
Miss Islington (bot)
50d936a125
[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 77dbd95609)

Co-authored-by: James <morisja@gmail.com>
2023-10-18 08:04:39 +00:00
Miss Islington (bot)
72131d0610
[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 e7ae43ad7d)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-10-18 04:30:39 +00:00
Victor Stinner
4ccd418a02
[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 26748ed4f6.
2023-10-17 23:20:36 +00:00
Lysandros Nikolaou
1af7b7db0d
[3.11] gh-107450: Check for overflow in the tokenizer and fix overflow test (GH-110832) (#110939)
(cherry picked from commit a1ac5590e0)

Co-authored-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-18 00:34:56 +02:00
Miss Islington (bot)
73ebe2f881
[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 920b3dfaca)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-10-17 18:43:46 +00:00
Nikita Sobolev
f58bcee53a
[3.11] Bump test deps: ruff and pre-commit-hooks (GH-110972) (#110981)
(cherry picked from commit b75b1f389f)
2023-10-17 13:35:00 +01:00
Miss Islington (bot)
ae495de4e6
[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 9a9fba825f)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-10-17 09:59:10 +00:00
Miss Islington (bot)
57ae64f766
[3.11] Bump sphinx-lint to v0.8.1 (GH-110933) (#110958)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-16 23:29:46 -06:00
Alex Waygood
5f7aba938c
[3.11] Enable ruff on several more files in Lib/test (#110929) (#110935)
(cherry-picked from commit 02d26c4bef)
2023-10-16 23:17:59 +03:00
Miss Islington (bot)
e8eb2bf788
[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 f07ca27709)

Co-authored-by: Mienxiu <82512658+mienxiu@users.noreply.github.com>
2023-10-16 19:06:34 +00:00
Miss Islington (bot)
6502a130e4
[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 b75186f69e)

Co-authored-by: Zachary Ware <zach@python.org>
2023-10-16 14:55:52 +00:00
Miss Islington (bot)
616862d58e
[3.11] gh-110527: Improve PySet_Clear docs (GH-110528) (#110927)
gh-110527: Improve `PySet_Clear` docs (GH-110528)
(cherry picked from commit bfc1cd8145)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-16 13:15:07 +00:00
Miss Islington (bot)
e60abeea30
[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>
2023-10-15 17:00:57 +00:00