How to create multiple instances of a class?

Mike Meyer mwm at mired.org
Mon Mar 3 12:17:27 EST 2003


"Gilles Lenfant" <glenfant at NOSPAM.bigfoot.com> writes:

> Change the line that inits "nodes" againts this :
> nodes = [None for dummy in range(10)]

How about

        nodes = [None] * 10
?

        <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.




More information about the Python-list mailing list