[Numpy-svn] [numpy/numpy] 0ec441: BUG: raise IOError on not a file in python2

GitHub noreply at github.com
Sat Feb 6 20:07:26 EST 2016


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 0ec441d60b6d10d68fd2cb86e51980160730707c
      https://github.com/numpy/numpy/commit/0ec441d60b6d10d68fd2cb86e51980160730707c
  Author: Julian Taylor <jtaylor.debian at googlemail.com>
  Date:   2016-02-06 (Sat, 06 Feb 2016)

  Changed paths:
    M numpy/core/include/numpy/npy_3kcompat.h
    M numpy/core/src/multiarray/methods.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  BUG: raise IOError on not a file in python2

The change in 5225e4c2007 did not account for PyFile_AsFile does not
raise an error on invalid input, add the handling to equalize our
wr5225e4c2007 apper function.
closes gh-7200


  Commit: a1ab9cff35bfca03bf2a8fd6aea9f589670e69ad
      https://github.com/numpy/numpy/commit/a1ab9cff35bfca03bf2a8fd6aea9f589670e69ad
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2016-02-06 (Sat, 06 Feb 2016)

  Changed paths:
    M numpy/core/include/numpy/npy_3kcompat.h
    M numpy/core/src/multiarray/methods.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Merge pull request #7201 from juliantaylor/ioerror

Raise IOError on not a file in python2


Compare: https://github.com/numpy/numpy/compare/5002e81bd8ec...a1ab9cff35bf


More information about the Numpy-svn mailing list