Re: [Tutor] Inserting one dictionary into another

2009-01-02 Thread spir
On Thu, 01 Jan 2009 11:04:42 -0500 "Keith Reed" wrote: > I'm having trouble assigning a dictionary as a value within another: > > > Code Snippet Start > > for line in fromchild.readlines(): > itemarray = line.strip().split(":") > parent

Re: [Tutor] Inserting one dictionary into another

2009-01-01 Thread Kent Johnson
On Thu, Jan 1, 2009 at 11:04 AM, Keith Reed wrote: > I'm having trouble assigning a dictionary as a value within another: > > > Code Snippet Start > >for line in fromchild.readlines(): >itemarray = line.strip().split(":") >parentdictkey = i

[Tutor] Inserting one dictionary into another

2009-01-01 Thread Keith Reed
I'm having trouble assigning a dictionary as a value within another: Code Snippet Start for line in fromchild.readlines(): itemarray = line.strip().split(":") parentdictkey = itemarray[0] print 'parentdictkey = ' + parentd