Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Is it an odd-but-valid C comparison? (a is less than b and b is greater than c)

That's not the C comparison, that's a Python chained comparison. A C comparison will parse this as `(a < b) > c`, and you'll get false for a=3, b=5 and c=1.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: