From: Michael F. <mi...@pc...> - 2005-09-16 14:41:11
|
Hello All, Another bugfix to ConfigObj has just gone into SVN. A slightly obscure one this time - using ``setdefault`` to create new sections *wouldn't* return a reference to the new section. Now fixed. It might be worth noting in the docs that when you create a new section (by any technique) the section is a *different* object to the one passed in (usually a dictionary). This is because the new section is a Section instance - so if you want to amend a section after creating one, you'll need a new reference to it. All that clear ? ;-) Fuzzyman http://www.voidspace.org.uk/python/ |