I'd like to have an array in which the elements are various data types. 
How do I do this in Python?  

For example:

array[0].artist = 'genesis'
array[0].album = 'foxtrot'
array[0].songs = ['watcher', 'time table', 'friday']
array[1].artist = 'beatles'
array[1].album = 'abbey road'
array[1].songs = ['come', 'something', 'maxwell']
        
Everything I try generates errors or results in array[0].songs equaling 
array[1].songs. I feel I'm missing something obvious.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to