|
From: Michael F. <fuz...@vo...> - 2009-10-31 15:17:13
|
Martino Massalini wrote:
> Hi, first of all thanks for your works. I have a stupid question but i
> didn't find an answer in the documentation.
>
> How can i remove an entire section, with all its values and sub section?
>
> With config['section1']={} i can erase all values but it still remain
> the [section1] line in the config file.
>
In the same way you delete an entry from a dictionary:
del config['section']
All the best,
Michael Foord
> Best regard,
> Martino
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> ------------------------------------------------------------------------
>
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
|