a < b < c
Posted: Sat Jun 06, 2009 10:56 pm
I think it might be time to implement Python's convenient grammar for checking numeric ranges. I find myself writing this too many times:
Sound good?
x >= 0 and x <= 1
# which could just be:
0 <= x <= 1
# so the general form is:
<expr-a> <comparison> <expr-b> <comparsion> <expr-c>
Sound good?