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

This is true, and, in this case, "confusion avoided" and "what Python does" coincide. The "double equals doing the right thing" is only confusing if you're both unfamiliar with Python and familiar with language design, which is a very small set of people.

People unfamiliar with programming will assume that "if a == b == c" is only true if all three things are the same, and people familiar with Python will know that that is, indeed, what it means.



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

Search: