cpython/Lib/_pyrepl
Łukasz Langa 591019e1f2
[3.14] gh-124621: Emscripten: Support pyrepl in browser (GH-136931) (GH-136988)
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.
(cherry picked from commit c933a6bb32)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Éric <merwok@netwok.org>
2025-07-22 15:04:11 +02:00
..
__init__.py
__main__.py
_module_completer.py [3.14] gh-69605: Disable PyREPL module autocomplete fallback on regular completion (gh-134181) (gh-134680) 2025-05-25 23:33:02 +00:00
_threading_handler.py
base_eventqueue.py [3.14] Bump mypy to 1.16.1 (GH-135720) (#135848) 2025-06-23 13:09:24 +00:00
commands.py [3.14] GH-130328: Speedup pasting in legacy console on Windows (gh-133728) (#134653) 2025-05-25 15:54:28 +02:00
completing_reader.py gh-69605: Add module autocomplete to PyREPL (#129329) 2025-04-25 02:24:26 +01:00
console.py
fancy_termios.py
historical_reader.py
input.py
keymap.py
main.py [3.14] gh-127960 Fix the REPL to set the correct namespace by setting the correct __main__ module (gh-134275) (gh-134473) 2025-05-22 03:33:35 +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
reader.py gh-133346: Make theming support in _colorize extensible (GH-133347) 2025-05-05 23:45:25 +02:00
readline.py [3.14] gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available. (GH-131201) (GH-136668) 2025-07-15 10:12:45 +02:00
simple_interact.py [3.14] gh-128066: Properly handle history file writes for RO fs on PyREPL (gh-134380) (gh-134385) 2025-05-20 22:15:23 +02:00
terminfo.py [3.14] gh-135621: Simplify TermInfo (GH-136916) (#136925) 2025-07-21 18:04:13 +02:00
trace.py [3.14] gh-124621: Emscripten: Support pyrepl in browser (GH-136931) (GH-136988) 2025-07-22 15:04:11 +02:00
types.py
unix_console.py [3.14] gh-135621: Remove dependency on curses from PyREPL (GH-136758) (GH-136915) 2025-07-21 13:02:41 +02:00
unix_eventqueue.py [3.14] gh-135621: Remove dependency on curses from PyREPL (GH-136758) (GH-136915) 2025-07-21 13:02:41 +02:00
utils.py [3.14] gh-136801: Fix PyREPL syntax highlightning on match cases after multi-line case (GH-136804) (GH-136813) 2025-07-19 15:56:40 +02:00
windows_console.py [3.14] GH-130328: Speedup pasting in legacy console on Windows (gh-133728) (#134653) 2025-05-25 15:54:28 +02:00
windows_eventqueue.py