Changes between Version 1 and Version 2 of CodingStandard


Ignore:
Timestamp:
08/08/06 16:49:12 (13 years ago)
Author:
lawrence
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodingStandard

    v1 v2  
    1  
    21==== Python Coding Standards for NDG ==== 
    32 
    43In all scripts we should make the best use of module level doc strings. 
    54 
    6 module.py 
     5e.g. for module.py 
     6{{{ 
     7#!python 
    78 '''some stuff about module ''' 
    89  def exitNicely(msg): 
     
    1011     print msg 
    1112     sys.exit() 
     13}}} 
    1214 
    1315* All classes should start with a capital 
     
    4143}}} 
    4244 
     45And this is an abomination: 
     46{{{ 
     47#!python 
     48y = (x>10) and 5 or 7 
     49}}} 
     50will make y 5 if x>10 ... 
     51 
     52