News for hackers. Stuff that matters.
Re:The PEPs of Python 3.9 by sullyj3 on Thursday May 28, 2020 @10:12PM (#23345594)
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.
Re:The PEPs of Python 3.9 by mark-r on Thursday May 28, 2020 @11:10PM (#23345896)
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.