"dave selby" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi All,
>
> I am using the ConfigParser module, I can 'get' from a config file
> fine, when I try to set it, it silently fails. the code.
>
>        parser = ConfigParser.SafeConfigParser()
>        parser.read('./daemon.rc')
>        print parser.get('feeds', 'number')
>        parser.set('feeds', 'number',  '99')
>        print parser.get('feeds', 'number')

I've  not used this module but since you have a read at the start
shouldn't you use a write at the end? Otherwise it will only be
set in memory I presume?

Alan G 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to