Clearing memory (namespace) before running code
steve at holdenweb.com
Sun Mar 21 16:13:44 CET 2010
> Is there a way to erase/delete/clear memory before a piece of code is
> Otherwise, the objects of the previous run are re-usable, and may
> bring confusion to the tester.
> Thank you
You mean clear a *namespace*?
That might be possible if you have access to the specific module whose
namespace you want to clear.
I presume this is related to earlier questions about reloading modules?
This is yet another reason why you might want to consider running each
module in its own process each time the user submits it.
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/
More information about the Python-list