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

GitHub noreply@github....
Sat Jun 29 11:16:30 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 2ea4cb39941dd8a5a3d6365fdc34cff40a05c9c7
      https://github.com/numpy/numpy/commit/2ea4cb39941dd8a5a3d6365fdc34cff40a05c9c7
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-06-22 (Sat, 22 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.


  Commit: 24a0aa5edbca9982f1b4b75b27840186cfa7c266
      https://github.com/numpy/numpy/commit/24a0aa5edbca9982f1b4b75b27840186cfa7c266
  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:
  -----------
  Merge pull request #3461 from charris/fix-load-resource-warning

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


Compare: https://github.com/numpy/numpy/compare/d4e70cf8091d...24a0aa5edbca


More information about the Numpy-svn mailing list