|
|
Subject: Caching Problem - msg#00006
List: lang.jython.user
Dear All,
I am trying to execute a script named MTNL.py from
java using PythonInterpreter()
.The first time it executes properly but henceforward it
caches the file and any changes made to file are not
reflected.
I think it is caching the class file or is there any other
problem.
"This e-mail message may contain confidential,
proprietary or legally privileged information. It should not be used by anyone who is not the
original intended recipient. If you have erroneously received this message, please delete it
immediately and notify the sender. The recipient acknowledges that ICICI Bank or its subsidiaries and associated companies, (collectively "ICICI Group"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail
transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the
sender does so expressly with due authority of ICICI Group.Before opening any attachments please check them for viruses and defects."
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
cachedir trouble
Hi,
Is it somehow possible to deactivate caching of jar/class information? Setting
the python.cachedir property to a unwritable dir creates an error message,
but the interpreter starts. Then when I want to import a java class, it pukes
on me.
So is there some way to let the otherwise saved data stay in memory? I could
live with a first-time-loading delay to build up the cachestructures.
In ouor deploy-system, we might not be able to specify a writable directory.
Related to that, I tried to use jythonc. But looking at the generated code, it
looked as if the source file is still referenced - with an absolute path,
which is indiscussable as our application is developed under windows and
deployed on solaris.
It would be wonderful if someone could shed some light onto these subjects for
me.
Regards,
Diez
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Next Message by Date:
click to view message preview
Compiling
Is it possible to execute a script from java without
creating the temporary class file.
"This e-mail message may contain confidential,
proprietary or legally privileged information. It should not be used by anyone who is not the
original intended recipient. If you have erroneously received this message, please delete it
immediately and notify the sender. The recipient acknowledges that ICICI Bank or its subsidiaries and associated companies, (collectively "ICICI Group"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail
transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the
sender does so expressly with due authority of ICICI Group.Before opening any attachments please check them for viruses and defects."
Previous Message by Thread:
click to view message preview
cachedir trouble
Hi,
Is it somehow possible to deactivate caching of jar/class information? Setting
the python.cachedir property to a unwritable dir creates an error message,
but the interpreter starts. Then when I want to import a java class, it pukes
on me.
So is there some way to let the otherwise saved data stay in memory? I could
live with a first-time-loading delay to build up the cachestructures.
In ouor deploy-system, we might not be able to specify a writable directory.
Related to that, I tried to use jythonc. But looking at the generated code, it
looked as if the source file is still referenced - with an absolute path,
which is indiscussable as our application is developed under windows and
deployed on solaris.
It would be wonderful if someone could shed some light onto these subjects for
me.
Regards,
Diez
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Next Message by Thread:
click to view message preview
Re: Caching Problem
[ DEEPAK PANICKAR ]
> I am trying to execute a script named MTNL.py from
> java using PythonInterpreter()
> .The first time it executes properly but henceforward it
> caches the file and any changes made to file are not
> reflected.
> I think it is caching the class file or is there any other
> problem.
IMHO using PythonInterpreter's execfile() method does not cache the
file, but the interpreter caches the namespace.
So changes to your file MNTL.py should be reflected on the next
execfile() call.
But if MNTL.py imports from another .py file (say utility.py), then
changes to utility.py are NOT immediately visible.
Best wishes,
Oti.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
|
|