[Numpy-svn] [numpy/numpy] 51ebb8: BUG: Make np.load transfer file ownership to the r...

GitHub noreply@github....
Sat Jun 29 11:23:56 CDT 2013


  Branch: refs/heads/maintenance/1.7.x
  Home:   https://github.com/numpy/numpy
  Commit: 51ebb86b1e4b361bc8a70f5b2b7818615dc08623
      https://github.com/numpy/numpy/commit/51ebb86b1e4b361bc8a70f5b2b7818615dc08623
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-06-29 (Sat, 29 Jun 2013)

  Changed paths:
    M numpy/lib/npyio.py
    M numpy/lib/tests/test_io.py

  Log Message:
  -----------
  BUG: Make np.load transfer file ownership to the returned NpzFile.

This assures that when the loaded file is closed it also closes the
file descriptor, avoiding a resource warning in Python3.

Closes #3457.





More information about the Numpy-svn mailing list