Changes between Version 1 and Version 2 of Development/Efficiency


Ignore:
Timestamp:
10/01/13 11:02:29 (5 years ago)
Author:
jdsiiro
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Development/Efficiency

    v1 v2  
    77When constructing logical control expressions, how should we check for "truth"? 
    88 
    9   - '''Guidance:'''  
    10      - prefer "`if x:`" and "`if not x`"  
    11      - avoid "`if x == True`" or "`if x is True`" 
    12   - Justification: 
     9  - Guidance:  
     10     - ''prefer'' "`if x:`" and "`if not x:`"  
     11     - ''avoid'' "`if x == True:`" or "`if x is True:`" 
     12  - Justification: [attachment:test_truth.py source], [attachment:test_truth.txt results]