[Numpy-svn] [numpy/numpy] 8f068b: BUG: Make python2 *.npy files readable in python3.

GitHub noreply at github.com
Mon Oct 13 14:12:39 EDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 8f068b7866a2959392fae2a15c1a5a19ff79bae9
      https://github.com/numpy/numpy/commit/8f068b7866a2959392fae2a15c1a5a19ff79bae9
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-10-12 (Sun, 12 Oct 2014)

  Changed paths:
    M numpy/lib/format.py

  Log Message:
  -----------
  BUG: Make python2 *.npy files readable in python3.

The Python2 generated file had long integer literals like '1L' that
broke in Python3. The fix here is to filter out the 'L' and let
safe_eval take care of the integer type in converting the string.

The fix here comes from Nathaniel Smith with a few added fixups.

Closes #5170.


  Commit: 8b1f90a227b5fcf2a481c973e522693758c9f20f
      https://github.com/numpy/numpy/commit/8b1f90a227b5fcf2a481c973e522693758c9f20f
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-10-12 (Sun, 12 Oct 2014)

  Changed paths:
    M .gitattributes
    A numpy/lib/tests/data/python3.npy
    A numpy/lib/tests/data/win64python2.npy
    M numpy/lib/tests/test_format.py

  Log Message:
  -----------
  TST: Add tests for Python2, Python3 *.npy compatibility.


  Commit: 2f1786306e696709481ccfc95b844d5aa2700b6d
      https://github.com/numpy/numpy/commit/2f1786306e696709481ccfc95b844d5aa2700b6d
  Author: Julian Taylor <juliantaylor108 at gmail.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M .gitattributes
    M numpy/lib/format.py
    A numpy/lib/tests/data/python3.npy
    A numpy/lib/tests/data/win64python2.npy
    M numpy/lib/tests/test_format.py

  Log Message:
  -----------
  Merge pull request #5178 from charris/fix-npz-header-incompatibility

Fix npz header incompatibility


Compare: https://github.com/numpy/numpy/compare/2ba94e726c7a...2f1786306e69


More information about the Numpy-svn mailing list