From 3a772a68de2320f58e52845bb4babbe66e89d7e2 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 6 Jun 2019 05:08:18 +0200 Subject: Add a section on version compatibility to the README --- README.rst | 23 +++++++++++++---------- 1 file 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 `_ 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 `_ -- cgit v1.2.3