def _get_info_slice(obj, indexer):
 if (not hasattr(obj, '_info_axis_number')):
  raise TypeError(('object of type %r has no info axis' % type(obj).__name__))
 slices = ([slice(None)] * obj.ndim)
 slices[obj._info_axis_number] = indexer
 return tuple(slices)

def _get_info_slice ( obj , indexer ) : if ( not hasattr ( obj , '_info_axis_number' ) ) : raise TypeError ( ( 'object of type %r has no info axis' % type ( obj ) . __name__ ) ) slices = ( [ slice ( None ) ] * obj . ndim ) slices [ obj . _info_axis_number ] = indexer return tuple ( slices )
slice the info axis of obj with indexer .