[pull] main from python:main - #1516
Merged
Merged
Conversation
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
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )