Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 21 lines (13 sloc) 0.697 kB
811be28 @glasser Some notes on style.
glasser authored
1 Mystery Hunt collaboration site, built for Optimus Funk for Hunt 2009.
2
3 Runs on Google App Engine.
4
5 Note: Vaguely using Google's Python style, a version of which is at
6 http://code.google.com/p/soc/wiki/PythonStyleGuide.
7
8 Rules I actually care about:
9
10 - no 'from foo import *'
11
12 - no 'from foo import FunctionOrClass' (but importing a submodule is fine)
13
14 - when passing an argument to a function that takes default
15 arguments (like "def foo(x, y=2)") always name the argument during
16 the call "foo(x, y=3)". (Of course, you can leave the argument
17 out too to use the default.)
18
19 - 2-space indents; no tabs ever. for line continuations, align
20 vertically or use a 4-space indent
Something went wrong with that request. Please try again.