Re: Building and accessing an array of dictionaries

2014-01-17 Thread Grant Edwards
On 2014-01-16, Mark Lawrence wrote: > On 16/01/2014 09:48, Chris Angelico wrote: >> On Thu, Jan 16, 2014 at 8:41 PM, Sam wrote: >>> I would like to build an array of dictionaries. Most of the dictionary >>> example on the net are for single dictionary. >>> >>> dict = {'a':'a','b':'b','c':'c'} >>

Re: Building and accessing an array of dictionaries

2014-01-16 Thread Mark Lawrence
On 16/01/2014 09:48, Chris Angelico wrote: On Thu, Jan 16, 2014 at 8:41 PM, Sam wrote: I would like to build an array of dictionaries. Most of the dictionary example on the net are for single dictionary. dict = {'a':'a','b':'b','c':'c'} dict2 = {'a':'a','b':'b','c':'c'} dict3 = {'a':'a','b':'

Re: Building and accessing an array of dictionaries

2014-01-16 Thread Jean-Michel Pichavant
- Original Message - > I would like to build an array of dictionaries. Most of the > dictionary example on the net are for single dictionary. > > dict = {'a':'a','b':'b','c':'c'} > dict2 = {'a':'a','b':'b','c':'c'} > dict3 = {'a':'a','b':'b','c':'c'} > > arr = (dict,dict2,dict3) > > What

Re: Building and accessing an array of dictionaries

2014-01-16 Thread Jussi Piitulainen
Sam writes: > I would like to build an array of dictionaries. Most of the > dictionary example on the net are for single dictionary. > > dict = {'a':'a','b':'b','c':'c'} > dict2 = {'a':'a','b':'b','c':'c'} > dict3 = {'a':'a','b':'b','c':'c'} > > arr = (dict,dict2,dict3) > > What is the syntax t

Re: Building and accessing an array of dictionaries

2014-01-16 Thread Chris Angelico
On Thu, Jan 16, 2014 at 8:41 PM, Sam wrote: > I would like to build an array of dictionaries. Most of the dictionary > example on the net are for single dictionary. > > dict = {'a':'a','b':'b','c':'c'} > dict2 = {'a':'a','b':'b','c':'c'} > dict3 = {'a':'a','b':'b','c':'c'} > > arr = (dict,dict2,d

Building and accessing an array of dictionaries

2014-01-16 Thread Sam
I would like to build an array of dictionaries. Most of the dictionary example on the net are for single dictionary. dict = {'a':'a','b':'b','c':'c'} dict2 = {'a':'a','b':'b','c':'c'} dict3 = {'a':'a','b':'b','c':'c'} arr = (dict,dict2,dict3) What is the syntax to access the value of dict3->'a'