Problem of Readability of Python

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Mon Oct 8 13:15:34 CEST 2007


Brian Elmegaard a écrit :
> Bruno Desthuilliers <bruno.42.desthuilliers at wtf.websiteburo.oops.com>
> 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.




More information about the Python-list mailing list