diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-30 13:52:11 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-30 13:54:20 +0100 |
| commit | 2af7ebfe9b4e4edc5934b22542b2ce242108cfae (patch) | |
| tree | 9b1c9386dea9d5a1bc00917c6f0212a3f0cfb9de | |
| parent | 9b03d02c64a27df5ec1d12da52c5f433c3c2c2ac (diff) | |
Doc nits
| -rw-r--r-- | kconfiglib.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 5a8bb04..ab41edb 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -255,7 +255,7 @@ A && B && C (AND, A, (AND, B, C)) A || B (OR, A, B) A || (B && C && D) (OR, A, (AND, B, (AND, C, D))) A = B (EQUAL, A, B) -A != "foo" (UNEQUAL, A, "foo") +A != "foo" (UNEQUAL, A, "foo" (constant symbol)) A && B = C && D (AND, A, (AND, (EQUAL, B, C), D)) n Kconfig.n (constant symbol) m Kconfig.m (constant symbol) @@ -272,8 +272,10 @@ Manual evaluation examples: - The value of A || B is max(A.tri_value, B.tri_value) - - The value of A = B is y if A.str_value == B.str_value, and n otherwise. - Note that str_value is used here instead of tri_value. + - The value of !A is 2 - A.tri_value + + - The value of A = B is 2 (y) if A.str_value == B.str_value, and 0 (n) + otherwise. Note that str_value is used here instead of tri_value. n/m/y are automatically converted to the corresponding constant symbols "n"/"m"/"y" (Kconfig.n/m/y) during parsing. @@ -549,7 +551,7 @@ class Kconfig(object): # Parse the Kconfig files - # These implements a single line of "unget" for the parser + # These implement a single line of "unget" for the parser self._reuse_line = False self._has_tokens = False @@ -615,8 +617,9 @@ class Kconfig(object): The file to load. Respects $srctree if set (see the class documentation). - replace (default: True): True if all existing user values should - be cleared before loading the .config. + replace (default: True): + True if all existing user values should be cleared before loading the + .config. """ with self._open(filename) as f: |
