Re: import data structure

2010-01-15 Thread Gary Herron
monkeys paw wrote: I want to store data in a file like show below. Then i want to import the data in, but am having trouble. I'm trying: import sfdata for x in author_list: print x Either import sfdata for x in sfdata.author_list: # Access list as an attribute of the module

import data structure

2010-01-15 Thread monkeys paw
I want to store data in a file like show below. Then i want to import the data in, but am having trouble. I'm trying: import sfdata for x in author_list: print x FILE: sfdata.py (i'm trying to import it) == author_list = { '829337' : {