Check if a given value is out of certain range

Steven D'Aprano steve at pearwood.info
Thu Oct 1 15:19:01 EDT 2015


On Fri, 2 Oct 2015 04:20 am, John Gordon wrote:

> In <560d78e2$0$1618$c3e8da3$5496439d at news.astraweb.com> Steven D'Aprano
> <steve at pearwood.info> writes:
> 
>> > I have to parse those damn brackets and then figure out the inverted
>> > logic. Give me x < 0 or x > 10 any day of the week.  When you're an
>> > old, senile git like me, readability counts :-)
> 
>> With the greatest of respect Mark, I don't believe that for a second.
>> Your sig line, which you have used without fail for more years than I can
>> remember includes the phrase "ask not what our language can do for you".
>> If you can understand that, I don't believe that you cannot figure out
>> how to
> 
> Certainly we can understand it.

Unless every single one of you (the "we" you refer to) are called Mark, I
don't believe I was talking to you :-P


> But it takes ever-so-slightly more effort 
> to do so.

Slightly more effort than what alternative? How would you communicate the
idea of *not* asking for X without using the concept of "not"?



-- 
Steven




More information about the Python-list mailing list