From 112a6b18384a41d072feade69f5f6594a21998f8 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 18 Jan 2018 19:43:13 +0100 Subject: Mention how invalidation is avoided for constant symbols --- kconfiglib.py | 4 ++++ 1 file changed, 4 insertions(+) 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. -- cgit v1.2.3