kwgoodman/bottleneck — Issue #34: Check return value of PyArray_FillWithScalar
Author: kwgoodman
Created: 2012-02-24 19:58:42+00:00
State: open

Bottleneck uses the numpy function PyArray_FillWithScalar to (typically) fill an array with np.nan. The function PyArray_FillWithScalar returns -1 if the fill was unsuccessful but bottlneck does not check the return value. Should check and then raise an exception if the return value is -1.