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's unpacking and builtin data types very useful. I
prefer it a lot to over-object-oriented-programming.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to