Index: pages/coding-style.html
===================================================================
--- a/pages/coding-style.html
+++ b/pages/coding-style.html
@@ -53,8 +53,8 @@
{{s19 Python}}
- - {{python-general Follow PEP-8 and the recommendations in the offical Python documentation.}}
- - {{python-version Make the code compatible with both Python 2.7 and Python 3.5+ (see this guide). Use __future__ imports to address syntactic differences but avoid six, python-future, etc. to not introduce additional dependencies.}}
+ - {{python-general Follow PEP-8 and the recommendations in the offical Python documentation.}}
+ - {{python-version Make the code compatible with both Python 2.7 and Python 3.5+ (see this guide). Use __future__ imports to address syntactic differences but avoid six, python-future, etc. to not introduce additional dependencies.}}
- {{python-strings Write string literals so that they match the behaviour of
ascii()
, i.e. use single quotes except to avoid escaping of embedded quotes and use \u
escapes for non-ascii characters but don't prefix strings with u
. For docstrings, however, follow PEP-257.}}
- {{python-prefix In modules, prefix private functions and variables with a single underscore.}}
- {{python-concatenation Use the
+
operator when concatenating exactly two strings, use the format()
method for more complex string formatting, use the join()
method when concatenating pre-existing sequences.}}
@@ -62,8 +62,8 @@
- {{python-builtins Don't override builtins except for non-essential builtins and
file
which is superfluos in modern code as well.}}
- {{python-map-filter Use list comprehensions or generator expressions instead of calling
map()
or filter()
with a lambda function.}}
- {{python-regexp Use
re.search()
instead of re.match()
to avoid confusion about implied beginning of the string but not the ending.}}
- - {{python-flake8 Run flake8 with the flake8-abp and pep8-naming extensions and fix any warning.}}
- - {{python-tests Write tests and have them run along flake8 using tox.}}
+ - {{python-flake8 Run flake8 with the flake8-eyeo and pep8-naming extensions and fix any warning.}}
+ - {{python-tests Write tests and have them run along flake8 using tox.}}
{{s22 Java}}