On Feb 3, 2005, at 2:17 AM, Eric Radman wrote:

    I don't think we need a configuration parser in the tree at all. The
    easiest and most flexible solution is to simply import * from a .py
    config file.

I've started doing this a LOT with my various little apps, and I find it immensely useful. I started because I didn't want to take the time to write even a simple parser, but the major benefit turns out to be that I have a a fully functional programing language in my config files. That allows me to do computations, make decisions, read stuff form the file system, etc. -- all right there in the config file.


One major downside I do see is that you need to be sure that you trust the source of the config file, as any code, malicious or incautious, could be run.

-Chris




-- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception

[EMAIL PROTECTED]


------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to