Multiple instances of modules
Skip Montanaro
skip at pobox.com
Mon Sep 15 11:42:35 EDT 2003
Daniel> For example, say I made a CD.py module which held details of an
Daniel> audio compact dic (album name, track names, etc..), and wanted
Daniel> my Python script to make a record collection using multiple
Daniel> CD's, I can't make them seperately.
You don't want to use modules for this. You need to define a CD class
(perhaps within the CD module) and instantiate it for each album.
Skip
More information about the Python-list
mailing list