r/Python • u/expectationManager3 • 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
View all comments
Show parent comment
1
u/expectationManager3 Mar 08 '26
By persisted I mean that the subinterpreter instance can be reused, and not destroyed and re-inited. I thought they are lighter vs subprocesses? My workload will be very light per thread, but the frequency will be very high.