]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: One more comment regarding coding style.
authorBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2024 12:06:00 +0000 (13:06 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2024 12:06:00 +0000 (13:06 +0100)
* pygnulib/main.py: Add comment regarding conditional expressions.

ChangeLog
pygnulib/main.py

index 3c3a8cfb96530da2ba73ec29087ba5202fb3ddcc..5e1f44993deae0dcaec5dff641395daf3f1a626a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-03-10  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool.py: One more comment regarding coding style.
+       * pygnulib/main.py: Add comment regarding conditional expressions.
+
 2024-03-09  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Follow gnulib-tool changes, part 50.
index 58d4cd268e9e6ea599dc6c918f83828c7c3565cc..97ff76957ad8dc9cd4e6c1f6dfc4b8fc12fb1779 100644 (file)
@@ -34,6 +34,9 @@
 #   Use 'is' and 'is not' for variables which can contain only class instances
 #   (e.g. GLModule instances) and None.
 #   Rationale: <https://lists.gnu.org/archive/html/bug-gnulib/2024-02/msg00225.html>
+# - Avoid conditional expressions as in PEP 308 <https://peps.python.org/pep-0308/>.
+#   Rationale: They violate the principle that in conditional code, the
+#   condition comes first.
 
 # You can use this command to check the style:
 #   $ pycodestyle *.py