-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Like other people in pyodide/pyodide#1219 I'm trying to port an educational platform (http://futurecoder.io/) to pyodide and want to get input() working nicely. So I'm trying to understand this code to see if it's a solution. It looks very cool, but I don't get it.
The README definitely needs updating, since ResumableException.resume() doesn't exist.
console_async.html doesn't work when I run it because it can't find pyodide.js and I don't know what I'm supposed to do about that. I also can't understand what's going on just by looking at the code.
Can you provide a small example Python script with threads or something that shows stopping and resuming? I can run test.py but I can't see what to do with it.
Am I right that this is incompatible with sys.settrace()? Part of the motivation for all this is debuggers like pdb (pyodide/pyodide#550) and in my use case there's also another debugger that uses settrace but no interaction with stdin. Seems that when I start pdb the interrupts stop because I don't see TP printed any more.