added a fix for 1d iteration which was failing and a test to test that case
tabs -> spaces
gave PyArray_MapIterBind an error code on exit
wrong error check
added a fix for 1d iteration which was failing and a test to test that case
tabs -> spaces
gave PyArray_MapIterBind an error code on exit
wrong error check
removed fancy check and added more informative message
goto fail better
ENH: Expose Euler-Mascheroni constant.

This closes issue gh-2753.
MAINT: Use NPY_E to expose 'e'.

Previously 'e' was defined as exp(1.)
ENH: make random.choice size argument default to None and allow tuple

The size argument to random.choice should work like it does for all
other functions in random as well.
BUG: Do not sort new indices in random.choice.

Random choice used np.unique to find new indices when replace
was False and p given. This is wrong since unique will sort the
indices. This solves the bug, but likely not ideal.
BUG: Fix various problems in the previous commits.

Thanks to @alan-isaac for pointing out the 0-d vs. scalar issue.
TST: Add tests for new feature and fix in random.choice
MAINT: Regenerate mtrand.c
BUG: Attempt to fix sparc segfault (gh-2668)
BUG: Fix regression for in1d with non-array input

There was a regression introduced by the speed improvement in
commit 6441c2a. This fixes it, and generally ravels the arrays for
np.in1d. However it can be argued that at least the first array should
not be ravelled in the future.

Fixes "Issue gh-2755"
TST: Add a test for bug gh-2668

This is the test attached to the bug from Matthew Brett.
I tried to make a simpler test, but it didn't repro
the problem.