parameters: (a, indices, axis=None, out=None, mode='raise')
docstring: returns selection of items from a.
docstring_summary: returns selection of items from a.
docstring_tokens: returns selection of items from a .
function: def new_take (a, indices, axis=None, out=None, mode='raise'):
      "returns selection of items from a."
      m = getmask(a)
      # d = masked_array(a).raw_data()
      d = masked_array(a).data
      if m is nomask:
          return masked_array(numeric.take(d, indices, axis))
      else:
          return masked_array(numeric.take(d, indices, axis),
                       mask = numeric.take(m, indices, axis))
function_tokens: def new_take ( a , indices , axis = None , out = None , mode = 'raise' ) : m = getmask ( a ) # d = masked_array(a).raw_data() d = masked_array ( a ) . data if m is nomask : return masked_array ( numeric . take ( d , indices , axis ) ) else : return masked_array ( numeric . take ( d , indices , axis ) , mask = numeric . take ( m , indices , axis ) )