From 44bfc1beb8db4026df69db1f407575933f1eb9a3 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 25 Sep 2017 13:48:09 +0200 Subject: Add comment motivating _already_written --- kconfiglib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kconfiglib.py b/kconfiglib.py index 0aadf2f..1dd47ac 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2472,6 +2472,10 @@ class Symbol(Item): # Set to true when _make_conf() is called on a symbol, so that symbols # defined in multiple locations only get one .config entry. We need to # reset it prior to writing out a new .config. + # + # The C implementation reuses _write_to_conf for this, but we cache + # _write_to_conf together with the value and don't invalidate cached + # values writing .config files, so that won't work. self._already_written = False # This is set to True for "actual" choice symbols; see # Choice._determine_actual_symbols(). -- cgit v1.2.3