On Thursday, February 11, 2016 at 6:16:35 PM UTC, jmp wrote:
> On 02/11/2016 07:07 PM, ltomassm...@gmail.com wrote:
> > I thought a dictionary would be a good idea because of the key restrictions 
> > ensuring no duplicates, so the data would always update - However because 
> > they are unordered and I need to do some more processing on the data 
> > afterwards I'm having trouble.
> 
> If it's your only concern about using dictionaries, then you may have a 
> look  at 
> https://docs.python.org/2/library/collections.html#collections.OrderedDict
> 
> JM

I did look into that but I'm trying to do something like this which doesn't 
work - I guess I'm struggling a little with the implementation.
fillinfo = {}
fillInfo['name'] = OrderedDict('info1','info2','info3','info4','info5',)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to