zcollection.variable.abc.IVariable.__getitem__#

abstract IVariable.__getitem__(key)[source]#

Get a slice of the variable.

Parameters:

key (Any) – Slice or index to use.

Returns:

The variable slice.

Return type:

Any