Menu:

Our used python code style

Our source code style based on PEP-8.

Some points:

The source code header should look like this:

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- coding: utf-8 -*-



"""
    sort Headline
    ~~~~~~~~~~~~~



    Some Info about the file.



    Last commit info:
    ~~~~~~~~~~~~~~~~~
    $LastChangedDate$
    $Rev$
    $Author:$



    :copyleft: 2008 by the PyLucid team, see AUTHORS for more details.
    :license: GNU GPL v3 or above, see LICENSE for more details.
"""


...

(Note: There exist a source highlighting bug, you see too much empty lines!)