class newList(list): def clear(self): self[:] = [] is one way. HTH
Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list
class newList(list): def clear(self): self[:] = [] is one way. HTH
Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list