Deleting objects

Terry Reedy tjreedy at udel.edu
Tue Jan 27 00:26:56 CET 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