[Tutor] Writing a Configuration Facility for an Application

Kent Johnson kent37 at tds.net
Fri Jan 30 16:05:35 CET 2009


On Fri, Jan 30, 2009 at 8:57 AM, A.T.Hofkamp <a.t.hofkamp at tue.nl> wrote:
> Kent Johnson wrote:
>>
>> Another way is to use a .ini file. The ConfigParser module can read
>> ini files but not write them.
>> http://docs.python.org/library/configparser.html
>
> What do you mean 'not write them'?
>
>
> from the Python docs:
>
> RawConfigParser.write(fileobject)
>
>    Write a representation of the configuration to the specified file object.
> This representation can be parsed by a future read() call.

Oops. Thanks for the correction!

Kent


More information about the Tutor mailing list