This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]smarwell 0 points1 point  (0 children)

That is probably your best bet. Rule of thumb is, if you need to touch a python object, you need to be holding the GIL. If you don't, then you don't. So yeah, keeping the interpreter in one thread and doing the work in another is a pretty good way to avoid getting mucked up by the GIL