util

Functions

flatten_tuple(x)

This wraps around normalize_index.

is_functor(obj)

Returns true iff obj.__call__ is defined.