[Numpy-discussion] Reading automatically all the parameters from a file

Neal Becker ndbecker2 at gmail.com
Wed Nov 30 13:49:34 EST 2011

My suggestion is: don't.

It's easier to script runs if you read parameters from the command line.
I recommend argparse.

Giovanni Plantageneto wrote:

> Dear all,
> I have a simple question. I would like to have all the parameters of a
> model written in a configuration file (text), and I would like to have
> all the parameters in the file automatically defined inside a program.
> I find ConfigParser a bit low level, is there any function that
> automatically reads everything from a file?
> Thanks.

More information about the NumPy-Discussion mailing list