#define equivalents and config files

Dave Swegen dswegen at software.plasmon.com
Tue Mar 19 07:51:47 EST 2002


On Tue, Mar 19, 2002 at 01:00:40PM +0100, Gillou wrote:
> There's no python preprocessor.
> You can make "safe" config files for simple values (numbers, strings, simple
> lists) with the ConfigParser standard package.
> It's use and API are described in the standard Python doc.
> 

That looks exactly like what I'm looking for. Cheers!

Dave

> "Dave Swegen" <dswegen at software.plasmon.com> a écrit dans le message news:
> mailman.1016530410.32451.python-list at python.org...
> > Is there a pythonic way of doing something similiar to Cs #define? I'd
> > like to have what essentially is a header files with easily modifiable
> > values (these will then be used to give default attribute values to
> > various classes). Or are globals the only way to go?
> >
> > Cheers
> > Dave
> >




More information about the Python-list mailing list