cpython/Lib/_pyrepl
Hood Chatham c933a6bb32
gh-124621: Emscripten: Support pyrepl in browser (GH-136931)
Basic support for pyrepl in Emscripten. Limitations:
* requires JSPI
* no signal handling implemented

As followup work, it would be nice to implement a webworker variant
for when JSPI is not available and proper signal handling.

Because it requires JSPI, it doesn't work in Safari. Firefox requires
setting an experimental flag. All the Chromiums have full support since
May. Until we make it work without JSPI, let's keep the original web_example
around.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Éric <merwok@netwok.org>
2025-07-22 12:13:38 +02:00
..
__init__.py
__main__.py gh-129098: avoid using content of _pyrepl/__main__.py when reporting tracebacks (#130721) 2025-04-20 18:24:30 +01:00
_module_completer.py gh-69605: Disable PyREPL module autocomplete fallback on regular completion (gh-134181) 2025-05-26 01:05:08 +02:00
_threading_handler.py gh-120221: Support KeyboardInterrupt in asyncio REPL (#123795) 2024-09-06 21:28:29 +02:00
base_eventqueue.py Bump mypy to 1.16.1 (#135720) 2025-06-23 15:29:30 +03:00
commands.py GH-130328: Speedup pasting in legacy console on Windows (gh-133728) 2025-05-25 15:17:43 +02:00
completing_reader.py gh-69605: Add module autocomplete to PyREPL (#129329) 2025-04-25 02:24:26 +01:00
console.py gh-72327: Suggest using system terminal for pip install in PyREPL (#136328) 2025-07-15 14:25:07 +00:00
fancy_termios.py gh-128330: Terminal control characters should be restored on repl exit (#128331) 2025-01-23 17:30:08 +00:00
historical_reader.py gh-123024: Correctly prepare/restore around help and show-history commands (#124485) 2025-01-21 21:04:30 +00:00
input.py Improve pyrepl type-annotation coverage (#119081) 2024-05-17 06:13:24 -04:00
keymap.py Remove almost all unpaired backticks in docstrings (#119231) 2024-05-22 12:35:18 -04:00
main.py gh-127960 Fix the REPL to set the correct namespace by setting the correct __main__ module (gh-134275) 2025-05-22 02:18:00 +02:00
mypy.ini gh-131507: Add support for syntax highlighting in PyREPL (GH-133247) 2025-05-02 20:22:31 +02:00
pager.py Support the "pager" binary in _pyrepl (#122878) 2024-09-19 13:18:24 +00:00
reader.py gh-133346: Make theming support in _colorize extensible (GH-133347) 2025-05-05 23:45:25 +02:00
readline.py gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available. (GH-131201) 2025-07-15 09:44:31 +02:00
simple_interact.py gh-128066: Properly handle history file writes for RO fs on PyREPL (gh-134380) 2025-05-20 21:47:57 +02:00
terminfo.py gh-135621: Simplify TermInfo (GH-136916) 2025-07-21 13:06:42 +02:00
trace.py gh-124621: Emscripten: Support pyrepl in browser (GH-136931) 2025-07-22 12:13:38 +02:00
types.py gh-131507: Refactor screen and cursor position calculations (GH-131547) 2025-03-21 18:27:35 +01:00
unix_console.py gh-135621: Remove dependency on curses from PyREPL (GH-136758) 2025-07-21 11:57:34 +02:00
unix_eventqueue.py gh-135621: Remove dependency on curses from PyREPL (GH-136758) 2025-07-21 11:57:34 +02:00
utils.py gh-136801: Fix PyREPL syntax highlightning on match cases after multi-line case (GH-136804) 2025-07-19 15:15:49 +02:00
windows_console.py GH-130328: Speedup pasting in legacy console on Windows (gh-133728) 2025-05-25 15:17:43 +02:00
windows_eventqueue.py gh-124096: Enable REPL virtual terminal support on Windows (#124119) 2025-02-23 20:30:33 +01:00