From 8a85f36a8478b3b427198e72021a2cdc020b642f Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 11 Dec 2012 15:34:37 +0100 Subject: Misc. doc cleanups. --- kconfiglib.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index 5d28d04..1fe3929 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2429,16 +2429,16 @@ class Symbol(Item, _HasVisibility): the range of currently assignable values for bool and tristate symbols; setting values outside this range will cause the user value to differ from the result of Symbol.get_value() (be truncated). Values that are - invalid for the type (such as a_bool.set_user_value("foo")) are ignored, and - a warning is emitted if an attempt is made to assign such a value. + invalid for the type (such as a_bool.set_user_value("foo")) are + ignored, and a warning is emitted if an attempt is made to assign such + a value. For any type of symbol, is_modifiable() can be used to check if a user value will currently have any effect on the symbol, as determined by its visibility and range of assignable values. Any value that is valid for the type (bool, tristate, etc.) will end up being reflected in - Symbol.get_user_value() though, and might have an effect later if - conditions change. To get rid of the user value, use - unset_user_value(). + get_user_value() though, and might have an effect later if conditions + change. To get rid of the user value, use unset_user_value(). Any symbols dependent on the symbol are (recursively) invalidated, so things will just work with regards to dependencies. @@ -2523,7 +2523,7 @@ class Symbol(Item, _HasVisibility): """For string/hex/int symbols and for bool and tristate symbols that cannot be modified (see is_modifiable()), returns the empty list. - Otherwise, returns a list containing the tristate values that can be + Otherwise, returns a list containing the user values that can be assigned to the symbol (that won't be truncated). Usage example: if "m" in sym.get_assignable_values(): -- cgit v1.2.3