This is an old revision of the document!
As python has a garbage collector, you have to make sure to pass on all objects that you want to keep. For example canvases.
The following macro will produce 10 empty canvases and delete them in the end.
from ROOT import * import ROOT for i in range(0,10): canv = TCanvas("canv"+str(i))