From: Nicola L. <ni...@te...> - 2005-11-08 15:35:56
|
> Reading the ConfigObj docs, I can see how to make > nested structure. But the parser seems heavily geared > towards nested dictionaries. I'm not sure how to > describe the nested lists. I could the lists into > dicts before saving and after opening by giving them > keys like "value1", "value2" etc, but I'd rather use a > standard approach. Does ConfigObj have the facility > to do this automatically? You should be able to use Repeated Sections to do this: http://www.voidspace.org.uk/python/configobj.html#repeated-sections For a larger example, see the doctest at line #1791 of configobj.py . -- Nicola Larosa - ni...@te... No inventions have really significantly eased the cognitive difficulty of writing scalable concurrent applications and it is unlikely that any will in the near term. [...] Most of all, threads do not help, in fact, they make the problem worse in many cases. -- G. Lefkowitz, August 2005 |