summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-108267 Fix another dataclasses docs typo (GH-119277) (#119280)Miss Islington (bot)2024-05-201-1/+2
| | | | | | gh-108267 Fix another dataclasses docs typo (GH-119277) (cherry picked from commit 423bbcbbc43cacfb6a217c04f890a47d3cf7c3a9) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-119189: Add more tests for mixed Fraction arithmetic (GH-119236) ↵Miss Islington (bot)2024-05-201-0/+263
| | | | | | | (GH-119256) (cherry picked from commit fe67af19638d208239549ccac8b4f4fb6480e801) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Use correct markup in unittest.mock.reset_mock documentation ↵Miss Islington (bot)2024-05-201-3/+3
| | | | | | | | (GH-119207) (GH-119249) Use correct markup in unittest.mock.reset_mock documentation (GH-119207) (cherry picked from commit 6b80a5b20f31a067bd1c374295608df5f1210f49) Co-authored-by: Tialo <65392801+Tialo@users.noreply.github.com>
* [3.12] gh-92081: Fix for email.generator.Generator with whitespace between ↵Miss Islington (bot)2024-05-204-8/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | encoded words. (GH-92281) (#119246) * Fix for email.generator.Generator with whitespace between encoded words. email.generator.Generator currently does not handle whitespace between encoded words correctly when the encoded words span multiple lines. The current generator will create an encoded word for each line. If the end of the line happens to correspond with the end real word in the plaintext, the generator will place an unencoded space at the start of the subsequent lines to represent the whitespace between the plaintext words. A compliant decoder will strip all the whitespace from between two encoded words which leads to missing spaces in the round-tripped output. The fix for this is to make sure that whitespace between two encoded words ends up inside of one or the other of the encoded words. This fix places the space inside of the second encoded word. A second problem happens with continuation lines. A continuation line that starts with whitespace and is followed by a non-encoded word is fine because the newline between such continuation lines is defined as condensing to a single space character. When the continuation line starts with whitespace followed by an encoded word, however, the RFCs specify that the word is run together with the encoded word on the previous line. This is because normal words are filded on syntactic breaks by encoded words are not. The solution to this is to add the whitespace to the start of the encoded word on the continuation line. Test cases are from GH-92081 * Rename a variable so it's not confused with the final variable. (cherry picked from commit a6fdb31b6714c9f3c65fefbb3fe388b2b139a75f) Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
* [3.12] gh-112844: Update CPE references for external dependencies ↵Miss Islington (bot)2024-05-201-1/+15
| | | | | | (GH-118521) (#119238) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] DOCS: Suggest always calling exec with a globals argument and no ↵Miss Islington (bot)2024-05-201-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | locals argument (GH-119235) (#119240) DOCS: Suggest always calling exec with a globals argument and no locals argument (GH-119235) Many users think they want a locals argument for various reasons but they do not understand that it makes code be treated as a class definition. They do not want their code treated as a class definition and get surprised. The reason not to pass locals specifically is that the following code raises a `NameError`: ```py exec(""" def f(): print("hi") f() def g(): f() g() """, {}, {}) ``` The reason not to leave out globals is as follows: ```py def t(): exec(""" def f(): print("hi") f() def g(): f() g() """) ``` (cherry picked from commit 7e1a130b8ff1ed8b3a5f00fe0f06d3916b852216) Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
* [3.12] IDLE: fix url in config.py comment (GH-119198) (#119200)Miss Islington (bot)2024-05-201-1/+1
| | | | | | IDLE: fix url in config.py comment (GH-119198) (cherry picked from commit 357f5a1f73684d0c126a5e8f79d76ff3641c4d52) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] marshal docs: Remove reference to "Sun" (GH-119161) (#119168)Miss Islington (bot)2024-05-191-1/+1
| | | | | | | | Nobody has been using a Sun machine for a long time. When I saw this sentence in a lightning talk just now, I thought it was talking about sending Python code on a spacecraft. (cherry picked from commit 697465ff88e49d98443025474e5b534adfba2cb0) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-119050: Add type hints to libregrtest/results.py (GH-119144) (#119157)Miss Islington (bot)2024-05-181-6/+6
| | | | | | | | gh-119050: Add type hints to libregrtest/results.py (GH-119144) Sort also 'omitted' in TestResults.display_result(). (cherry picked from commit 30b4e9f9c42493136c58c56fee5553128bb32428) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-118997: Fix _Py_ClearImmortal() assertion (#119001)Victor Stinner2024-05-182-1/+5
| | | | | | Fix _Py_ClearImmortal() assertion: use _Py_IsImmortal() to tolerate reference count lower than _Py_IMMORTAL_REFCNT. Fix the assertion for the stable ABI, when a C extension is built with Python 3.11 or lower.
* [3.12] gh-119078: Clarify venv tutorial (GH-119129) (GH-119141)Miss Islington (bot)2024-05-181-4/+4
| | | (cherry picked from commit 0f5e8bed636c2f29701e5a1965d1b088d33abbf0)
* [3.12] Minor improvements to the docs for itertools.tee() (gh-119135) ↵Miss Islington (bot)2024-05-181-10/+11
| | | | (gh-119137)
* [3.12] Fix typos in documentation (GH-119092) (#119117)Miss Islington (bot)2024-05-1710-15/+15
| | | | | | | Fix typos in documentation (GH-119092) (cherry picked from commit 65de194dd80bbc8cb7098d21cfd6aefd11d0d0ce) Co-authored-by: Xie Yanbo <xieyanbo@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-108267: Fix object.__setattr__ regression in dataclasses docs ↵Miss Islington (bot)2024-05-161-1/+2
| | | | | | (GH-119082) (#119098) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] Add Tkinter tests for different events (GH-118778) (GH-119095)Serhiy Storchaka2024-05-161-0/+278
| | | (cherry picked from commit b6839942a8906fccdd64e749abeefe8a61ce7e03)
* [3.12] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests ↵Serhiy Storchaka2024-05-1619-128/+116
| | | | | (GH-119065) (GH-119088) (cherry picked from commit 0152dc4ff5534fa2948b95262e70ff6b202b9b99)
* [3.12] gh-119009: Add gettext target (GH-119006) (#119075)Miss Islington (bot)2024-05-152-0/+8
| | | | Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* gh-118486: Simplify test_win32_mkdir_700 to check the exact ACL (GH-119056)Miss Islington (bot)2024-05-152-16/+9
| | | | | (cherry picked from commit 94591dca510c796c7d40e9b4167ea56f2fdf28ca) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] Misc improvements to the itertools docs (gh-119040) (#119044)Miss Islington (bot)2024-05-141-35/+26
|
* [3.12] Itertools docs: fix parameter names and indentation in Python ↵Miss Islington (bot)2024-05-141-5/+5
| | | | equivalents (gh-118977) (#119042)
* [3.12] typing tests: remove some unnecessary uses of `exec()` (GH-119005) ↵Miss Islington (bot)2024-05-141-19/+9
| | | | | | | | (#119039) (cherry picked from commit a9328e2b6ee05c186dcc552feb92b862b4a574df) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Add yet few cases for urlparse/urlunparse roundtrip tests (GH-119031) ↵Miss Islington (bot)2024-05-141-0/+17
| | | | | | | (GH-119036) (cherry picked from commit 331d385af9817eaa32b739130227781358f85771) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-67693: Fix urlunparse() and urlunsplit() for URIs with path ↵Miss Islington (bot)2024-05-143-4/+70
| | | | | | | starting with multiple slashes and no authority (GH-113563) (GH-119024) (cherry picked from commit e237b25a4fa5626fcd1b1848aa03f725f892e40e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` ↵Miss Islington (bot)2024-05-131-10/+17
| | | | | | | | (GH-118999) (#119019) gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (GH-118999) (cherry picked from commit fc757925944a9486d4244853dbe6e37ab3e560c2) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-119010: Adds docs about `__type_params__` to ↵Miss Islington (bot)2024-05-131-2/+6
| | | | | | | | | `functools.update_wrapper` (GH-119012) (#119014) gh-119010: Adds docs about `__type_params__` to `functools.update_wrapper` (GH-119012) (cherry picked from commit b04c497f187b0b474e431a6d8d282269b40ffe52) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is ↵Tian Gao2024-05-133-8/+67
| | | | | | | | | | not set (GH-118979) (#119008) * [3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is not set (GH-118979) (cherry picked from commit f526314194f7fd15931025f8a4439c1765666e42) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* gh-118876: Ensure PC/layout sets ns.temp before using it (GH-118880)Miss Islington (bot)2024-05-131-2/+9
| | | | | | Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows. (cherry picked from commit d8a82cca12e12a6b22bfe6691e9b222f6d276f0a) Co-authored-by: I-Shen Leong <i-shenl@activestate.com>
* [3.12] Improve the `rmtree` doc for `dir_fd` param addition in 3.11 ↵Miss Islington (bot)2024-05-131-1/+1
| | | | | | (GH-118964) (#118992) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-87106: Fix inspect.signature.bind() handling of positional-only ↵Miss Islington (bot)2024-05-133-17/+39
| | | | | | | arguments with **kwargs (GH-103404) (GH-118984) (cherry picked from commit 9c1520244151f36e010c1b04bedf14747a28517d) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [3.12] gh-118899: Add tests for `NotImplemented` attribute access ↵Miss Islington (bot)2024-05-121-0/+18
| | | | | | | | (GH-118902) (#118969) gh-118899: Add tests for `NotImplemented` attribute access (GH-118902) (cherry picked from commit ec1398e117fb142cc830495503dbdbb1ddafe941) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-118701: Note that recursive wildcards aren't supported in ↵Barney Gale2024-05-111-0/+4
| | | | `PurePath.match()` (#118713)
* [3.12] Correct the argument names for `secrets.choice` and ↵Miss Islington (bot)2024-05-101-3/+3
| | | | | | | | | | `secrets.randbelow` in `secrets.rst` (GH-118098) (GH-118907) Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst` (GH-118098) Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`. (cherry picked from commit c444362c6e0b6c01f49c3bee864100f52bd3b640) Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
* gh-118689: Doc: fix ePub build (GH-118690)Miss Islington (bot)2024-05-103-1/+7
| | | | | (cherry picked from commit 7ac933e2609b2ef9b08ccf9c815b682b0e1ede2a) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* Fix some missing null checks. (GH-118721)Miss Islington (bot)2024-05-102-5/+13
| | | | | (cherry picked from commit 7e6fcab20003b07621dc02ea78d6ea2fda500371) Co-authored-by: Steve Dower <steve.dower@python.org>
* gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488)Steve Dower2024-05-096-2/+106
|
* gh-118802: Fix ACL use in test for non-English Windows (GH-118831)Miss Islington (bot)2024-05-091-3/+2
| | | | | (cherry picked from commit 82acc5f2113bffd0ed902851f4ccf5b9be8980b2) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-103956: Fix `trace` output in case of missing source line ↵Miss Islington (bot)2024-05-093-4/+38
| | | | | | | | (GH-103958) (GH-118832) Print only filename with lineno if linecache.getline() returns an empty string. (cherry picked from commit 7c87ce777b3fd9055b118a58ec8614901ecb45e9) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
* [3.12] gh-118033: Fix `__weakref__` not set for generic dataclasses ↵Miss Islington (bot)2024-05-093-3/+118
| | | | | | | | (GH-118099) (#118822) gh-118033: Fix `__weakref__` not set for generic dataclasses (GH-118099) (cherry picked from commit fa9b9cb11379806843ae03b1e4ad4ccd95a63c02) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Format None, True, False and NotImplemented as literals (GH-118758) ↵Serhiy Storchaka2024-05-0833-75/+76
| | | | | (GH-118794) (cherry picked from commit 05c2fe1acda9ea5a57061642c36e8b73bb4fbba4)
* [3.12] docs: module page titles should not start with a link to themselves ↵Miss Islington (bot)2024-05-08220-443/+440
| | | | | | | | (GH-117099) (#118791) docs: module page titles should not start with a link to themselves (GH-117099) (cherry picked from commit bcb435ee8ff41b5ec5d879ee0b6651f146a66151) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.12] Docs: fix typos in documentation (GH-118752) (#118786)Miss Islington (bot)2024-05-084-4/+4
| | | | | | Docs: fix typos in documentation (GH-118752) (cherry picked from commit 7b0c247f1c176e092777fce4677a00f22c738b3c) Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
* [3.12] gh-118671: Updated dead ActiveState links (GH-118730) (#118754)Miss Islington (bot)2024-05-0812-14/+14
| | | | | | Co-authored-by: trag1c <trag1cdev@yahoo.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-118736) (#118753)Miss Islington (bot)2024-05-081-3/+3
| | | | | | | | Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-118736) Regen dependencies (cherry picked from commit fcf52d7ceea3532f0b3475aadd4e1f72db463a1f) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] Remove Python 3.5 hardcoded version in the tutorial appendix ↵Miss Islington (bot)2024-05-071-2/+2
| | | | | | | | (GH-117612) (GH-118707) Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) (cherry picked from commit a855f824a2f5a310ffa58a973a8fe9feaa2500b3) Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
* [3.12] gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311) ↵Miss Islington (bot)2024-05-071-5/+7
| | | | | | | | | | | | | (GH-118699) gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311) The provided example was incorrect: - The example enum was missing the `int` mixin as implied by the context - The value of `int('1a', 16)` was incorrectly given as 17 (should be 26) (cherry picked from commit 48e52fe2c9a7b33671f6b5d1420a71a6f31ad64b) Co-authored-by: Momo Eissenhauer <mmEissen@users.noreply.github.com>
* [3.12] gh-78612: Mark up eval() using param list (GH-115212) (#116044)Miss Islington (bot)2024-05-071-5/+15
| | | | | | Also mention that the 'expression' parameter can be a string. (cherry picked from commit a71e32ce8e183023fc1ee401c22ebe35e4832f09) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode ↵Miss Islington (bot)2024-05-073-0/+23
| | | | | | | | | | | | | | (GH-118320) (GH-118691) gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320) Fix an edge case in `binascii.a2b_base64` strict mode, where excessive padding was not detected when no padding is necessary. (cherry picked from commit fe47d9bee319528ffeb5fd60a615d7f02c7b5585) Co-authored-by: Youfu Zhang <1315097+zhangyoufu@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
* [3.12] Expand recipe for kernel density estimation to include common tasks. ↵Raymond Hettinger2024-05-061-10/+46
| | | | (gh-118659)
* [3.12] gh-71592: Add ability to trace Tcl commands executed by Tkinter ↵Serhiy Storchaka2024-05-063-6/+191
| | | | | | | | | | | | | | | | | (GH-118291) (GH-118662) This is an experimental feature, for internal use. Setting tkinter._debug = True before creating the root window enables printing every executed Tcl command (or a Tcl command equivalent to the used Tcl C API). This will help to convert a Tkinter example into Tcl script to check whether the issue is caused by Tkinter or exists in the underlying Tcl/Tk library. (cherry picked from commit 1ff626ebda465931ff3e4922e8e87d586eb6244c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Fix typo in Doc/library/asyncio-task.rst (GH-118627) (#118657)Miss Islington (bot)2024-05-061-1/+1
| | | | | | Fix typo in Doc/library/asyncio-task.rst (GH-118627) (cherry picked from commit fc50f1bdbad3aa52d7cbd3cb836a35806266ec54) Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>