diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-06-21 01:56:24 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-06-21 01:57:52 +0200 |
| commit | 438e54c3184c80059b523dbc7b386983b6589554 (patch) | |
| tree | 8f343ae9b1cebfa334881d1e42a6e7a2ff56a4e2 | |
| parent | f2ac5e3c03c34d13b818ba64441fd6511d8f75a4 (diff) | |
Clarify that set_value() takes a string for int/hex
Worth pointing out explicitly.
| -rw-r--r-- | kconfiglib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 4d26cdd..b21cf5d 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -4438,6 +4438,10 @@ class Symbol(object): values in Kconfiglib) or as one of the strings "n"/"m"/"y". For other symbol types, pass a string. + Note that the value for an int/hex symbol is passed as a string, e.g. + "123" or "0x0123". The format of this string is preserved in the + output. + Values that are invalid for the type (such as "foo" or 1 (m) for a BOOL or "0x123" for an INT) are ignored and won't be stored in Symbol.user_value. Kconfiglib will print a warning by default for |
