On Fri, May 2, 2008 at 11:12 AM, Bryan Fodness <[EMAIL PROTECTED]> wrote:
> I am trying to figure out the best way to get external data.

1. Put the data in a Python module and import it
2. Put the data in a .ini file and read it with the ConfigParser
module http://docs.python.org/lib/module-ConfigParser.html

> If I have a long list of 'variable' = 'value', could this be better managed 
> in a dictionary?

Possibly. When you have a list of variables you are trying to create
by name, a dictionary is definitely suggested.

Kent
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to