This shows you the differences between two versions of the page.
| — |
development:tekka [2010-07-15 02:01] (current) Marian Tietz created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <code python> | ||
| + | """ | ||
| + | Coding style | ||
| + | |||
| + | Classes: MyClass | ||
| + | Methods: my_method | ||
| + | Variables: my_var OR myVar (that does not matter to me) | ||
| + | |||
| + | Line length: 80 characters | ||
| + | Indentation: Lines split up but with same context should | ||
| + | stick together: | ||
| + | |||
| + | if (myLongCondition != otherLongThing | ||
| + | and thatIsAll): | ||
| + | pass | ||
| + | |||
| + | or | ||
| + | |||
| + | my_string_function( | ||
| + | firstParam, | ||
| + | "This should be filled with %(vars)s." % { | ||
| + | "vars": testVar}, | ||
| + | anotherParam) | ||
| + | """ | ||
| + | </code> | ||