On Mar 21, 5:18 pm, Jon Clements <jon...@googlemail.com> wrote: > On 21 Mar, 15:02, vsoler <vicente.so...@gmail.com> wrote: > > > Hi, > > > Is there a way to erase/delete/clear memory before a piece of code is > > run? > > > Otherwise, the objects of the previous run are re-usable, and may > > bring confusion to the tester. > > > Thank you > > 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 > interactively afterwards. > > hth > > Jon.
Hello Jon, I'm using PythonWin and there is no Shell menu option. And yes, I am using python interactively. Perhaps it is simply impossible to delete all the attributes of a namespace in a single shot? -- http://mail.python.org/mailman/listinfo/python-list