Changes between Version 6 and Version 7 of DevNotes/DevGuide/CodingRules


Ignore:
Timestamp:
May 30, 2016 5:21:09 AM (8 years ago)
Author:
wojciech
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DevNotes/DevGuide/CodingRules

    v6 v7  
    6969Imports 
    7070 
    71     Import only one module per line: 
    72     import sascalc 
    73     import sasmodels 
    74     not 
    75     import sasmodels, sascalc 
    76     It is OK to import multiple classes and/or methods from the same module on the same line: 
    77     from sasmodels import barbell, cylinder 
    78     Avoid importing * from any module. This is a typically a waste of time and memory. 
    79  
    80     Imports should be grouped in the following order: 
     71    * Import only one module per line: 
     72       import sascalc 
     73       import sasmodels 
     74       not 
     75       import sasmodels, sascalc 
     76    * It is OK to import multiple classes and/or methods from the same module on the same line: 
     77       from sasmodels import barbell, cylinder 
     78    * Avoid importing * from any module. This is a typically a waste of time and memory. 
     79 
     80    * Imports should be grouped in the following order: 
    8181        standard library imports 
    8282        related third party imports 
    8383        local application/library specific imports 
    84     Put a blank line between each group of imports. 
     84    * Put a blank line between each group of imports. 
    8585 
    8686Exception Handling