Re: question about template system

2009-03-18 Thread Malcolm Tredinnick
On Wed, 2009-03-18 at 17:05 -0400, Alex Gaynor wrote: > > > On Wed, Mar 18, 2009 at 4:49 PM, Jason Wang > wrote: > > Hi all, > > I have a problem where i have a list which stores a bunch of > relevant > key to another dictionary. I want to loop

Re: question about template system

2009-03-18 Thread Alex Gaynor
On Wed, Mar 18, 2009 at 4:49 PM, Jason Wang wrote: > > Hi all, > > I have a problem where i have a list which stores a bunch of relevant > key to another dictionary. I want to loop through the list and print > out the information contained in the keys to output. > > Apparently it doesn't work. >

question about template system

2009-03-18 Thread Jason Wang
Hi all, I have a problem where i have a list which stores a bunch of relevant key to another dictionary. I want to loop through the list and print out the information contained in the keys to output. Apparently it doesn't work. So for example i have the following: lst = ["a", "b"] dic = {"a":1