From f48c4c229b73d78edc71dbddd259c547520bd0dd Mon Sep 17 00:00:00 2001 From: gwen Date: Mon, 13 Aug 2012 11:12:08 +0200 Subject: [PATCH] doc : None is a possible value for the options --- doc/config.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/config.txt b/doc/config.txt index 9b967d7..05f84dc 100644 --- a/doc/config.txt +++ b/doc/config.txt @@ -89,6 +89,11 @@ name of the option are separated by dots: e.g. 4. If an option is declared, and a value has been set, the returned value is the value of the option. +What if a value has been set and `None` is to be returned again ? Don't +worry, an option value can be "reseted" just by the affectation of the special +value `None`. An option accepts a type value as a setting, but also `None` as +a possible value. + If you do not want to use the pythonic way, that is the attribute access way to obtain the value of the configuration option, you can also search for it recursively in the whole config namespaces with the ``get()``