Changes between Initial Version and Version 1 of Ticket #2377


Ignore:
Timestamp:
2015-02-06T22:59:34Z (10 years ago)
Author:
daira
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2377 – Description

    initial v1  
    1 In Python 2.5, the nearest equivalent to C's `cond ? one : tother` was the idiom `cond and one or tother`.
    2 In Python 2.6, a more precise equivalent is `one if cond else tother`.
     1In Python pre-2.5, the nearest equivalent to C's `cond ? one : tother` was the idiom `cond and one or tother`.
     2In Python 2.5+, a more precise equivalent is `one if cond else tother`.
    33
    4 The former is error-prone: it evaluates to `tother` when `one` is falsy, which is the wrong thing. Since we now depend on Python 2.6, we can always use the latter.
     4The former is error-prone: it evaluates to `tother` when `one` is falsy, which is the wrong thing. Since Tahoe-LAFS requires at least Python 2.6, we can always use the latter.
    55
    66("t'other" is Northern English dialect for "the other", if you were wondering about that.)