4 ms·
CPython interns ints in [-5, 256]. Seems like a reasonable common-case optimization to me.
by sparky 14y ago
CPython interns ints in [-5, 256]. Seems like a reasonable common-case optimization to me.
- halayli 14y agoAgreed. It didn't surprise me much, but it makes things less consistent.