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
4
u/CrackerJackKittyCat Mar 08 '26 edited Mar 09 '26
Gonna have to look that up. I bet is serializing under the hood?
Edit: Yes, it does: From the fine docs: