*Apologies for text drawings I haven't got a paint app on this machine*
I for one prefer pretty ASCII art
[...]
I have attached an example of how I have been using the data listed
above and any help/advice would be great! Thanks.
how about this:
store_items2 = {'root':
{'subsection1':
{'itemname1':'itemdata1',
'subsection2':
{'itemname2':'itemdata2',
'itemname4':'itemdata4',
'subsection3':
{'itemname3':'itemdata3',
'itemname5':'itemdata5'
}
}
}
}}
with the help of type() you might be able to bypass your problem. simply parse the structure and check if the type of the item is dictionary...
···
On Sun, 20 Feb 2005 00:05:54 +0100, Ed <wxpython@gmail.com> wrote:
Ed
--
Peter Damoc
Warrior Of The Light
http://www.sigmacore.net/