subclassing list and adding other variables ?

Gerrit gerrit at nl.linux.org
Thu Mar 11 16:09:09 EST 2004


GrelEns wrote:
> i wonder if this possible to subclass a list or a tuple and add more
> attributes ? also does someone have a link to how well define is own
> iterable object ?

For subclassing builtin types, read:

http://www.python.org/2.2.3/descrintro.html#subclassing

Gerrit.

-- 
Weather in Twenthe, Netherlands 11/03 20:25 UTC:
	2.0°C   wind 2.7 m/s E (57 m above NAP)
-- 
Asperger's Syndrome - a personal approach:
	http://people.nl.linux.org/~gerrit/english/




More information about the Python-list mailing list