[Tutor] is v == for small ints

2015-12-14 Thread Alan Gauld
Somebody posted a question about this today and I approved it but it hasn't shown up. We have had about 6 or 7 such problems in the last month. Mainly they have been thank-you messages so I didn't make an issue of it but a couple have been genuine questions, like this was. So if you have posted

Re: [Tutor] is v == for small ints

2015-12-14 Thread Steven D'Aprano
On Tue, Dec 15, 2015 at 01:54:30AM +, Alan Gauld wrote: > This behaviour should never be relied on since the definition > of a "small int" is potentially implementation dependant and > could even change with Python version or platform. Always > use == to test integers. It isn't just