summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-06-06 05:08:18 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-06-06 05:08:18 +0200
commit3a772a68de2320f58e52845bb4babbe66e89d7e2 (patch)
treee5301e3443d6d06fb62abf290cc05c8ef4ce87e4
parente0baa79af640b79c6ce5519e6f63b7c49f058597 (diff)
Add a section on version compatibility to the README
-rw-r--r--README.rst23
1 files changed, 13 insertions, 10 deletions
diff --git a/README.rst b/README.rst
index 0133801..4407c59 100644
--- a/README.rst
+++ b/README.rst
@@ -122,6 +122,19 @@ third-party dependencies (except for the `windows-curses
<https://github.com/zephyrproject-rtos/windows-curses>`_ package on Windows,
when running the terminal ``menuconfig`` implementation).
+Python version compatibility (2.7/3.2+)
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Kconfiglib and all utilities run under both Python 2.7 and Python 3.2 and
+later. The code mostly uses basic Python features and has no third-party
+dependencies, so keeping it backwards-compatible is pretty low effort.
+
+The 3.2 requirement comes from ``argparse``. ``format()`` with unnumbered
+``{}`` is used as well.
+
+A recent Python 3 version is recommended if you have a choice, as it'll give
+you better Unicode handling.
+
Installation for the Linux kernel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -396,16 +409,6 @@ Other features
The tools implemented on top of it are one file each.
-- **Runs unmodified under both Python 2 and Python 3**
-
- The code mostly uses basic Python features and has no third-party
- dependencies. The most advanced things used are probably ``@property`` and
- ``__slots__``.
-
- A recent Python 3 version is recommended if you have a choice. Python 3.7
- finally has parsing performance on par with Python 2.7 (and Python 3.6 is
- just a bit slower).
-
- **Robust and highly compatible with the C Kconfig tools**
 The `test suite <https://github.com/ulfalizer/Kconfiglib/blob/master/testsuite.py>`_