RE: Help needed: dynamically pull data from different levels of a dict

2012-03-01 Thread Peter Rubenstein
Thanks, Chris. That's the algorithm I was looking for. And I will be converting most of this data to objects. Thanks again. -Original Message- From: Chris Rebert [mailto:c...@rebertia.com] Sent: Wednesday, February 29, 2012 11:44 PM Subject: Re: Help needed: dynamically pull

Re: Help needed: dynamically pull data from different levels of a dict

2012-02-29 Thread Terry Reedy
On 2/29/2012 11:04 PM, Peter Rubenstein wrote: I'd appreciate a bit of help on this problem. I have some data that I've converted to a dict and I want to pull out individual pieces of it. Simplified version-- a={'1':'a', '2':'b', '3':{4:'d'}, '5':{'6': {'7': [ {'8':'e'}, {'9':'f'} ] } } } I'

Re: Help needed: dynamically pull data from different levels of a dict

2012-02-29 Thread Chris Rebert
On Wed, Feb 29, 2012 at 7:56 PM, Peter Rubenstein wrote: > Hi, > > I'd appreciate a bit of help on this problem.  I have some data that I've > converted to a dict and I want to pull out individual pieces of it. > > Simplified version-- > > a={'1':'a', '2':'b', '3':{4:'d'}, '5':{'6': {'7': [ {'8':'

Re: Help needed: dynamically pull data from different levels of a dict

2012-02-29 Thread Peter Rubenstein
--Reposting in plan text, apologies-- Hi, I'd appreciate a bit of help on this problem.  I have some data that I've converted to a dict and I want to pull out individual pieces of it. Simplified version-- a={'1':'a', '2':'b', '3':{4:'d'}, '5':{'6': {'7': [ {'8':'e'}, {'9':'f'} ] } } } I'd lik