numpy/numpy — pull request #4828 by ogrisel (2014-06-26 12:53:02+00:00)
Title: FIX isfileobj accepts write-mode files under PY3

Under Python 3, files open in write mode were not recognized as file objects, triggering large memory copies with `np.save`.