2.1.14. czekitout.check.if_multi_dim_slice_like

if_multi_dim_slice_like(obj, obj_name)[source]

Check whether input object is a multi-dimensional slice-like object.

We define a multi-dimensional slice-like object as a sequence of items which contains at most one item being a sequence of integers, and the remaining items being slice objects and/or integers.

If the input object is not multi-dimensional slice-like, then a TypeError exception is raised with the message:

The object ``<obj_name>`` must be a sequence of items which contains at 
most one item being a sequence of integers, and the remaining items 
being `slice` objects and/or integers.

where <obj_name> is replaced by the contents of the string obj_name.

Parameters:
objany type

Input object.

obj_namestr

Name of the input object.