Chris:
> What do you mean by "an object in range"? Please be very specific
>here. I gave two interpretations, both of which make plausible sense
> within Python, and it's not clear which one you're addressing, or if
> you're talking about something completely different.
>
> What exactly is "range checking" other than a pair of inequalities?

Range here means that a range or a list. Of What? A list between two numbers, 
characters, etc. Python interprets numbers, characters as a kind of PyObject. 
Yes it makes sense to have ranges of int and str but not for others. It doesn't 
make sense to have ranges for some and not for others. And as you demonstrated 
there's a current approach to use <= x <= to have ranges only for the required 
types. The current approach is very good.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/OORUNLGTGLLNEN7U4BZHE7ZVEUTLMYPS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to