[Python-ideas] In-process interpreters
tlesher at gmail.com
Thu Nov 18 10:08:04 CET 2010
2010/11/18 Kristján Valur Jónsson <kristjan at ccpgames.com>:
> This is one of the things I’d have liked to see as part of py3k: “fixing”
> python for embedding in applications and defices.
My current work project has similar issues (also an embedded Python on
embedded hardware). We've examined Py_Initialize()/Py_Finalize()
pairing, subinterpreters, and out-of-proc interpreters, and are in the
I believe one of the main difficulties will be doing it in a way that
doesn't penalize the 99% use case that most of the Python world
experiences (one interpreter/one process, named python). That's been,
for example, the fatal issue with most of the efforts to eliminate the
global interpreter lock.
It doesn't matter how nice it makes life for us if it causes
performance or other headaches for the vast majority of Python users.
Tim Lesher <tlesher at gmail.com>
More information about the Python-ideas