Hi,
I think that tuples are the best and simplest approach for small
structures.
>>> songs = [("Paranoid", "http://...";), ("Christian Woman", "http://...";)]
>>> for title, url in songs:
... print "%s: %s" % (title, url)
...
Paranoid: http://...
Christian Woman: http://...
I think that python'
metaperl wrote:
> The above program started out as a list of dictionaries, but I
> like the current approach much better.
There is even a common idiom for this...
class Record(object):
def __init__(self, **kwargs):
self.__dict__.update(kwargs)
This way you can use
user