Open GoogleCodeExporter opened 8 years ago
One solution to this, that wouldn't block the browser whilst Python code is
being
executed, would be to execute the code on a background thread.
This would enable us to interrupt running code with a ctrl-c as well.
It introduces complexity in handling of new input whilst code is still running.
An additional detail is that output to stdout from a background thread needs to
be
invoked onto the UI thread. THis can be done inside the 'write' method of the
mock
stdout.
Original comment by fuzzyman
on 15 Jun 2008 at 1:43
Another advantage is that executing Python code wouldn't block the browser -
which
would be nice.
Original comment by fuzzyman
on 17 Jun 2008 at 4:45
Original issue reported on code.google.com by
fuzzyman
on 15 Jun 2008 at 12:46