[Numpy-svn] [numpy/numpy] a1561c: [FIX] Add missing header so separate compilation w...

GitHub noreply@github....
Sat Sep 15 23:39:14 CDT 2012


  Branch: refs/heads/maintenance/1.7.x
  Home:   https://github.com/numpy/numpy
  Commit: a1561c271ede9c193cb365c5031282fa51bd0816
      https://github.com/numpy/numpy/commit/a1561c271ede9c193cb365c5031282fa51bd0816
  Author: Nathaniel J. Smith <njs@pobox.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/mapping.c

  Log Message:
  -----------
  [FIX] Add missing header so separate compilation works again

(Broken by PR #350.)

Should be applied to maintenance/1.7.x as well.


  Commit: d72280f078e201fec45f5d4ff21484d99474ee4f
      https://github.com/numpy/numpy/commit/d72280f078e201fec45f5d4ff21484d99474ee4f
  Author: cgohlke <cgohlke@uci.edu>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Fix tests for empty shape, strides and suboffsets on Python 3.3


  Commit: 470486be8ab55982ea7f631be67c9815bb060af1
      https://github.com/numpy/numpy/commit/470486be8ab55982ea7f631be67c9815bb060af1
  Author: Ronan Lamy <Ronan.Lamy@normalesup.org>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/methods.c
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  Copy bytes object when unpickling an array


  Commit: a0220156f231611e71c0661c0028c19ebfa66c0c
      https://github.com/numpy/numpy/commit/a0220156f231611e71c0661c0028c19ebfa66c0c
  Author: Ronan Lamy <Ronan.Lamy@normalesup.org>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/methods.c

  Log Message:
  -----------
  Re-enable unpickling optimization for large py3k bytes objects.

Mutating a bytes object is theoretically unsafe, but doesn't cause any
problem in any existing version of CPython.


  Commit: d67785bbbf03ab66fbfaa0ea163ca708c5ee43d2
      https://github.com/numpy/numpy/commit/d67785bbbf03ab66fbfaa0ea163ca708c5ee43d2
  Author: Ondrej Certik <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/scalarapi.c
    M numpy/core/src/multiarray/scalartypes.c.src

  Log Message:
  -----------
  FIX: Fixes the PyUnicodeObject problem in py-3.3

Previously NumPy did not compile in Python 3.3 due to the changes in PEP 393.
This patch simply calls PyUnicode_FromKindAndData() from the new Python 3.3 API
and possibly swaps the data before calling it if needed. The data in NumPy is always UCS4 and the PyUnicode_FromKindAndData() internally converts it to UCS1, UCS2 or UCS4 depending on the maximum code point.

The following tests now fail, because they produce invalid unicode in the
process (will be fixed in the next patch):

======================================================================
ERROR: Check byteorder of 0-dimensional objects
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 277, in test_values0D
    self.assertTrue(ua[()] != ua2[()])
SystemError: invalid maximum character passed to PyUnicode_New

======================================================================
ERROR: Check byteorder of multi-dimensional objects
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 297, in test_valuesMD
    self.assertTrue(ua[0,0,0] != ua2[0,0,0])
SystemError: invalid maximum character passed to PyUnicode_New

======================================================================
ERROR: Check byteorder of single-dimensional objects
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 286, in test_valuesSD
    self.assertTrue(ua[0] != ua2[0])
SystemError: invalid maximum character passed to PyUnicode_New

======================================================================
ERROR: Check byteorder of 0-dimensional objects
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 277, in test_values0D
    self.assertTrue(ua[()] != ua2[()])
SystemError: invalid maximum character passed to PyUnicode_New

======================================================================
ERROR: Check byteorder of multi-dimensional objects
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 297, in test_valuesMD
    self.assertTrue(ua[0,0,0] != ua2[0,0,0])
SystemError: invalid maximum character passed to PyUnicode_New

======================================================================
ERROR: Check byteorder of single-dimensional objects
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_unicode.py", line 286, in test_valuesSD
    self.assertTrue(ua[0] != ua2[0])
SystemError: invalid maximum character passed to PyUnicode_New


  Commit: 8141e1e420a9d37c9899a3ee233b554b60d31d04
      https://github.com/numpy/numpy/commit/8141e1e420a9d37c9899a3ee233b554b60d31d04
  Author: Ondrej Certik <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/tests/test_unicode.py

  Log Message:
  -----------
  FIX: Make sure the tests produce valid unicode

The tests are testing byte order for unicode, so we can only use such unicode
data, so that both versions (swapped and unswapped) are valid unicode.


  Commit: d5d6894fee37feccce94da0860dd9de2639e369f
      https://github.com/numpy/numpy/commit/d5d6894fee37feccce94da0860dd9de2639e369f
  Author: Chris <ccianci@appliedminds.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/multiarraymodule.c

  Log Message:
  -----------
  Fix memory leak in concatenate.

Temporary array was not being freed after use.


  Commit: 31660d05c794ef4ea65b66e2fbc3fdc0ed436e2f
      https://github.com/numpy/numpy/commit/31660d05c794ef4ea65b66e2fbc3fdc0ed436e2f
  Author: Ondrej Certik <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/scalarapi.c

  Log Message:
  -----------
  Follow the C guidelines


  Commit: 99c9397d4d8c6a66c45a67f52c1581e743926fed
      https://github.com/numpy/numpy/commit/99c9397d4d8c6a66c45a67f52c1581e743926fed
  Author: Ondrej Certik <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/scalarapi.c

  Log Message:
  -----------
  Use PyUnicode_DecodeUTF32()

This function handles the swapping automatically and it returns a unicode
object in one of: UCS1, UCS2 or UCS4 internal Python format.


  Commit: 77da3f8b6fb6ad86c7e817c5d3aacf555a196a5f
      https://github.com/numpy/numpy/commit/77da3f8b6fb6ad86c7e817c5d3aacf555a196a5f
  Author: cgohlke <cgohlke@uci.edu>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/_internal.py

  Log Message:
  -----------
  Allow long numbers in numpy.rec.array formats string


  Commit: 24da7f6fc6b16ebb7b5d30948f6862a2e1c811f3
      https://github.com/numpy/numpy/commit/24da7f6fc6b16ebb7b5d30948f6862a2e1c811f3
  Author: cgohlke <cgohlke@uci.edu>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/tests/test_records.py

  Log Message:
  -----------
  Add test for long numbers in numpy.rec.array formats string


  Commit: 5cb80f8c90c8f17bae45d410f982e887c1aaff7f
      https://github.com/numpy/numpy/commit/5cb80f8c90c8f17bae45d410f982e887c1aaff7f
  Author: cgohlke <cgohlke@uci.edu>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/tests/test_dtype.py

  Log Message:
  -----------
  Add test for long number in shape specifier of dtype string


  Commit: fbad4a7dad0fc02a17d7cfcb6dea88ce50ea49b5
      https://github.com/numpy/numpy/commit/fbad4a7dad0fc02a17d7cfcb6dea88ce50ea49b5
  Author: cgohlke <cgohlke@uci.edu>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/tests/test_records.py

  Log Message:
  -----------
  Remove test_recarray_from_long_formats


  Commit: 393088169e778df2bdfc91bdc018bc915a2cd03c
      https://github.com/numpy/numpy/commit/393088169e778df2bdfc91bdc018bc915a2cd03c
  Author: David Cournapeau <cournape@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/bscript

  Log Message:
  -----------
  BUG: fix bento build.


  Commit: 416af9a1502f9043708209c872ee577690df54c1
      https://github.com/numpy/numpy/commit/416af9a1502f9043708209c872ee577690df54c1
  Author: Ondrej Certik <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M pavement.py

  Log Message:
  -----------
  pavement.py: rename "yop" to "atlas"


  Commit: 7583adcfadfb8d88ac2b1368d4e4f0e29b179c52
      https://github.com/numpy/numpy/commit/7583adcfadfb8d88ac2b1368d4e4f0e29b179c52
  Author: Ralf Gommers <ralf.gommers@googlemail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/lib/utils.py

  Log Message:
  -----------
  MAINT: silence DeprecationWarning in np.safe_eval().

It comes from the Python compiler package, which isn't available on Python 3.x.
We already handle that issue by instead importing the ast module.


  Commit: 996a9fbc48fa43dcd98cc40aa50a8d2ef5ea9887
      https://github.com/numpy/numpy/commit/996a9fbc48fa43dcd98cc40aa50a8d2ef5ea9887
  Author: Ondřej Čertík <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/scalarapi.c
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  FIX: bug in np.where and recarray swapping

Fixes #369 and the Ticket 2185

Thanks to @seberg for providing the patch.


  Commit: 124a608a3f5b06c4ef2b2d8a178075c1d87987d8
      https://github.com/numpy/numpy/commit/124a608a3f5b06c4ef2b2d8a178075c1d87987d8
  Author: Jay Bourque <jay.bourque@continuum.io>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/_internal.py
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Fix returned copy

Fix returned copy so that copy of view with offsets copies only fields in view, not all the fields from original array. Also add unit tests to make sure this doesn't break when copy is fully deprecated in favor of returning a view.


  Commit: f65ff87388c23f9888ca151f7a44b039a5315311
      https://github.com/numpy/numpy/commit/f65ff87388c23f9888ca151f7a44b039a5315311
  Author: Ondřej Čertík <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/_internal.py

  Log Message:
  -----------
  FIX: simplify the import statement


  Commit: 7b5dba04e2950971d67dcdbc6c63a73fb86b966f
      https://github.com/numpy/numpy/commit/7b5dba04e2950971d67dcdbc6c63a73fb86b966f
  Author: Mark Wiebe <mwwiebe@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/calculation.c

  Log Message:
  -----------
  BUG: Fix ticket #1588/gh issue #398, refcount error in clip

This patch enforces a strict dichotomy for the variables 'indescr'
and 'newdescr', so they are either NULL, or they own a reference.
Following the consequences of this allowed the reference error
to be tracked down.


  Commit: 1ee4a0030eda944b677091fd709c4f754205fce9
      https://github.com/numpy/numpy/commit/1ee4a0030eda944b677091fd709c4f754205fce9
  Author: Ondřej Čertík <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  BUG: Add a test for Ticket #1588

The bug was fixed by the previous patch.


  Commit: ca298493bb5eb56871d28ac929e9e9ce3bbb3bba
      https://github.com/numpy/numpy/commit/ca298493bb5eb56871d28ac929e9e9ce3bbb3bba
  Author: Ondřej Čertík <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  BUG: Add a test for Ticket #2189


  Commit: 2f28db69b638844053029c06fd98b244883abd13
      https://github.com/numpy/numpy/commit/2f28db69b638844053029c06fd98b244883abd13
  Author: Ondřej Čertík <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  FIX: Add a test for Ticket #2066


  Commit: 5a471b5505e1e751e964cd3edade7db53a9596a9
      https://github.com/numpy/numpy/commit/5a471b5505e1e751e964cd3edade7db53a9596a9
  Author: Stefan van der Walt <stefan@sun.ac.za>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/lib/index_tricks.py
    M numpy/lib/tests/test_index_tricks.py

  Log Message:
  -----------
  Improve ndindex execution speed.


  Commit: 3dc3b1b0b7d5ba9f2f661a81d38849c060660b7d
      https://github.com/numpy/numpy/commit/3dc3b1b0b7d5ba9f2f661a81d38849c060660b7d
  Author: Stefan van der Walt <stefan@sun.ac.za>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/lib/index_tricks.py

  Log Message:
  -----------
  Retain backward compatibility. Enforce C order.


  Commit: 6e3e289f868c7c9e276a18587c0ad13ea1da66c5
      https://github.com/numpy/numpy/commit/6e3e289f868c7c9e276a18587c0ad13ea1da66c5
  Author: Ondřej Čertík <ondrej.certik@gmail.com>
  Date:   2012-09-12 (Wed, 12 Sep 2012)

  Changed paths:
    M numpy/random/mtrand/mtrand.c

  Log Message:
  -----------
  FIX: Regenerate mtrand.c with Cython 0.17

Fixes #416


  Commit: cb0de726df85cf97220ae53a96bb9854d1cdc695
      https://github.com/numpy/numpy/commit/cb0de726df85cf97220ae53a96bb9854d1cdc695
  Author: David Cournapeau <cournape@gmail.com>
  Date:   2012-09-13 (Thu, 13 Sep 2012)

  Changed paths:
    M bscript

  Log Message:
  -----------
  REF: remove unused imports in bscript.


  Commit: 095a3ab7f4bf2a760e6e192ed1d0c145522b3105
      https://github.com/numpy/numpy/commit/095a3ab7f4bf2a760e6e192ed1d0c145522b3105
  Author: David Cournapeau <cournape@gmail.com>
  Date:   2012-09-13 (Thu, 13 Sep 2012)

  Changed paths:
    M numpy/core/bento.info
    M numpy/core/bscript

  Log Message:
  -----------
  BUG: forgot to build _dotblas in bento build.


  Commit: 6da087eecb7e41ba875e9b9525d3d7660e8d03a3
      https://github.com/numpy/numpy/commit/6da087eecb7e41ba875e9b9525d3d7660e8d03a3
  Author: David Cournapeau <cournape@gmail.com>
  Date:   2012-09-13 (Thu, 13 Sep 2012)

  Changed paths:
    M numpy/build_utils/waf.py

  Log Message:
  -----------
  BUG: fix custom post_check.


  Commit: 07e02d07904f00fbe3c8c57fe7e2839671757f42
      https://github.com/numpy/numpy/commit/07e02d07904f00fbe3c8c57fe7e2839671757f42
  Author: David Cournapeau <cournape@gmail.com>
  Date:   2012-09-13 (Thu, 13 Sep 2012)

  Changed paths:
    M numpy/core/bento.info
    M numpy/core/bscript

  Log Message:
  -----------
  BUG: fix npymath install location.


  Commit: 84605147f797a8b7bfe0b07db1ed347bb1c6ed31
      https://github.com/numpy/numpy/commit/84605147f797a8b7bfe0b07db1ed347bb1c6ed31
  Author: Han Genuit <hangenuit@gmail.com>
  Date:   2012-09-13 (Thu, 13 Sep 2012)

  Changed paths:
    M numpy/lib/function_base.py

  Log Message:
  -----------
  BUG: Fix for issues #378 and #392
This should fix the problems with numpy.insert(), where the input values
were not checked for all scalar types and where values did not get inserted
properly, but got duplicated by default.


  Commit: 9ee99842f30eb20524c4a552826e04265d9e50b7
      https://github.com/numpy/numpy/commit/9ee99842f30eb20524c4a552826e04265d9e50b7
  Author: Han Genuit <hangenuit@gmail.com>
  Date:   2012-09-13 (Thu, 13 Sep 2012)

  Changed paths:
    M numpy/lib/tests/test_function_base.py

  Log Message:
  -----------
  TST: Add extra test for multidimensional inserts.


  Commit: 65ec87e9ec7b9b0d3a711a800a28bb78fb37e213
      https://github.com/numpy/numpy/commit/65ec87e9ec7b9b0d3a711a800a28bb78fb37e213
  Author: Han Genuit <hangenuit@gmail.com>
  Date:   2012-09-13 (Thu, 13 Sep 2012)

  Changed paths:
    M numpy/lib/tests/test_function_base.py

  Log Message:
  -----------
  TST: Add test for boolean insert


  Commit: d01354e52d5c272522c09ffd733887500e4846d7
      https://github.com/numpy/numpy/commit/d01354e52d5c272522c09ffd733887500e4846d7
  Author: Nathaniel J. Smith <njs@pobox.com>
  Date:   2012-09-13 (Thu, 13 Sep 2012)

  Changed paths:
    M numpy/random/tests/test_random.py

  Log Message:
  -----------
  FIX: loosen numerical tolerance in test_pareto()

The problem was that in 32bit Ubuntu 12.04, one gets the following:

>
/home/njs/numpy/.tox/py27/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py(363)test_pareto()
-> np.testing.assert_array_almost_equal(actual, desired, decimal=15)
(Pdb) actual[1, 0]
52828779.702948704
(Pdb) desired[1, 0]
52828779.702948518

and the test was comparing the numbers to 1e-14, which obviously
failed.

Fixes #424.


  Commit: fcacdcc253432c460d92dfaa7f216f7652944d88
      https://github.com/numpy/numpy/commit/fcacdcc253432c460d92dfaa7f216f7652944d88
  Author: Nathaniel J. Smith <njs@pobox.com>
  Date:   2012-09-13 (Thu, 13 Sep 2012)

  Changed paths:
    M .travis-make-py24-virtualenv.sh

  Log Message:
  -----------
  FIX: use py24-compatible version of virtualenv on Travis

Travis recently upgraded to virtualenv 1.8, which has dropped support
for Python 2.4. So, in our Python 2.4 setup script, we need to
explicitly fetch and use virtualenv 1.7. Likewise for pip 1.1.

File imported from the already-fixed version for patsy:
  https://github.com/pydata/patsy/blob/0316d2901f4195db06e8091c15f37d9fe4ad09de/.travis-make-py24-virtualenv.sh


Compare: https://github.com/numpy/numpy/compare/ea23de85d4ea...fcacdcc25343


More information about the Numpy-svn mailing list