r/Python • • Mar 08 '26

Discussion Libraries for handling subinterpreters?

Hi there,

Are there any high-level libraries for handling persisted subinterpreters in-process yet?

Specifically, I will load a complex set of classes running within a single persisted subinterpreter, then sending commands to it (via Queue?) from the main interpreter.

8 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/expectationManager3 Mar 09 '26

I see! Thanks for the clarification. I'll take a look at subprocesses first, if they are easier to handle.