title: When to use cleanup() in Jython
body: <p>Is it necessary to call <code>cleanup()</code> before <code>close()</code> in a <code>PythonInterpreter</code> in Jython every time?</p>
  <p>I've been reading the docs, but I don't find much information about this function. The <a href="https://www.javadoc.io/doc/org.python/jython-standalone/latest/org/python/util/PythonInterpreter.html" rel="nofollow noreferrer">javadocs</a> don't say anything at all. The closest information I've found is <a href="https://jython.readthedocs.io/en/latest/Concurrency/?highlight=cleanup" rel="nofollow noreferrer">here, in readthedocs</a>, where they explain that a cleanup is necessary in some cases programming with threads, and I'm not even sure they refer to this particular function.</p>
  <p>I wonder when I need to call <code>cleanup()</code>... and if the answer is always, then why would they make <code>cleanup()</code> and <code>close()</code> separate functions?</p>