#define equivalents and config files
Gillou
nospam at bigfoot.com
Tue Mar 19 07:00:40 EST 2002
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.
"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