### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Indexing routines »

# numpy.s

`numpy.``s_`()

  A nicer way to build up index tuples for arrays.

  For any index combination, including slicing and axis insertion, ‘a[indices]’ is the same as ‘a[index_exp[indices]]’ for any array ‘a’. However, ‘index_exp[indices]’ can be used anywhere in Python code and returns a tuple of slice objects that can be used in the construction of complex index expressions.

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Indexing routines »