summaryrefslogtreecommitdiff
path: root/cad/src/experimental/demoapp_0.1/coding.txt
blob: f657837df0689000faa6b3eab9cde0eadce6217d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
coding standards



assume the developer will run with python main.py normally,
or with python -O main.py for speed,
and the user will often use -O as well.

So don't assume asserts will fire (never use them as part of logic;
raise other exceptions for things that should be asserted even in production code).

And use __debug__ (sp?) to control general debugging options
(as pyglet does for opengl error checking).