Commit graph

123908 commits

Author SHA1 Message Date
Serhiy Storchaka
7c1b76fce8
[3.13] gh-130163: Fix crashes related to PySys_GetObject() (GH-130503) (GH-130556)
The use of PySys_GetObject() and _PySys_GetAttr(), which return a borrowed
reference, has been replaced by using one of the following functions, which
return a strong reference and distinguish a missing attribute from an error:
_PySys_GetOptionalAttr(), _PySys_GetOptionalAttrString(),
_PySys_GetRequiredAttr(), and _PySys_GetRequiredAttrString().
(cherry picked from commit 0ef4ffeefd)
2025-02-25 22:50:26 +00:00
Miss Islington (bot)
b0d3f49195
[3.13] Fix a typo in code module test (GH-130530) (#130534)
Fix a typo in code module test (GH-130530)
(cherry picked from commit 56e337d32b)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2025-02-25 17:38:40 +00:00
Kanishk Pachauri
28bfc1c996
[3.13] gh-130461: Remove unnecessary usages of .. index:: directives in Doc/library/uuid.rst (#130526) (#130548)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-02-25 15:24:46 +02:00
Miss Islington (bot)
90fc6117da
[3.13] gh-130292: Allow for empty simulator list when running iOS testbed (GH-130388) (#130532)
Adds error handling when there are no pre-existing test simulators.
(cherry picked from commit 99088ab081)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2025-02-25 15:29:43 +08:00
Miss Islington (bot)
3161f01760
[3.13] gh-46236: Add docs for PyUnicode_GetDefaultEncoding() doc (GH-130335) (GH-130511)
* Clarify sys.getdefaultencoding() documentation

* Add missing documentation for PyUnicode_GetDefaultEncoding,
  the C equivalent of sys.getdefaultencoding
(cherry picked from commit 9f25c1f012)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
2025-02-24 17:10:17 +01:00
Miss Islington (bot)
d71b167c5c
[3.13] gh-129405: Fix doc for Py_mod_multiple_interpreters default, and add test (GH-129406) (GH-130507)
(cherry picked from commit fc8d2cba54)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-02-24 16:49:35 +01:00
Miss Islington (bot)
10dd9725b8
[3.13] gh-127522: wsgiref: indicate that start_response objects should follow a specific protocol (GH-127525) (GH-130504)
(cherry picked from commit 39ba4b6619)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-02-24 15:08:07 +01:00
Miss Islington (bot)
86dab0e67e
[3.13] gh-130151: Fix reference leaks in _hashlib.hmac_{new,digest} (GH-130152) (#130491)
gh-130151: Fix reference leaks in `_hashlib.hmac_{new,digest}` (GH-130152)

* fix leak in `_hashlib.hmac_new`
* fix leak in `hmac_digest`
* fix exception type in `_hashlib.HMAC.copy`
(cherry picked from commit 071820113f)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-02-24 00:19:49 -08:00
Miss Islington (bot)
bbfae4a912
[3.13] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (#130392)
(cherry picked from commit 5d66c55c8a)

Co-authored-by: UV <yuvrajpradhan667@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-24 07:23:16 +02:00
Miss Islington (bot)
766170405e
[3.13] gh-130160: use .. program:: directive for documenting idle CLI (GH-130278) (#130494)
gh-130160: use `.. program::` directive for documenting `idle` CLI (GH-130278)

---------




(cherry picked from commit 0ff1611574)

Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
2025-02-23 22:58:28 -05:00
Xuanteng Huang
bb6f3c3769
[3.13] gh-128714: Fix function object races in __annotate__, __annotations__ and __type_params__ in free-threading build (GH-129016) (#129729)
* gh-128714: Fix function object races in `__annotate__`, `__annotations__` and `__type_params__` in  free-threading build (#129016)

(cherry picked from commit 55f17b77c3)

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-23 21:49:55 -05:00
Miss Islington (bot)
6abec03aef
[3.13] Add test checking value of a TypedDict's __total__ attribute when there is an assignment in the class body. (GH-130460) (#130462)
Add test checking value of a TypedDict's __total__ attribute when there is an assignment in the class body. (GH-130460)

In relation to GH-109544 which changed this behavior.
(cherry picked from commit d8ce092fe4)

Signed-off-by: Daniel Sperber <github.blurry@9ox.net>
Co-authored-by: Daraan <github.blurry@9ox.net>
2025-02-22 18:33:20 +00:00
Miss Islington (bot)
c68a8722be
[3.13] gh-121970: Replace .. coroutine{method,function} with :async: (GH-130448) (#130465)
(cherry picked from commit 5ec4bf86b7)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-02-22 18:00:49 +00:00
Miss Islington (bot)
2412c914ef
[3.13] Docs: Test presence of optional extensions with importlib (GH-130445) (#130464)
(cherry picked from commit 3cc9e867eb)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-02-22 18:00:15 +00:00
Miss Islington (bot)
27a28eef87
[3.13] Add measuring unit to sys.getswitchinterval docs (GH-130457) (#130458)
Add measuring unit to `sys.getswitchinterval` docs (GH-130457)
(cherry picked from commit 89d8b2d14b)

Co-authored-by: sobolevn <mail@sobolevn.me>
2025-02-22 16:12:45 +00:00
Miss Islington (bot)
131e0528c4
[3.13] gh-129712: Document the wheels tags corresponding to each universal SDK. (GH-130389) (#130449)
Document the architectures supported by macOS universal SDK configuration flags,
and add details on wheel tag naming.
(cherry picked from commit 474c388740)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2025-02-22 08:37:48 +00:00
Adam Turner
c7d6aa5b51
[3.13] GH-121970: Replace custom abstract method directive with the `:abstract:` option (#129311) (#130439)
(cherry picked from commit 30e892473e)
2025-02-22 02:04:54 +00:00
Adam Turner
9dd2cb7438
[3.13] GH-103180: Set a timeout for every job in GitHub Actions (GH-130375) (#130431)
(cherry picked from commit d0a1e5c222)
2025-02-22 02:01:19 +00:00
Miss Islington (bot)
bb4cd89d7a
[3.13] gh-130159: Fix list indentation in collections.abc (GH-130165) (#130437)
gh-130159: Fix list indentation in collections.abc (GH-130165)
(cherry picked from commit 8e96adf453)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-02-22 01:47:18 +00:00
Miss Islington (bot)
ebb02da7b1
[3.13] gh-128446: Skip Windows CI for Unix build system changes (GH-128450) (#130434)
gh-128446: Skip Windows CI for Unix build system changes (GH-128450)
(cherry picked from commit b05fa90b21)

Authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్  రెడ్డి) <thatiparthysreenivas@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-02-22 01:37:22 +00:00
Hugo van Kemenade
019918a626
[3.13] Convert change detection to a Python script (GH-129627) (#130367)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
2025-02-22 00:31:45 +00:00
Miss Islington (bot)
8ef89474b9
[3.13] gh-130285: Fix handling of zero or empty counts in random.sample() (gh-130291) (gh-130416) 2025-02-21 17:56:51 +00:00
Miss Islington (bot)
3d88c18303
[3.13] gh-126332: Add tests for _pyrepl.utils (GH-129325) (#130414)
gh-126332: Add tests for _pyrepl.utils (GH-129325)
(cherry picked from commit 0c4248f88e)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2025-02-21 17:22:42 +00:00
Miss Islington (bot)
8db3eee4cd
[3.13] gh-124234: Improve docs for Mock.reset_mock (GH-124237) (#130408)
Co-authored-by: sobolevn <mail@sobolevn.me>
2025-02-21 14:58:08 +00:00
Miss Islington (bot)
cb8d89d2e4
[3.13] gh-111609: Test end_offset in SyntaxError subclass (GH-127830) (#130407)
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
2025-02-21 16:56:39 +02:00
Miss Islington (bot)
8ce48c8ebc
[3.13] gh-129363: Change regrtest sequential mode output (GH-129476) (#130405)
gh-129363: Change regrtest sequential mode output (GH-129476)

First, write the test name without color. Then, write the test name
and the result with color. Each test is displayed twice.
(cherry picked from commit f1b81c408f)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-21 14:18:32 +00:00
sobolevn
2a978e16d6
[3.13] Add .. versionadded directive to dis CLI options (GH-130267) (#130401)
(cherry picked from commit 9bf73c032f)
2025-02-21 13:14:27 +00:00
Miss Islington (bot)
ea15cefbf7
[3.13] Fix outdated reference link in collections module (gh-130349) (gh-130386) 2025-02-21 00:22:05 +00:00
Miss Islington (bot)
6cd2f356c3
[3.13] gh-129838: Don't redefine _Py_NO_SANITIZE_UNDEFINED (GH-129839) (#130366)
gh-129838: Don't redefine _Py_NO_SANITIZE_UNDEFINED (GH-129839)

Newer GCC versions accept both __attribute__((no_sanitize("undefined")))
and __attribute__((no_sanitize_undefined)) so check that the macro is
not already defined.
(cherry picked from commit 568db400ff)

Co-authored-by: Collin Funk <collin.funk1@gmail.com>
2025-02-20 16:30:46 +00:00
Miss Islington (bot)
38dfe014de
[3.13] Fix phrasing in paragraphs with leading "similar" (GH-121135) (#130364)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2025-02-20 15:58:16 +00:00
Miss Islington (bot)
2ac25550bd
[3.13] gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition (GH-130191) (#130360)
gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition (GH-130191)
(cherry picked from commit 0f5b82169e)

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-02-20 15:48:13 +00:00
Sam Gross
ef66394677
[3.13] gh-129269: Exclude everything in sys.path in test_coverage_ignore (gh-130133) (gh-130357)
The `test_trace.test_coverage_ignore` test would fail if you had
`setuptools` installed, such as in `~/.local/lib/python3.xxx/site-packages/`.
Ignore everything in `sys.path` when running the test.
(cherry picked from commit 35925e9529)
2025-02-20 15:42:47 +00:00
Miss Islington (bot)
0a992ff383
[3.13] [doc]: Update logging cookbook to mention domain socket configuration in a recipe. (GH-130348) (GH-130351)
(cherry picked from commit 8cbcf51d61)
2025-02-20 14:20:26 +00:00
Miss Islington (bot)
c05d0d8425
[3.13] gh-101100: Fix sphinx warnings in readline.rst (GH-130300) (#130346)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
2025-02-20 15:06:33 +02:00
Miss Islington (bot)
d103357785
[3.13] gh-130250: use support.swap_attr() in test and don't assume we're beginning with a clean system state (GH-130342) (#130344)
gh-130250: use support.swap_attr() in test and don't assume we're beginning with a clean system state (GH-130342)
(cherry picked from commit 048ee2d5ec)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2025-02-20 11:52:06 +00:00
Miss Islington (bot)
178b2ec81f
[3.13] Fix some ctypes docs typos (GH-130307) (GH-130343)
Fix some ctypes docs typos (GH-130307)
(cherry picked from commit 417372bd43)

Co-authored-by: Alcaro <floating@muncher.se>
2025-02-20 11:05:23 +00:00
Serhiy Storchaka
68c57d6f33
[3.13] gh-127750: Backport some tests for singledispatchmethod (GH-130309) (GH-130340)
(cherry picked from commit 395335d0ff)
(cherry picked from commit 10b32054ad)
2025-02-20 09:49:23 +00:00
Miss Islington (bot)
270ec26c51
[3.13] gh-69001: Convert links to more usable buttons (GH-129591) (#130338)
gh-69001: Convert links to more usable buttons (GH-129591)

In Lib/idlelib/help_about.py, there are 2 links that are not underlined or colored, hence hard to tell that clicking works.  All buttons might get converted to colored and underlined links in the future.
---------
(cherry picked from commit ed831b95a2)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-20 08:54:31 +00:00
Miss Islington (bot)
6041dba911
[3.13] gh-130130: Clarify hash=False docs in dataclasses.field (GH-130324) (#130337)
gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324)
(cherry picked from commit 47ace53995)

Co-authored-by: Sabfo <alpha.sabfo@gmail.com>
2025-02-20 07:51:39 +00:00
Miss Islington (bot)
439cba75d9
[3.13] gh-130293: Ensure test__colorize will pass on dumb terminals. (GH-130333) (#130334)
Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set)

(cherry picked from commit 1b070060c0)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2025-02-20 07:12:56 +00:00
Miss Islington (bot)
46237d19d9
[3.13] gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329) (#130330)
gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329)
(cherry picked from commit c718c6be0f)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2025-02-20 02:00:49 +00:00
Miss Islington (bot)
d172415a4e
[3.13] gh-130250: fix regression in traceback.print_last (GH-130318) (#130325)
gh-130250: fix regression in traceback.print_last (GH-130318)
(cherry picked from commit 6c982aeb54)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2025-02-19 22:06:43 +00:00
Miss Islington (bot)
6c92424b94
[3.13] gh-122876: Fix "End of lines" typo (GH-125310) (#130315)
Co-authored-by: za <za@python.or.id>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-19 21:23:49 +02:00
Tian Gao
094394a380
[3.13] gh-128396: Fix a crash when inline comprehension has the same … (#130311)
[3.13] gh-128396: Fix a crash when inline comprehension has the same local variable as the outside scope (GH-130235)
(cherry picked from commit ccf17323c2)
2025-02-19 17:40:03 +00:00
Miss Islington (bot)
5907cd6829
[3.13] Docs: Upgrade Sphinx to 8.2 (GH-130171) (#130289)
Docs: Upgrade Sphinx to 8.2 (GH-130171)
(cherry picked from commit 736ad664e0)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-02-18 23:51:48 +00:00
sobolevn
57e8b0cbee
[3.13] gh-130160: use option instead of cmdoption in dis.rst (GH-130255) (#130264)
(cherry picked from commit 97d0011e7e)
2025-02-18 13:55:30 +00:00
Miss Islington (bot)
a273543444
[3.13] gh-130160: use .. program:: directive for documenting ensurepip CLI (gh-130253) (gh-130259)
gh-130160: use `.. program::` directive for documenting `ensurepip` CLI (gh-130253)
(cherry picked from commit 8cd7f8bf8d)

Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
2025-02-18 12:51:33 +00:00
Miss Islington (bot)
5d83b6c160
[3.13] gh-130230: Fix crash in pow() with only Decimal third argument (GH-130237) (GH-130246)
(cherry picked from commit b93b7e566e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-02-18 13:18:37 +02:00
Miss Islington (bot)
fc1c9f884e
[3.13] gh-130214: Document PyEllipsis_Type (GH-130215) (#130223)
gh-130214: Document `PyEllipsis_Type` (GH-130215)
(cherry picked from commit fc8c99a8ce)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
2025-02-17 19:23:42 +03:00
Miss Islington (bot)
d78e113d1b
gh-128703: Fix mimetypes.guess_type for empty Content-Type in registry (GH-128854)
(cherry picked from commit 303043f506)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
2025-02-17 15:36:49 +00:00