From 55f00fdd55ec20ea5597b8144f4ea3e59a33efe0 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 24 Sep 2017 20:02:43 +0200 Subject: Prefix module- and class-internal names with _ I didn't do this when I first wrote Kconfiglib, for whatever reason. Makes the public API clearer to people browsing the code (though it was already done for function names) and has some other nice side effects like uncluttering the module-level documentation and making autocompletion in ipython more useful. Might avoid pissing off some people too. Remove the trailing from _ from stuff that no longer clashes with keywords. Piggyback some formatting cleanups for stuff I happened to spot. It's a huge unwieldy diff anyway. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 2098845..4757d82 100644 --- a/README.rst +++ b/README.rst @@ -140,7 +140,7 @@ Notes * **Useful information can be extracted from internal data structures.** The expression format is pretty simple for example: ``A && B && (!C || D == 3)`` is represented as the tuple structure - ``(AND, A, (AND, B, (OR, (NOT, C), (EQUAL, D, 3))))``; see the + ``(_AND, A, (_AND, B, (_OR, (_NOT, C), (_EQUAL, D, 3))))``; see the ``Config._parse_expr()`` docstring. It's hard to come up with good APIs for dealing with expressions given how -- cgit v1.2.3