Steven D'Aprano <steve at pearwood.info> writes: > It's not fine. In Python 2, >... > Testing a numeric value within a certain range of values should be constant > time and constant memory. It should be *fast*. Using range in Python 2 is > none of those things. I wasn't aware we were discussing Python 2.