1 > 0 == True -> False
Roy Smith
roy at panix.com
Thu Jan 30 17:09:31 EST 2014
On Thursday, January 30, 2014 10:09:03 AM UTC-5, Steven D'Aprano wrote:
> `(x+1 > 0) and (y >= 5)`
Me:
> this is even simpler:
> (x > -1) and (y >= 5)
On Thursday, January 30, 2014 2:03:42 PM UTC-5, Chris Angelico wrote:
> Be careful; that's not the same thing.
In what way? I'm assuming x is some numeric type. And further assuming it's not some humungous floating point value, so we run into precision issues.
More information about the Python-list
mailing list