logoalt Hacker News

gpugregtoday at 11:19 AM0 repliesview on HN

Because the use case is very niche and nobody optimized it yet.

https://github.com/python/cpython/issues/135824#issuecomment...

`x in range(n)` is already optimized, but that was easier since the `__contains__` method already existed, but an equivalent `__min__` or `__max__` does not.