diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-11 15:34:37 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-11 15:34:37 +0100 |
| commit | 8a85f36a8478b3b427198e72021a2cdc020b642f (patch) | |
| tree | f858d8cb8009b89dafbebb19592f815c8d8b58ad | |
| parent | 126340cd5c3675dd5b1522787bb681a47577f0b8 (diff) | |
Misc. doc cleanups.
| -rw-r--r-- | kconfiglib.py | 12 |
1 files changed, 6 insertions, 6 deletions
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(): |
