Deleting objects

Terry Reedy tjreedy at udel.edu
Mon Jan 26 18:26:56 EST 2004


> > for t in db.tables:
> > del t

As Gerrit said, this is equivalent to 'pass'.

db.tables = [] # or
db.tables[:] = [] # or
db.cleartables()

is more likely to work.  But a db.close() method should contain what will
work.

TJR









More information about the Python-list mailing list