16 |
Changes |
Changes |
17 |
======= |
======= |
18 |
|
|
19 |
These apply to all *.py (and possibly *.test). |
These apply to all \*.py (and possibly \*.test). |
20 |
|
|
21 |
1) Header comments should include full module name of the file (eg. |
1) Header comments should include full module name of the file (eg. |
22 |
gzz/modules/pp/demotest.py would have gzz.modules.pp.demotest). |
gzz/modules/pp/demotest.py would have gzz.modules.pp.demotest). |
28 |
|
|
29 |
4) After rcsid, the imports (unless there's a good reason to delay |
4) After rcsid, the imports (unless there's a good reason to delay |
30 |
importing). |
importing). |
31 |
|
|
32 |
- Prefer "import foo" to "from foo import bar". |
- Prefer "import foo" to "from foo import bar". |
33 |
- Prefer "from foo import bar" to "from foo import *". |
- Prefer "from foo import bar" to "from foo import \*". |
34 |
- No more than one import package in one line, eg.: |
- No more than one import package in one line, eg.: |
35 |
|
|
36 |
import os, sys # NO |
import os, sys # NO |
37 |
---- |
|
38 |
import os # Yes. |
import os # Yes. |
39 |
import sys |
import sys |
40 |
|
|
60 |
Questions |
Questions |
61 |
========= |
========= |
62 |
|
|
63 |
- our *.java have the license attached to every file. Is that necessary? |
- our \*.java have the license attached to every file. Is that necessary? |
64 |
- tests for enforcing parts of the standard? |
- tests for enforcing parts of the standard? |
65 |
|
|
66 |
|
|