[Tutor] Arguments ina separate file

2008-04-21 Thread Sanhita Mallick
Hi.

I have a big list of arguments, which I would like to
keep in a  separate file. How do I pass arguments that
are in a  separate file?

Thanks.
San
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Arguments ina separate file

2008-04-21 Thread Tim Michelsen
 I have a big list of arguments, which I would like to
 keep in a  separate file. How do I pass arguments that
 are in a  separate file?
do you mean like setting?

do something like this
write them in the file myargs.py


import myargs

call_my_function(myargs.argument1, myargs.argument2)

see also my recent thread on settings called
setting program configuration for all files and modules of a program

Regards,
Timmie

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Arguments ina separate file

2008-04-21 Thread linuxian iandsd

 import myargs


this one is clever
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor