PythonWin: any way to delete all objects without exiting and without doing it with "del"?

dananrg at dananrg at
Thu Mar 2 10:54:28 CET 2006

> PythonWin is just an IDE. For what reason you have to delete all objects by
> yourself? Garbage collector is there for that :)

I think the garbage collector is on strike. :-)


# 1st execution
a = [1,2,3]
print a

>>> [1,2.3]

program ends.

Then I comment out a = [1,2,3] and run the program:

# 2nd execution
# a = [1,2,3]
print a

>>> [1,2,3]

Same result. Why? I know that's not a great example, but it was giving
me grief in the debugging process while using the ODBC module. I'd
really rather not have to exit out of PythonWin each time I want to
clear out all the objects I created during a script, and then
subsequently comment out for future executions of a script for
debugging, if that makes any sense.

More information about the Python-list mailing list