|
From: Stef M. <s.m...@ru...> - 2007-09-26 22:30:02
|
> Shock horror - Python is *built* on dictionaries! :-)
>
Yes I read that before,
but doesn't mean that everyone is using them (explictly) ;-)
(I mainly do signal analysis and simulation)
>
>> Still one other small question, which must be peanuts for you (and others),
>> how do I read a value as a normal string ?
>> When I've an inifile with following content:
>> size = (134,433)
>> ConfigObj gives me back a list
>> ['(134', '433)']
>>
>>
>
> By default ConfigObj treats comma separated values as lists.
Yes I read that ...
so I tried
ini.list_values = False
but that didn't work.
> This *can*
> be inconvenient, so you can switch it off.
>
>
> ini = ConfigObj(filename, list_values=False)
>
>
Thanks that works ok.
So why doesn't
ini.list_values = False
this work ?
cheers,
Stef
|