index
is
==
RecursionError: maximum recursion depth exceeded while pickling an object.
functools.cache
math.isinf()