summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-111201: Remove readline dependency from the PyREPL (#119262)Lysandros Nikolaou2024-05-213-3/+3
|
* gh-90562: Mention slots pitfall in dataclass docs (#107391)Josh Cannon2024-05-211-1/+4
| | | | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-119189: Add yet more tests for mixed Fraction arithmetic (GH-119298)Serhiy Storchaka2024-05-211-3/+32
|
* Fix typos in documentation (#119295)Xie Yanbo2024-05-217-9/+9
|
* gh-111389: Add PyHASH_MULTIPLIER constant (#119214)Victor Stinner2024-05-217-7/+16
|
* gh-117657: Fix itertools.count thread safety (#119268)Arnon Yaari2024-05-213-11/+54
| | | Fix itertools.count in free-threading mode
* gh-109176: replace _PyFrame_OpAlreadyRan by an assertion that the frame is ↵Irit Katriel2024-05-211-33/+2
| | | | complete. (#119234)
* gh-119306: Break up _pyrepl tests (#119307)Eugene Triguba2024-05-2111-1490/+1517
|
* gh-113978: Ignore warnings on text completion inside REPL (#113979)Yan Yanchii2024-05-212-4/+7
|
* GH-110383: Improve Tutorial for Input Ouput (#119230)Blaise Pabon2024-05-211-4/+16
| | | | Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
* gh-110383: Document `socket.makefile()` accepts combined modes (#119150)Daniel Williams2024-05-212-2/+4
| | | The supported mode values are 'r', 'w', and 'b', or a combination of those.
* gh-119035: Add Ctrl+← and Ctrl+→ word-skipping keybindings to new repl ↵Alastair Stanley2024-05-212-3/+8
| | | | | (#119248) add word-skipping ctrl keybindings to new repl
* GH-119292: Add job to JIT CI to build and test with --disable-gil (GH-119293)Savannah Ostrowski2024-05-211-0/+18
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-119053: Implement the fast path for list.__getitem__ (gh-119112)Donghee Na2024-05-211-5/+10
|
* gh-119102: Fix REPL for dumb terminal (#119269)Victor Stinner2024-05-211-1/+2
| | | | Use CAN_USE_PYREPL of _pyrepl.__main__ in the site module to decide if _pyrepl.write_history_file() can be used.
* Use `fail-fast: false` in `mypy.yml` (#119297)Nikita Sobolev2024-05-211-0/+1
| | | See docs about this setting: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast
* gh-74929: PEP 667 general docs update (gh-119201)Alyssa Coghlan2024-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)
* gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows ↵Wulian2332024-05-215-11/+26
| | | | | | blurry (#119175) ------ Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-102136: Add -m to options that work with -i (GH-119271)Melanie Arbor2024-05-201-3/+9
| | | | | * GH-102136: Add -m to options that work with -i * Linting
* gh-108267 Fix another dataclasses docs typo (#119277)Alex Waygood2024-05-201-1/+2
|
* gh-111201: Add tests for unix console class in pyrepl (#118653)Lysandros Nikolaou2024-05-201-2/+290
|
* 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>