subclassing list

Fuzzyman fuzzyman at gmail.com
Thu Dec 23 15:42:32 CET 2004


class newList(list):
def clear(self):
self[:] = []

is one way.
HTH

Regards,

Fuzzy
http://www.voidspace.org.uk/python/index.shtml




More information about the Python-list mailing list