using names before they're defined

Bruno Desthuilliers onurb at xiludom.gro
Thu Jul 27 09:35:07 EDT 2006


davehowey at f2s.com wrote:
>>>do you mean 'configparser'?
>>
>>Yes.
>>
>>
>>>Does it generate objects from the config file automatically?
>>
>>It generates a representation of the config file as a Python object
>>composed of sections and options. The documentation should get you started.
> 
> 
> Hiya, you might be interested in this alternative config parsing
> program:
> http://www.voidspace.org.uk/python/configobj.html

Yes, I know it. But I don't like it. Either a simple ini file do the
trick, or I need a full blown app-specific DSL - which can be as simple
as a Python file with dicts, lists, etc !-)

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list