>Date: Fri, 26 Feb 2010 23:42:01 -0600
>From: Nicholas Riley <njriley@...>
>Jython's internals itself should be fine to use from multiple threads.
>There's no way to isolate arbitrary behavior, but if you restrict
>yourself to reading and writing from local variables, then it should be
I tried to check out from Jython sourcecode how everything works, but
was not 100% sure as I had not read and reasoned everything through.
But based on how Python works, what you wrote and what I saw in the
source code, it seems safe to assume that for each function invocation
new local namespace ( public PyObject __dict__ in PyFunction in Jython
) is created and therefore even though functions themselves would be
defined in global namespace and shared between interpreters there
should not be any problems.
Defining variables for calculation and setting result from function
call would be set in new interpreter's local namespace, which is
shallow copy from the original - pre instantiated namespace. These new
names would therefore be local only to that instance.
>Last month I added a thread local option to PythonInterpreter, which you
>might find useful:
Looked really good for similar usecases! Thanks.
Any information on when that code from SVN will be included in a
release, and distributed through some maven repository?
For now I can work with the existing 2.5.1 release, available from
Sakai repository ( http://source.sakaiproject.org/maven2/ )
Thank you Nicholas for your help.
From: Nicholas Riley <njriley@il...> - 2010-02-27 20:36:59
Heimo Laukkanen <huima@...> wrote:
> Any information on when that code from SVN will be included in a
> release, and distributed through some maven repository?
Hopefully in a few weeks - we do plan on doing a 2.5.2 release ASAP.
Nicholas Riley <njriley@...>
Get latest updates about Open Source Projects, Conferences and News.