Check if a given value is out of certain range

Random832 random832 at
Wed Sep 30 05:08:51 CEST 2015

Steven D'Aprano <steve at> 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.

More information about the Python-list mailing list