Python code persistance

Christopher Myers chris.myers at ingenta.com
Wed Aug 28 17:17:41 CEST 2002


Have you looked into the shelve or pickle module(s)?
It sounds like exactly the solution you're looking for.

I'm not sure how, in your implementation, this would be done, but it's
probably worth a look.

-Chris

Andre Michel Descombes wrote:
> 
> Hi,
> 
> I am using PythonForDelphi to execute some dynamic code coming from a string
> using the Exec function. The problem I have, is this string can be quite
> long and it takes quite a while to compile it everytime in order to call the
> several functions defined within it. Is it at all possible to persist this
> compiled code to disk or database in order to be able to just load it
> (without having to recompile it) the next time the program is run? I don't
> want to save it to a .py file if it can be avoided.
> 
> Thanks for your help,
> 
> Andre M. Descombes

-- 
Christopher Myers, Graduate Software Developer 
Ingenta, Inc.
12 Bassett St.
Providence, RI  02903
ph:  401.331.2014 x 102
em:  chris.myers at ingenta.com
aim: chrismyers001



More information about the Python-list mailing list