<p>Twisted has some feature like that implemented using pickles or some thing. It meant to save the state of the program during restart. I am not sure if that's what you are after. <a href="http://twistedmatrix.com">http://twistedmatrix.com</a></p>
<div class="gmail_quote">On 17 Sep 2011 20:44, "Albert Zeyer" <<a href="mailto:albzey@googlemail.com">albzey@googlemail.com</a>> wrote:<br type="attribution">> Hi,<br>> <br>> I was thinking about a persistent Python interpreter system. I.e. you<br>
> start a Python interpreter instance and you load and create all your<br>> objects, classes and code in there (or load it in there from other<br>> files).<br>> <br>> The basic idea is that you wont restart your Python script, you would<br>
> always modify it on-the-fly. Or a bit less extreme: You would at least<br>> have the possibility with this to do this (like just doing minor<br>> changes). Also, if your PC halts for whatever reason, you can continue<br>
> your Python script after a restart.<br>> <br>> This goes along my other recent proposal to store the AST of<br>> statements in the related code objects<br>> (<a href="http://thread.gmane.org/gmane.comp.python.devel/126754">http://thread.gmane.org/gmane.comp.python.devel/126754</a>). An internal<br>
> editor could then edit this AST and recompile the code object.<br>> <br>> For the persistance, there would be an image file containing all the<br>> Python objects.<br>> <br>> All in all, much like most Smalltalk systems.<br>
> <br>> ---<br>> <br>> Has anyone done something like this already?<br>> <br>> ---<br>> <br>> There are a few implementation details which are not trivial and there<br>> doesn't seem to be straight forward solutions, e.g. most generally:<br>
> <br>> * How to implement the persistance?<br>> * How to handle image compatibility between CPython updates? Even possible?<br>> <br>> Regards,<br>> Albert<br>> _______________________________________________<br>
> Python-Dev mailing list<br>> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>> <a href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/godson.g%40gmail.com">http://mail.python.org/mailman/options/python-dev/godson.g%40gmail.com</a><br></div>