[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst
From: |
Vesa Kaihlavirta |
Subject: |
[Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst |
Date: |
Thu, 09 Jan 2003 08:55:58 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Vesa Kaihlavirta <address@hidden> 03/01/09 08:55:58
Modified files:
doc/pegboard/coding_standard--vegai: peg.rst
Log message:
Fixed errors.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/doc/pegboard/coding_standard--vegai/peg.rst.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gzz/doc/pegboard/coding_standard--vegai/peg.rst
diff -u gzz/doc/pegboard/coding_standard--vegai/peg.rst:1.2
gzz/doc/pegboard/coding_standard--vegai/peg.rst:1.3
--- gzz/doc/pegboard/coding_standard--vegai/peg.rst:1.2 Thu Jan 9 08:18:55 2003
+++ gzz/doc/pegboard/coding_standard--vegai/peg.rst Thu Jan 9 08:55:58 2003
@@ -3,8 +3,8 @@
=============================================================
:Author: Vesa Kaihlavirta
-:Last-Modified: $Date: 2003/01/09 13:18:55 $
-:Revision: $Revision: 1.2 $
+:Last-Modified: $Date: 2003/01/09 13:55:58 $
+:Revision: $Revision: 1.3 $
:Status: Current
:Scope: Minor
:Type: ?
@@ -16,7 +16,7 @@
Changes
=======
-These apply to all *.py (and possibly *.test).
+These apply to all \*.py (and possibly \*.test).
1) Header comments should include full module name of the file (eg.
gzz/modules/pp/demotest.py would have gzz.modules.pp.demotest).
@@ -24,16 +24,17 @@
2) Header comments should include authors.
3) After header comments, rcsid:
-rcsid = "$Id: peg.rst,v 1.2 2003/01/09 13:18:55 Vegai Exp $"
+rcsid = "$Id: peg.rst,v 1.3 2003/01/09 13:55:58 Vegai Exp $"
4) After rcsid, the imports (unless there's a good reason to delay
importing).
+
- Prefer "import foo" to "from foo import bar".
- - Prefer "from foo import bar" to "from foo import *".
+ - Prefer "from foo import bar" to "from foo import \*".
- No more than one import package in one line, eg.:
import os, sys # NO
- ----
+
import os # Yes.
import sys
@@ -59,7 +60,7 @@
Questions
=========
-- our *.java have the license attached to every file. Is that necessary?
+- our \*.java have the license attached to every file. Is that necessary?
- tests for enforcing parts of the standard?
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/09
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/09
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst,
Vesa Kaihlavirta <=
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/09
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/09
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Tuomas J. Lukka, 2003/01/10
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/12
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/12
- [Gzz-commits] gzz/doc/pegboard/coding_standard--vegai peg.rst, Vesa Kaihlavirta, 2003/01/13