Re: Updating python dictionary

2008-09-07 Thread MK Bernard
On Sep 7, 3:37 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Sep 8, 7:51 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Hello... > > > I have a dict of key/values and I want to change the keys in it, based > > on another mapping dictionary. An example follows: > > > MAPPING_DICT = {

Re: Updating python dictionary

2008-09-07 Thread MK Bernard
On Sep 7, 2:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello... > > I have a dict of key/values and I want to change the keys in it, based > on another mapping dictionary. An example follows: > > MAPPING_DICT = { >     'a': 'A', >     'b': 'B', > > } > > my_dict = { >     'a': '1', >