[Tutor] Question about ConfigParser

Jan Erik Moström lists at mostrom.pp.se
Sun Jan 7 12:09:39 CET 2007


Reply to Dave Kuhlman <dkuhlman at rexx.com> 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 it is possible to use
>RawConfigParser (or ConfigParser with raw parameters set to true)
>for internal storage of non-string values, full functionality
>(including interpolation and output to files) can only be achieved
>using string values. New in version 1.6.

Ahhhh ... I was spending all my time reading the docs for 
'items' ;-)

Thanks

             jem


More information about the Tutor mailing list