summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-01-18 19:43:13 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-01-18 19:43:13 +0100
commit112a6b18384a41d072feade69f5f6594a21998f8 (patch)
tree888d8300efdc3150a3dc5a1fa51fe41eb9204655
parent25c0adb21db833d2b2660794837dc6e15a74ecca (diff)
Mention how invalidation is avoided for constant symbols
-rw-r--r--kconfiglib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 4df0e53..2998a07 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2934,6 +2934,10 @@ class Symbol(object):
symbol has a prompt. User values never have an effect on promptless
symbols, so we skip invalidation for them as an optimization.
+ This also prevents constant (quoted) symbols from being invalidated if
+ set_value() is called on them, which would cause them to lose their
+ value and break things.
+
Prints a warning if the symbol has no prompt. In some contexts (e.g.
when loading a .config files) assignments to promptless symbols are
normal and expected, so the warning can be disabled.