Commas
In method definitions or method calls we use following syntax:
def myMethod(myarg1, myarg2):
pass
myMethod("b1", "b2")
And not:
def myMethod(myarg1,myarg2):
pass
myMethod("b1","b2")
One liners
One liners are good only if they are very small and trivial. Something like this is ok:
list = [bar for bar in foo if bar == 'lala']
If the formating or condition is too big, then split up like this:
list = []
for bar in foo:
if bar == 'lala' and ... or ... and ...:
list.append("...%s..." % bar)
Indention
We use 4 space indention.
