Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Since you didn't get an expert answer, I'm offering my learning from working on a similar problem. Python have issues with <a href="http://docs.python.org/release/1.5.2/api/initialization.html" rel="nofollow noreferrer">reinitialization support</a>. This is unfortunate if you need to restart the interpreter due to some error, or want to run many independent interpreters.</p> <p>One issue there is leaking resources and memory (quoting from the above link):</p> <blockquote> <p>Bugs and caveats: Dynamically loaded extension modules loaded by Python are not unloaded. Small amounts of memory allocated by the Python interpreter may not be freed (if you find a leak, please report it). Memory tied up in circular references between objects is not freed. Some memory allocated by extension modules may not be freed. Some extensions may not work properly if their initialization routine is called more than once; this can happen if an application calls Py_Initialize() and Py_Finalize() more than once.</p> </blockquote> <p>Another issue is many modules don't support this properly, as can be seen for example <a href="https://stackoverflow.com/questions/7754577/how-to-reinitialise-an-embedded-python-interpreter">in this SO thread</a>. <strong>I think this is the problem you're facing.</strong></p> <p>It seems that most Python applications work-around this problem:</p> <ul> <li>by having the engine run in a dedicated process ;</li> <li>by using <a href="http://docs.python.org/c-api/init.html#sub-interpreter-support" rel="nofollow noreferrer">subinterpreters</a> which represent distinct execution states (of a common interpreter)</li> </ul> <p>If the second one works for you, go ahead with it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload