Skip to content

[pull] main from python:main - #1516

Merged
pull[bot] merged 14 commits into
tj-python:mainfrom
python:main
Sep 24, 2026
Merged

pull[bot] merged 14 commits into
tj-python:mainfrom
python:main

Conversation

@pull

@pull pull Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

StanFromIreland and others added 14 commits September 24, 2026 15:41
Keep 4 variables in the stable ABI:

* Py_FileSystemDefaultEncodeErrors
* Py_FileSystemDefaultEncoding
* Py_HasFileSystemDefaultEncoding
* Py_UTF8Mode

Mark the 4 variables as ABI only in Misc/stable_abi.toml.
* tachyon oracle

* news

* news in tools, not library

* subprocess.DEVNULL

* validate args.run

* do not sample past deadline

* show raw_tvd

* do not loop forever

* comment on the limitation

* docstring

* simple gen testing

* test all classifiers

* better no lineno

* test both ways

* merge test_classify_gen

* time.perf_counter

* docstring

* -stderr=subprocess.DEVNULL,
…ew REPL (#153389)

* gh-152907: Restore cooked output flags around the input hook in the new REPL

pyrepl clears OPOST for its own cursor rendering but calls PyOS_InputHook
from inside the raw-mode read loop, so output written by an input hook
(GUI toolkit event loops, and any warning/traceback/print they emit) is
emitted with bare '\n' and no '\r'.  Restore the terminal's saved output
flags around the hook call and re-enter raw mode afterwards; only oflag is
toggled so ECHO/ICANON stay off at the prompt.

* Skip the input-hook test on platforms without pty devices

The Emscripten buildbot has the pty module but no pty devices, so
pty.openpty() raises OSError("out of pty devices").  Guard the test
class the same way Lib/test/test_pty.py does.

* Propagate the input hook's return value and drop the sleep from the test

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Trim comments

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Observe the hook's output synchronously instead of via the reader thread

The reader thread no longer feeds any assertion: the hook drains the pty
master itself, so the check is an exact comparison. A drainer is still
needed for restore(), which writes before switching modes.

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…ofiler (#157648)

* gh-157639: Fix use-after-free when an external timer re-enters the profiler

* Suppress the cProfile link in the NEWS entry

* Add braces around the external timer guards, per PEP 7

* Simplify the external timer test setup

* Do not call the external timer while deallocating the profiler
* Docs/howto/remote_debugging: Give non-sudo suggestions first

sudo is much too powerful and unnecessary for debugging your own
processes. Start with guidance on how to opt into being debugged without
the use of sudo, and clarify that sudo and equivalent options like
CAP_SYS_PTRACE are giant hammers, but leave the sudo option documented
in case you're having trouble getting something else working.

* Document seccomp=unconfined; make the Mac commands shorter

* gh-139139: Clarify remote debugging permission guidance

---------

Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
)

* gh-153569: move tokenizer input state and relocation into the reader

* gh-153569: borrow diagnostic lines through the source API

* gh-153569: group indentation and logical-line state

* gh-153569: remove unused tokenizer cursor and source lookup APIs

* gh-153569: report tokenizer diagnostics without rewinding the scanner

* gh-153569: use tokenizer views and remove obsolete API remnants
* Move pegen grammar analysis into its own module

* Record pegen helper rule kinds explicitly

* Introduce immutable C parser data and separate lowering

* Add C emitters with local rule and output state

* Route C generation through the prepared parser model

* Fix pegen import formatting for lint

* Preserve and test shared-prefix preparation after rebase
* gh-145868: Suggest names on typos in `__future__` imports

* Address review

* Address review

* gh-145868: Suggest only valid future features

---------

Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
…ctor` module (#154344)

* Use _colorize.get_colors() to allow disabling ANSI escape codes through environment variables

* add news entry

* use get_colors() instead of ANSIColors enum also in Lib/profiling/sampling/sample.py

* fix data_lines collection of pstats lines for no-color mode

* preserve lazy import of _colorize

* gh-154335: Cover profiler color policy and update NEWS

---------

Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
@pull pull Bot locked and limited conversation to collaborators Sep 24, 2026
@pull pull Bot added the ⤵️ pull label Sep 24, 2026
@pull
pull Bot merged commit 69f98a5 into tj-python:main Sep 24, 2026
31 of 32 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants