/[gzz]/gzz/doc/pegboard/coding_standard--vegai/peg.rst
ViewVC logotype

Diff of /gzz/doc/pegboard/coding_standard--vegai/peg.rst

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by Vegai, Thu Jan 9 13:18:55 2003 UTC revision 1.3 by Vegai, Thu Jan 9 13:55:58 2003 UTC
# Line 16  large and growing amount of python code. Line 16  large and growing amount of python code.
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).
# Line 28  rcsid = "$Id$" Line 28  rcsid = "$Id$"
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    
# Line 59  importing). Line 60  importing).
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    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26