subclassing list

Fuzzyman fuzzyman at gmail.com
Thu Dec 23 09:42:32 EST 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