summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] Use `fail-fast: false` in `mypy.yml` (GH-119297) (#119304)Miss Islington (bot)2024-05-211-0/+1
| | | | | | | | Use `fail-fast: false` in `mypy.yml` (GH-119297) See docs about this setting: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actionsGH-jobsjob_idstrategyfail-fast (cherry picked from commit b36533290608aed757f6eb16869a679650d32e17) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.13] gh-74929: PEP 667 general docs update (gh-119291)Miss Islington (bot)2024-05-2111-66/+163
| | | | | | | | | | | * expand on What's New entry for PEP 667 (including porting notes) * define 'optimized scope' as a glossary term * cover comprehensions and generator expressions in locals() docs * review all mentions of "locals" in documentation (updating if needed) * review all mentions of "f_locals" in documentation (updating if needed) (cherry picked from commit e870c852c0ea96fa4e4569e9c39c7ceb80ce858d) Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* [3.13] gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) ↵Miss Islington (bot)2024-05-215-11/+26
| | | | | | | | | | | windows blurry (GH-119175) (#119289) gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (GH-119175) ------ (cherry picked from commit 538ed5e4818aa0d0aa759634e8bfa23e317434a1) Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
* [3.13] gh-118912: Remove description of issue fixed in 3.5 from autospeccing ↵Miss Islington (bot)2024-05-201-32/+8
| | | | | | | | | | | | | | | | | | guide (GH-119232) (#119284) gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide (GH-119232) * Remove description of issue fixed in 3.5 from autospeccing guide * Make autospeccing note text more succint and lint whitespace * Add linting changes (missed in last commit) --------- (cherry picked from commit 7e57640c7ec6b7b5ce9b5eac465f6b771fd6ae69) Co-authored-by: Shauna <shaunagm@gmail.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* [3.13] gh-108267 Fix another dataclasses docs typo (GH-119277) (#119279)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.13] gh-119050: Add XML support to libregrtest refleak checker (GH-119148) ↵Miss Islington (bot)2024-05-205-25/+39
| | | | | | | | | | | | | | | | (#119270) gh-119050: Add XML support to libregrtest refleak checker (GH-119148) regrtest test runner: Add XML support to the refleak checker (-R option). * run_unittest() now stores XML elements as string, rather than objects, in support.junit_xml_list. * runtest_refleak() now saves/restores XML strings before/after checking for reference leaks. Save XML into a temporary file. (cherry picked from commit 9257731f5d3e9d4f99e314b23a14506563e167d7) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-119253: use ImportError in _ios_support (GH-119254) (#119265)Miss Islington (bot)2024-05-201-2/+2
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.13] gh-119189: Add more tests for mixed Fraction arithmetic (GH-119236) ↵Miss Islington (bot)2024-05-201-0/+263
| | | | | | | (GH-119255) (cherry picked from commit fe67af19638d208239549ccac8b4f4fb6480e801) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-118760: Restore the default value of tkinter.wantobjects to 1 ↵Miss Islington (bot)2024-05-204-18/+9
| | | | | | | | (GH-118784) (GH-119251) It was set to 2 in 65f5e586a1239ed1a66d8284773d7b02ce40e480 (GH-98592). (cherry picked from commit e188527c343c74574d481b77c30063db1436e62b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] Use correct markup in unittest.mock.reset_mock documentation ↵Miss Islington (bot)2024-05-201-3/+3
| | | | | | | | (GH-119207) (GH-119250) 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.13] gh-92081: Fix for email.generator.Generator with whitespace between ↵Miss Islington (bot)2024-05-204-8/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | encoded words. (GH-92281) (#119245) * 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.13] gh-112844: Update CPE references for external dependencies ↵Miss Islington (bot)2024-05-201-1/+15
| | | | | | (GH-118521) (#119237) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.13] DOCS: Suggest always calling exec with a globals argument and no ↵Miss Islington (bot)2024-05-201-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | locals argument (GH-119235) (#119239) 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.13] GH-119146: Don't run JIT CI on unrelated changes (GH-119226)Miss Islington (bot)2024-05-201-0/+6
| | | | | (cherry picked from commit 5307f44fb983f2a17727fb43602f5dfa63e93311) Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.13] gh-115119: Fall back to bundled libmpdec if system libmpdec is not ↵Miss Islington (bot)2024-05-203-12/+28
| | | | | | | found (GH-119196) (#119217) (cherry picked from commit 642b25b9a82c368b045709f0b94e7d5a02400ed2) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.13] [docs] TypeVarTuple default is keyword-only (GH-119215) (#119224)Miss Islington (bot)2024-05-201-1/+1
| | | | | (cherry picked from commit e406b399f9f677cda3d48ed8d7c9d29a173f51f3) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
* [3.13] gh-119185: Fix typo in `_pyrepl.pager`: `tempfilepager` should be ↵Miss Islington (bot)2024-05-201-1/+1
| | | | | | | | | | `tempfile_pager` (GH-118881) (#119211) Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pager` The name with no underscore doesn't exist. (cherry picked from commit 05e1dce76d7669e90ab73e7e682360d83b8a0d02) Co-authored-by: Thanos <111999343+Sachaa-Thanasius@users.noreply.github.com>
* [3.13] typing docs: Fix formatting issue (GH-119210) (#119212)Miss Islington (bot)2024-05-201-1/+1
| | | | | | typing docs: Fix formatting issue (GH-119210) (cherry picked from commit 72d07dd30bc10751fe0298915c918eb08e555a7a) Co-authored-by: David Foster <david@dafoster.net>
* [3.13] gh-119121: Fix and test `async.staggered.staggered_race` (GH-119173) ↵Miss Islington (bot)2024-05-203-2/+100
| | | | | | | | (#119206) gh-119121: Fix and test `async.staggered.staggered_race` (GH-119173) (cherry picked from commit 16b46ebd2b0025aa461fdfc95fbf98a4f04b49e6) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.13] IDLE: fix url in config.py comment (GH-119198) (#119199)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.13] GH-119113: Raise `TypeError` from ↵Miss Islington (bot)2024-05-193-7/+9
| | | | | | | | `pathlib.PurePath.with_suffix(None)` (GH-119124) (#119183) Restore behaviour from 3.12 when `path.with_suffix(None)` is called. (cherry picked from commit 3c28510b984392b8dac87a17dfc5887366d5c4ab) Co-authored-by: Barney Gale <barney.gale@gmail.com>
* [3.13] GH-118447: Fix FreeBSD test failures. (GH-119170) (#119181)Miss Islington (bot)2024-05-191-0/+1
| | | | | | | | | GH-118447: Fix FreeBSD test failures. (GH-119170) Apparently only macOS requires read permission to call `readlink()` on a symlink. (cherry picked from commit 4b7667172898d440c1931ae923446c6a5ef1765e) Co-authored-by: Barney Gale <barney.gale@gmail.com>
* [3.13] marshal docs: Remove reference to "Sun" (GH-119161) (#119167)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.13] GH-118447: Fix handling of unreadable symlinks in ↵Miss Islington (bot)2024-05-183-13/+32
| | | | | | | | `os.path.realpath()` (GH-118489) (#119163) (cherry picked from commit caf6064a1bc15ac344afd78b780188e60b9c628e) Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
* [3.13] gh-119050: Add type hints to libregrtest/results.py (GH-119144) (#119156)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.13] gh-119132: Update sys.version to identify free-threaded or not. ↵Miss Islington (bot)2024-05-183-11/+24
| | | | | | | | (gh-119134) (#119153) gh-119132: Update sys.version to identify free-threaded or not. (gh-119134) (cherry picked from commit c141d4393750c827cbcb3867f0f42997a3bb3528) Co-authored-by: Donghee Na <donghee.na@python.org>
* [3.13] docs: make mimalloc license text literal (GH-119046) (#119149)Miss Islington (bot)2024-05-181-21/+21
| | | | | | docs: make mimalloc license text literal (GH-119046) (cherry picked from commit 691429702f1cb657e65f4e5275bb5ed16121d2b7) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* [3.13] gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (GH-119140) ↵Miss Islington (bot)2024-05-181-3/+7
| | | | | | | | (#119143) gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (GH-119140) (cherry picked from commit 74072a3ffc733e32159e694bcf7a2198f2db0d43) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-119078: Clarify venv tutorial (GH-119129) (GH-119142)Miss Islington (bot)2024-05-181-4/+4
| | | (cherry picked from commit 0f5e8bed636c2f29701e5a1965d1b088d33abbf0)
* [3.13] Minor improvements to the docs for itertools.tee() (gh-119135) ↵Miss Islington (bot)2024-05-181-10/+11
| | | | (gh-119136)
* [3.13] gh-119049: Fix incorrect display of warning which is constructed by C ↵Miss Islington (bot)2024-05-174-4/+57
| | | | | | | | | API (GH-119063) (GH-119106) The source line was not displayed if the warnings module had not yet been imported. (cherry picked from commit 100c7ab00ab66a8c0d54582f35e38d8eb691743c) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.13] Fix typos in documentation (GH-119092) (#119116)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.13] GH-118943: Fix a race condition when generating jit_stencils.h ↵Miss Islington (bot)2024-05-162-7/+15
| | | | | (GH-119101) (cherry picked from commit 4702b7b5bdc07d046576b4126cf4e4f5f7145abb)
* [3.13] Explain how to install LLVM on Fedora (GH-119100)Miss Islington (bot)2024-05-161-0/+6
| | | | | (cherry picked from commit ab73bcdf73fed5a23f2e2e37a63d6992f29479a9) Co-authored-by: Miro Hrončok <miro@hroncok.cz> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.13] gh-108267: Fix object.__setattr__ regression in dataclasses docs ↵Miss Islington (bot)2024-05-161-1/+2
| | | | | | (GH-119082) (#119097) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.13] Add Tkinter tests for different events (GH-118778) (GH-119091)Miss Islington (bot)2024-05-161-0/+278
| | | | | (cherry picked from commit b6839942a8906fccdd64e749abeefe8a61ce7e03) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests ↵Miss Islington (bot)2024-05-1619-127/+115
| | | | | | | (GH-119065) (GH-119087) (cherry picked from commit 0152dc4ff5534fa2948b95262e70ff6b202b9b99) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] Use literal syntax in origin property (GH-119029) (#119083)Miss Islington (bot)2024-05-161-1/+1
| | | | | | Use literal syntax in origin property (GH-119029) (cherry picked from commit 66b73e9724fc376715ae264c8282dc1e981e4f17) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* [3.13] gh-119009: Add gettext target (GH-119006) (#119074)Miss Islington (bot)2024-05-152-0/+8
| | | | Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* [3.13] gh-118760: Fix errors in calling Tkinter bindings on Windows ↵Miss Islington (bot)2024-05-152-0/+4
| | | | | | | | | (GH-118782) (GH-119072) For unknown reasons some arguments for Tkinter binding can be created as a 1-tuple containing a Tcl_Obj when wantobjects is 2. (cherry picked from commit 5b88d95cc542cf02303c6fe0e8719a93544decdb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] Remove references to private symbols from zipimport module docstring ↵Miss Islington (bot)2024-05-151-3/+1
| | | | | | | (GH-119071) (cherry picked from commit 7d722b7d3ac78bfa74a5d2f21513ffbf4f85cff2) Co-authored-by: Thomas Grainger <tagrain@gmail.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.13] 3.13 What's New: Add PEP 702 (GH-118922) (#119062)Miss Islington (bot)2024-05-151-0/+3
| | | | | | | | I honestly forgot this slipped into 3.13, but I think it's worth highlighting more, as it is a PEP-sized change that makes the type system significantly more powerful. @Yhg1s I think it's also worth mentioning in your release announcements. (cherry picked from commit ee13797dec988884f8792144fe5b3d7f5c8083c9) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.13] Misc improvements to the itertools docs (gh-119040) (#119045)Miss Islington (bot)2024-05-141-35/+26
|
* [3.13] Itertools docs: fix parameter names and indentation in Python ↵Miss Islington (bot)2024-05-141-5/+5
| | | | equivalents (gh-118977) (#119043)
* [3.13] typing tests: remove some unnecessary uses of `exec()` (GH-119005) ↵Miss Islington (bot)2024-05-141-19/+9
| | | | | | | | (#119038) (cherry picked from commit a9328e2b6ee05c186dcc552feb92b862b4a574df) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.13] Add yet few cases for urlparse/urlunparse roundtrip tests (GH-119031) ↵Miss Islington (bot)2024-05-141-0/+17
| | | | | | | (GH-119037) (cherry picked from commit 331d385af9817eaa32b739130227781358f85771) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] 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-119023) (cherry picked from commit e237b25a4fa5626fcd1b1848aa03f725f892e40e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] GH-118836: Fix JIT build error when SHT_NOTE section is present ↵Miss Islington (bot)2024-05-132-0/+3
| | | | | | | (GH-119020) (cherry picked from commit e04cd964eb4eee1b0ae5b2c34727abce6c0fb7f0) Co-authored-by: Michał Górny <mgorny@gentoo.org>
* [3.13] gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` ↵Miss Islington (bot)2024-05-131-10/+17
| | | | | | | | (GH-118999) (#119018) gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (GH-118999) (cherry picked from commit fc757925944a9486d4244853dbe6e37ab3e560c2) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>