|| at Mar 21, 2010 at 3:18 pm
On 21 Mar, 15:02, vsoler wrote:
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.
I'm guessing you're using some sort of IDE?
For instance, in IDLE if the [Python Shell] window is not closed, the
session is kept. However, there is a menu option 'Shell' which has
'Restart Shell'. If you don't see a 'Shell' menu option, then make
sure IDLE isn't being started with the -n option.
However I would have thought the 'tester' would be running from a
terminal/command line/double click jobby, so that a single Python
session is executed and just runs -- rather than want to use it