summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-119050: Add XML support to libregrtest refleak checker (#119148)Victor Stinner2024-05-205-25/+39
| | | | | | | | | 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.
* gh-119253: use ImportError in _ios_support (#119254)Shantanu2024-05-201-2/+2
|
* gh-94808: Add test coverage for "starred kind" in _PyPegen_set_expr_context ↵Mark Jason Dominus (陶敏修)2024-05-201-0/+6
| | | | | (GH-119222) Add test coverage for "starred kind" in _PyPegen_set_expr_context
* gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide ↵Shauna2024-05-201-32/+8
| | | | | | | | | | | | | (#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) --------- Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-111201: Add more tests to test_pyrepl to cover key translation (#118705)Pablo Galindo Salgado2024-05-201-8/+181
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-119189: Add more tests for mixed Fraction arithmetic (GH-119236)Serhiy Storchaka2024-05-201-0/+263
|
* Docs: Ensure no warnings are found in the NEWS file before a given line ↵Hugo van Kemenade2024-05-205-6/+47
| | | | number (#119221)
* gh-118760: Restore the default value of tkinter.wantobjects to 1 (GH-118784)Serhiy Storchaka2024-05-204-18/+9
| | | | It was set to 2 in 65f5e586a1239ed1a66d8284773d7b02ce40e480 (GH-98592).
* Use correct markup in unittest.mock.reset_mock documentation (GH-119207)Tialo2024-05-201-3/+3
|
* gh-92081: Fix for email.generator.Generator with whitespace between encoded ↵Toshio Kuratomi2024-05-204-8/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | words. (#92281) * 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 #92081 * Rename a variable so it's not confused with the final variable.
* gh-118877: Fix AssertionError crash in pyrepl (#118936)Daniel Hollas2024-05-202-4/+25
|
* DOCS: Suggest always calling exec with a globals argument and no locals ↵Hood Chatham2024-05-201-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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() """) ```
* gh-112844: Update CPE references for external dependencies (#118521)Seth Michael Larson2024-05-201-1/+15
|
* gh-119219: Remove two obsolete TODOs. (#119223)Jeremy Hylton2024-05-201-4/+0
| | | Remove two obsolete TODOs.
* Amend NEWS category for gh-119196 (#119218)Erlend E. Aasland2024-05-201-0/+0
|
* [docs] TypeVarTuple default is keyword-only (#119215)Sebastian Rittau2024-05-201-1/+1
|
* gh-115119: Fall back to bundled libmpdec if system libmpdec is not found ↵Erlend E. Aasland2024-05-203-12/+28
| | | | (#119196)
* typing docs: Fix formatting issue (#119210)David Foster2024-05-201-1/+1
|
* gh-119185: Fix typo in `_pyrepl.pager`: `tempfilepager` should be ↵Thanos2024-05-201-1/+1
| | | | | | | `tempfile_pager` (#118881) Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pager` The name with no underscore doesn't exist.
* gh-103134: Update multiprocessing.managers.ListProxy and DictProxy (GH-103133)Roy Hyunjin Han2024-05-203-10/+60
|
* gh-118928: Remove unneeded sqlite3 NEWS entry (#119208)Erlend E. Aasland2024-05-201-2/+0
| | | The regression in d8e0e0091 was never part of an official release.
* gh-118928: sqlite3: correctly bail if sequences of params are used with ↵Erlend E. Aasland2024-05-202-0/+3
| | | | named placeholders (#119197)
* Enable some stricter mypy settings on `Lib/_pyrepl` (#119077)Alex Waygood2024-05-201-4/+1
|
* gh-119121: Fix and test `async.staggered.staggered_race` (#119173)Nikita Sobolev2024-05-203-2/+100
|
* IDLE: fix url in config.py comment (#119198)Terry Jan Reedy2024-05-201-1/+1
|
* gh-119105: difflib: improve recursion for degenerate cases (#119131)pulkin2024-05-192-5/+20
| | | | | | | | | Code from https://github.com/pulkin, in PR https://github.com/python/cpython/pull/119131 Greatly speeds `Differ` when there are many identically scoring pairs, by splitting the recursion near the inputs' midpoints instead of degenerating (as now) into just peeling off the first two lines. Co-authored-by: Tim Peters <tim.peters@gmail.com>
* GH-119113: Raise `TypeError` from `pathlib.PurePath.with_suffix(None)` (#119124)Barney Gale2024-05-193-7/+9
| | | Restore behaviour from 3.12 when `path.with_suffix(None)` is called.
* GH-118447: Fix FreeBSD test failures. (#119170)Barney Gale2024-05-191-0/+1
| | | | Apparently only macOS requires read permission to call `readlink()` on a symlink.
* GH-119146: Don't run JIT CI on unrelated changes (GH-119147)Savannah Ostrowski2024-05-191-0/+6
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* marshal docs: Remove reference to "Sun" (#119161)Jelle Zijlstra2024-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.
* Try to repair oddball test bots timing out in test_int (#119166)Tim Peters2024-05-191-0/+8
| | | Various test bots (outside the ones GH normally runs) are timing out during test_int after ecd8664 (asymptotically faster str->int). Best guess is that they don't build the C _decimal module. So require that module in the most likely tests to time out then. Flying mostly blind, though!
* gh-118750: Asymptotically faster `int(string)` (#118751)Tim Peters2024-05-193-33/+479
| | | | | | | | | | | | | | | Asymptotically faster (O(n log n)) str->int for very large strings, leveraging the faster multiplication scheme in the C-coded `_decimal` when available. This is used instead of the current Karatsuba-limited method starting at 2 million digits. Lots of opportunity remains for fine-tuning. Good targets include changing BYTELIM, and possibly changing the internal output base (from 256 to a higher number of bytes). Doing this was substantial work, and many of the new lines are actually comments giving correctness proofs. The obvious approaches sticking to integers were too slow to be useful, so this is doing variable-precision decimal floating-point arithmetic. Much faster, but worst-possible rounding errors have to be wholly accounted for, using as little precision as possible. Special thanks to Serhiy Storchaka for asking many good questions in his code reviews! Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: sstandre <43125375+sstandre@users.noreply.github.com> Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
* GH-118447: Fix handling of unreadable symlinks in `os.path.realpath()` (#118489)Barney Gale2024-05-183-13/+32
| | | Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
* gh-119050: Add type hints to libregrtest/results.py (#119144)Victor Stinner2024-05-181-6/+6
| | | Sort also 'omitted' in TestResults.display_result().
* gh-119132: Update sys.version to identify free-threaded or not. (gh-119134)Donghee Na2024-05-183-11/+24
|
* docs: make mimalloc license text literal (#119046)Rafael Fontenelle2024-05-181-21/+21
|
* gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (#119140)Victor Stinner2024-05-181-3/+7
|
* gh-119078: Clarify venv tutorial (GH-119129)Nice Zombies2024-05-181-4/+4
|
* Minor improvements to the docs for itertools.tee() (gh-119135)Raymond Hettinger2024-05-181-10/+11
|
* gh-119049: Defer `import warnings` in `pathlib._local` (#119111)Kirill Podoprigora2024-05-171-1/+1
|
* gh-112066: Fix versionadded in PyDict_SetDefaultRef docs (#118696)Lysandros Nikolaou2024-05-171-0/+1
|
* Fix typos in documentation (#119092)Xie Yanbo2024-05-1710-15/+15
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Improve `pyrepl` type-annotation coverage (#119081)Alex Waygood2024-05-176-14/+31
|
* gh-119049: Fix incorrect display of warning which is constructed by C API ↵Kirill Podoprigora2024-05-164-4/+57
| | | | | | | (GH-119063) The source line was not displayed if the warnings module had not yet been imported.
* GH-118943: Fix a race condition when generating jit_stencils.h (GH-118957)Brandt Bucher2024-05-162-7/+15
|
* Explain how to install LLVM on Fedora (GH-118983)Miro Hrončok2024-05-161-0/+6
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-108267: Fix object.__setattr__ regression in dataclasses docs (#119082)Shantanu2024-05-161-1/+2
|
* Add Tkinter tests for different events (GH-118778)Serhiy Storchaka2024-05-161-0/+278
|
* gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065)Serhiy Storchaka2024-05-1619-127/+115
|
* Fix typos in test_buffer.py and update numpy issue links (#118963)Wulian2332024-05-161-6/+6
|