Brian Elmegaard a écrit : > Bruno Desthuilliers <[EMAIL PROTECTED]> > writes: > >> Use dicts, not lists or tuples: >> >> a = dict(name='yadda', val=42) >> print a['name'] >> print a['val'] > > I guess you will then need a list or tuple to store the dicts?
Should be a list then IMHO. But then it's the correct use of a list : an homegenous collection. -- http://mail.python.org/mailman/listinfo/python-list