Why does IDLE use a subprocess?

Chris Angelico rosuav at gmail.com
Tue May 30 18:32:42 EDT 2023


On Wed, 31 May 2023 at 08:16, Barry <barry at barrys-emacs.org> wrote:
> I don’t think it security but robustness that needs the subprocess.
>
> Also if your code use tk then it would conflict with idle’s use of tk.
>

>From my memory, it's precisely this - it's much MUCH easier to allow
you to use Tk in your own program without conflicting with Idle's own
use of it. I'm sure it would be possible to make everything work in
one process, but the cost of doing so would be greater than the costs
of juggling two processes.

ChrisA


More information about the Python-list mailing list