Hacker News new | past | comments | ask | show | jobs | submit login

Leaky abstractions at its finest.



I mean, people should be using `==` for this. The fact that `is` happens to work for small numbers is an implementation detail that shouldn't be relied upon.


Absolutely. But because it does work they might start using it without knowing it's wrong, then be surprised when it doesn't work. Python has other areas where the common English definition of a word leads to misunderstandings about how they're to be used.




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

Search: