diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-14 11:52:17 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-14 11:52:17 +0100 |
| commit | 6dfc4d6a3ef281b96890db3ece152a9b8bb4d19b (patch) | |
| tree | 59c2c9ff7be45cdbdfbcb299d62780015bc14719 | |
| parent | 3704db0b04727fdd73075d314f70367147e69c61 (diff) | |
Clarify comment on the value of undefined symbols.
| -rw-r--r-- | kconfiglib.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index fa98855..dd81d7f 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2262,9 +2262,9 @@ class Symbol(Item, _HasVisibility): self.write_to_conf = False - # The following means that what to the user looks like a reference to - # an undefined symbol will actually get treated like a string whose - # value is the symbol name, which can be a bit unexpected. + # As a quirk of Kconfig, undefined symbols get their name as their + # value. This is why things like "FOO = bar" work for seeing if FOO has + # the value "bar". if self.type == UNKNOWN: self.cached_value = self.name return self.name @@ -2586,7 +2586,7 @@ class Symbol(Item, _HasVisibility): def get_parent(self): """Returns the menu or choice statement that contains the symbol, or None if the symbol is at the top level. Note that if statements are - treated as syntactic sugar and do not have an explicit class + treated as syntactic and do not have an explicit class representation.""" return self.parent |
