Reply to Dave Kuhlman <[EMAIL PROTECTED]> 07-01-06 15:26:
>It's sort of hidden, but note the restriction to string values in
>the docs on the set method:
>
>set(section, option, value)
>If the given section exists, set the given option to the specified
>value; otherwise raise NoSectionError. While
On Sat, Jan 06, 2007 at 10:40:27PM +0100, Jan Erik Mostr??m wrote:
> I'm trying to use ConfigParser for the first time and I'm
> missing something. I have this code
>
> import ConfigParser
> import datetime
>
> conf = ConfigParser.ConfigParser()
>
> conf.add_section('general')
> conf.set( 'gene
I'm trying to use ConfigParser for the first time and I'm
missing something. I have this code
import ConfigParser
import datetime
conf = ConfigParser.ConfigParser()
conf.add_section('general')
conf.set( 'general', 'revision', 0 )
conf.set( 'general', 'date',
datetime.datetime.now().strftime("%