On Mon, May 17, 2021 at 5:46 PM Shreyan Avigyan <[email protected]> wrote: > > Chris: > > There are two obvious definitions of a range: a range object, and a > > pair of inequalities. I'm not sure whether a range object is > > supported, but it's possible to use a built-in type with a guard as a > > range check: > > By range I mean an object in range. Is it possible to match object in range? > No. Yes we can have a guard as a range check but Valentin is suggesting to > have a different operator for range checking. I'm don't think that's possible. >
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? ChrisA _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/3HENPQRVDDFDFNJSVG6HKVYHJSDIQN37/ Code of Conduct: http://python.org/psf/codeofconduct/
