On Thu, 7 May 2020 at 01:34, Cameron Simpson <[email protected]> wrote:

> Maybe I'm missing something, but the example that comes to my mind is
> embedding a Python interpreter in an existing nonPython programme.
>
> My pet one-day-in-the-future example is mutt, whose macro language is...
> crude.  And mutt is single threaded.
>
> However, it is easy to envisage a monolithic multithreaded programme
> which has use for Python subinterpreters to work on the larger
> programme's in-memory data structures.
>
> I haven't a real world example to hand, but that is the architectural
> situation where I'd consider multiprocessing to be inappropriate or
> infeasible because the target data are all in the one memory space.

Vim would be a very good example of this. Vim has Python interpreter
support, but multiprocessing would not be viable as you say. And from
my recollection, experiments with threading didn't end well when I
tried them :-)

Paul
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/X33AUGHKJFOP2AMNQFM7ES6IRDPTSMNO/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to