From noreply at github.com Thu Aug 2 23:52:40 2012 From: noreply at github.com (GitHub) Date: Thu, 02 Aug 2012 20:52:40 -0700 Subject: [Numpy-svn] [numpy/numpy] 339c35: Copy bytes object when unpickling an array Message-ID: <501b4b08cc372_62c01480ae8600d7@sh3.rs.github.com.mail> Branch: refs/heads/master Home: https://github.com/numpy/numpy Commit: 339c35f30a0a3b52b13980dabb8eeda9602b686f https://github.com/numpy/numpy/commit/339c35f30a0a3b52b13980dabb8eeda9602b686f Author: Ronan Lamy Date: 2012-07-30 (Mon, 30 Jul 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: d1839283a2b0b393096cf6bda9b386ea5809d4b0 https://github.com/numpy/numpy/commit/d1839283a2b0b393096cf6bda9b386ea5809d4b0 Author: Ronan Lamy Date: 2012-08-02 (Thu, 02 Aug 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: fd15162fbff5dd68c548284947d39bb2a2481183 https://github.com/numpy/numpy/commit/fd15162fbff5dd68c548284947d39bb2a2481183 Author: Travis E. Oliphant Date: 2012-08-02 (Thu, 02 Aug 2012) Changed paths: M numpy/core/src/multiarray/methods.c M numpy/core/tests/test_regression.py Log Message: ----------- Merge pull request #371 from rlamy/bytes-pickle Copy bytes object for small arrays when unpickling an array Compare: https://github.com/numpy/numpy/compare/26fed25e7f04...fd15162fbff5 From noreply at github.com Sat Aug 4 01:46:23 2012 From: noreply at github.com (GitHub) Date: Fri, 03 Aug 2012 22:46:23 -0700 Subject: [Numpy-svn] [numpy/numpy] a9d58a: FIX: Fixes the PyUnicodeObject problem in py-3.3 Message-ID: <501cb72fa880_66f11300aec241f1@sh3.rs.github.com.mail> Branch: refs/heads/master Home: https://github.com/numpy/numpy Commit: a9d58ab42da8d2ed9071044848a54c5e066b557a https://github.com/numpy/numpy/commit/a9d58ab42da8d2ed9071044848a54c5e066b557a Author: Ondrej Certik Date: 2012-08-03 (Fri, 03 Aug 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: 4234b6b13e3ee9da6fc1c24e9e8c442d77587837 https://github.com/numpy/numpy/commit/4234b6b13e3ee9da6fc1c24e9e8c442d77587837 Author: Ondrej Certik Date: 2012-08-03 (Fri, 03 Aug 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: 09d2c51fa1d09b17060a8545b925f4dded9dedb1 https://github.com/numpy/numpy/commit/09d2c51fa1d09b17060a8545b925f4dded9dedb1 Author: Ondrej Certik Date: 2012-08-03 (Fri, 03 Aug 2012) Changed paths: M numpy/core/src/multiarray/scalarapi.c Log Message: ----------- Follow the C guidelines Commit: f2ac38f09ff258339ef44572a3abba02019e1f55 https://github.com/numpy/numpy/commit/f2ac38f09ff258339ef44572a3abba02019e1f55 Author: Ondrej Certik Date: 2012-08-03 (Fri, 03 Aug 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: 4676f33f9c77b04e9c599e642de7ab465f48ea8f https://github.com/numpy/numpy/commit/4676f33f9c77b04e9c599e642de7ab465f48ea8f Author: Travis E. Oliphant Date: 2012-08-03 (Fri, 03 Aug 2012) Changed paths: M numpy/core/src/multiarray/scalarapi.c M numpy/core/src/multiarray/scalartypes.c.src M numpy/core/tests/test_unicode.py Log Message: ----------- Merge pull request #372 from certik/py3.3-cleaner A fix for the ??PyUnicodeObject Python 3.3 Compare: https://github.com/numpy/numpy/compare/fd15162fbff5...4676f33f9c77 From noreply at github.com Sat Aug 4 08:35:50 2012 From: noreply at github.com (GitHub) Date: Sat, 04 Aug 2012 05:35:50 -0700 Subject: [Numpy-svn] [numpy/numpy] 8a4e0f: Fix memory leak in concatenate. Message-ID: <501d172676519_43261c32ae8294f0@sh2.rs.github.com.mail> Branch: refs/heads/master Home: https://github.com/numpy/numpy Commit: 8a4e0f57844452ceca43388cb87f5a53c3471c80 https://github.com/numpy/numpy/commit/8a4e0f57844452ceca43388cb87f5a53c3471c80 Author: Chris Date: 2012-08-03 (Fri, 03 Aug 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: fcdbcac4fa300a81e687fe93a956b54e7a6f7db5 https://github.com/numpy/numpy/commit/fcdbcac4fa300a81e687fe93a956b54e7a6f7db5 Author: Charles Harris Date: 2012-08-04 (Sat, 04 Aug 2012) Changed paths: M numpy/core/src/multiarray/multiarraymodule.c Log Message: ----------- Merge pull request #373 from cianci/concatenate_leak_fix Fix memory leak in concatenate. Compare: https://github.com/numpy/numpy/compare/4676f33f9c77...fcdbcac4fa30 From noreply at github.com Fri Aug 10 19:23:54 2012 From: noreply at github.com (GitHub) Date: Fri, 10 Aug 2012 16:23:54 -0700 Subject: [Numpy-svn] [numpy/numpy] 63cd8f: BUG: fix bento build. Message-ID: <5025980ac17b4_2101a21aec90139@sh3.rs.github.com.mail> Branch: refs/heads/master Home: https://github.com/numpy/numpy Commit: 63cd8f3cc751771fd27636009b8c0341a2beff45 https://github.com/numpy/numpy/commit/63cd8f3cc751771fd27636009b8c0341a2beff45 Author: David Cournapeau Date: 2012-08-10 (Fri, 10 Aug 2012) Changed paths: M numpy/core/bscript Log Message: ----------- BUG: fix bento build. From noreply at github.com Mon Aug 13 02:08:58 2012 From: noreply at github.com (GitHub) Date: Sun, 12 Aug 2012 23:08:58 -0700 Subject: [Numpy-svn] [numpy/numpy] 407702: Fix the path to the release notes Message-ID: <502899fa6322_7c8c14c1ae8367c1@sh3.rs.github.com.mail> Branch: refs/heads/maintenance/1.7.x Home: https://github.com/numpy/numpy Commit: 40770210f2e9fef0f453b5081ddd5a7f3bb9f652 https://github.com/numpy/numpy/commit/40770210f2e9fef0f453b5081ddd5a7f3bb9f652 Author: Ondrej Certik Date: 2012-08-12 (Sun, 12 Aug 2012) Changed paths: M pavement.py Log Message: ----------- Fix the path to the release notes This is needed in order to be able to do: paver write_release_and_log Commit: e022a61045fa861dc0bf8512167a4cf3a5943890 https://github.com/numpy/numpy/commit/e022a61045fa861dc0bf8512167a4cf3a5943890 Author: Ralf Gommers Date: 2012-08-12 (Sun, 12 Aug 2012) Changed paths: M pavement.py Log Message: ----------- Merge pull request #384 from certik/paver_fix Fix the path to the release notes Compare: https://github.com/numpy/numpy/compare/f93774d98114...e022a61045fa From noreply at github.com Tue Aug 21 02:19:40 2012 From: noreply at github.com (GitHub) Date: Mon, 20 Aug 2012 23:19:40 -0700 Subject: [Numpy-svn] [numpy/numpy] 50366a: Release 1.7.0b1 Message-ID: <5033287c79405_47e716a7aec110419@sh3.rs.github.com.mail> Branch: refs/heads/maintenance/1.7.x Home: https://github.com/numpy/numpy Commit: 50366a2ac0d6158e4434ec5e5b4a9a521610628b https://github.com/numpy/numpy/commit/50366a2ac0d6158e4434ec5e5b4a9a521610628b Author: Ond?ej ?ert?k Date: 2012-08-20 (Mon, 20 Aug 2012) Changed paths: M pavement.py M setup.py Log Message: ----------- Release 1.7.0b1 From noreply at github.com Tue Aug 21 02:20:12 2012 From: noreply at github.com (GitHub) Date: Mon, 20 Aug 2012 23:20:12 -0700 Subject: [Numpy-svn] [numpy/numpy] Message-ID: <5033289c73ed9_4ceee02af4521ed@sh3.rs.github.com.mail> Branch: refs/tags/v1.7.0b1 Home: https://github.com/numpy/numpy From noreply at github.com Tue Aug 21 02:21:40 2012 From: noreply at github.com (GitHub) Date: Mon, 20 Aug 2012 23:21:40 -0700 Subject: [Numpy-svn] [numpy/numpy] 28ffac: REL: set version number to 1.7.0rc1-dev. Message-ID: <503328f4cc1d2_54fb13fbaf01048e2@sh2.rs.github.com.mail> Branch: refs/heads/maintenance/1.7.x Home: https://github.com/numpy/numpy Commit: 28ffac79cb2f71dc19e493b099d11f4aad6a1844 https://github.com/numpy/numpy/commit/28ffac79cb2f71dc19e493b099d11f4aad6a1844 Author: Ralf Gommers Date: 2012-08-20 (Mon, 20 Aug 2012) Changed paths: M setup.py Log Message: ----------- REL: set version number to 1.7.0rc1-dev. From noreply at github.com Wed Aug 22 04:07:54 2012 From: noreply at github.com (GitHub) Date: Wed, 22 Aug 2012 01:07:54 -0700 Subject: [Numpy-svn] [numpy/numpy] ea23de: TST: set raise-on-warning behavior of NoseTester t... Message-ID: <5034935abf91a_cb01779aec9407c@sh2.rs.github.com.mail> Branch: refs/heads/maintenance/1.7.x Home: https://github.com/numpy/numpy Commit: ea23de85d4ead5acc40147b6dd88823ce9a815a3 https://github.com/numpy/numpy/commit/ea23de85d4ead5acc40147b6dd88823ce9a815a3 Author: Ralf Gommers Date: 2012-08-22 (Wed, 22 Aug 2012) Changed paths: M numpy/testing/nosetester.py Log Message: ----------- TST: set raise-on-warning behavior of NoseTester to release mode. From noreply at github.com Wed Aug 22 09:05:54 2012 From: noreply at github.com (GitHub) Date: Wed, 22 Aug 2012 06:05:54 -0700 Subject: [Numpy-svn] [numpy/numpy] fb2df7: pavement.py: rename "yop" to "atlas" Message-ID: <5034d9321ea6a_7f621d29af0775da@sh2.rs.github.com.mail> Branch: refs/heads/master Home: https://github.com/numpy/numpy Commit: fb2df768354e60d5d261a2523b4d2ac626c03d8c https://github.com/numpy/numpy/commit/fb2df768354e60d5d261a2523b4d2ac626c03d8c Author: Ondrej Certik Date: 2012-08-14 (Tue, 14 Aug 2012) Changed paths: M pavement.py Log Message: ----------- pavement.py: rename "yop" to "atlas" Commit: 5c944b9c6915264380aa2df3dcfd0629867fbe80 https://github.com/numpy/numpy/commit/5c944b9c6915264380aa2df3dcfd0629867fbe80 Author: David Cournapeau Date: 2012-08-22 (Wed, 22 Aug 2012) Changed paths: M pavement.py Log Message: ----------- Merge pull request #386 from certik/yop_atlas pavement.py: rename "yop" to "atlas" Compare: https://github.com/numpy/numpy/compare/63cd8f3cc751...5c944b9c6915 From noreply at github.com Fri Aug 31 08:52:30 2012 From: noreply at github.com (GitHub) Date: Fri, 31 Aug 2012 05:52:30 -0700 Subject: [Numpy-svn] [numpy/numpy] 132b37: MAINT: silence DeprecationWarning in np.safe_eval(... Message-ID: <5040b38ed4e46_62301723ae832010@sh2.rs.github.com.mail> Branch: refs/heads/master Home: https://github.com/numpy/numpy Commit: 132b373a3e50286534df73d07215c11d14d71dda https://github.com/numpy/numpy/commit/132b373a3e50286534df73d07215c11d14d71dda Author: Ralf Gommers Date: 2012-08-22 (Wed, 22 Aug 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: 68320a10f2e29a70a9a39110263c040aab689147 https://github.com/numpy/numpy/commit/68320a10f2e29a70a9a39110263c040aab689147 Author: njsmith Date: 2012-08-31 (Fri, 31 Aug 2012) Changed paths: M numpy/lib/utils.py Log Message: ----------- Merge pull request #390 from rgommers/silence-deprecation-warning MAINT: silence DeprecationWarning in np.safe_eval(). Compare: https://github.com/numpy/numpy/compare/5c944b9c6915...68320a10f2e2 From noreply at github.com Fri Aug 31 17:45:41 2012 From: noreply at github.com (GitHub) Date: Fri, 31 Aug 2012 14:45:41 -0700 Subject: [Numpy-svn] [numpy/numpy] 93100c: Fix returned copy Message-ID: <50413085f3933_67431a32af466153@sh3.rs.github.com.mail> Branch: refs/heads/master Home: https://github.com/numpy/numpy Commit: 93100c92b57dd9663b688fdd94efc7d05ef7ff38 https://github.com/numpy/numpy/commit/93100c92b57dd9663b688fdd94efc7d05ef7ff38 Author: Jay Bourque Date: 2012-08-31 (Fri, 31 Aug 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: c6d8734eddc133d2fe6babc7bde53d5e981945a1 https://github.com/numpy/numpy/commit/c6d8734eddc133d2fe6babc7bde53d5e981945a1 Author: Ond?ej ?ert?k Date: 2012-08-31 (Fri, 31 Aug 2012) Changed paths: M numpy/core/_internal.py M numpy/core/tests/test_multiarray.py Log Message: ----------- Merge pull request #401 from jayvius/get-view-fix BUG: Fix Ticket #2187 Compare: https://github.com/numpy/numpy/compare/68320a10f2e2...c6d8734eddc1 From noreply at github.com Fri Aug 31 18:04:31 2012 From: noreply at github.com (GitHub) Date: Fri, 31 Aug 2012 15:04:31 -0700 Subject: [Numpy-svn] [numpy/numpy] ecbd93: FIX: bug in np.where and recarray swapping Message-ID: <504134ef9f6af_5b15ec7ae8639d@sh3.rs.github.com.mail> Branch: refs/heads/master Home: https://github.com/numpy/numpy Commit: ecbd938adb1a370017a5ff8ca20b2c66141f48fe https://github.com/numpy/numpy/commit/ecbd938adb1a370017a5ff8ca20b2c66141f48fe Author: Ond?ej ?ert?k Date: 2012-08-29 (Wed, 29 Aug 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: 8c75aa01e2f4ec02eb1d852a14da3e9e03107da8 https://github.com/numpy/numpy/commit/8c75aa01e2f4ec02eb1d852a14da3e9e03107da8 Author: Ond?ej ?ert?k Date: 2012-08-31 (Fri, 31 Aug 2012) Changed paths: M numpy/core/src/multiarray/scalarapi.c M numpy/core/tests/test_regression.py Log Message: ----------- Merge pull request #395 from certik/fix369 FIX: bug in np.where and recarray swapping Compare: https://github.com/numpy/numpy/compare/c6d8734eddc1...8c75aa01e2f4 From noreply at github.com Fri Aug 31 18:46:43 2012 From: noreply at github.com (GitHub) Date: Fri, 31 Aug 2012 15:46:43 -0700 Subject: [Numpy-svn] [numpy/numpy] 8b2e6b: BUG: Fix ticket #1588/gh issue #398, refcount erro... Message-ID: <50413ed332c6e_92510d4ae833068@sh3.rs.github.com.mail> Branch: refs/heads/master Home: https://github.com/numpy/numpy Commit: 8b2e6bed904415006d59344b27a0b23b35fab9ca https://github.com/numpy/numpy/commit/8b2e6bed904415006d59344b27a0b23b35fab9ca Author: Mark Wiebe Date: 2012-08-31 (Fri, 31 Aug 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: 103988055053f7a30083fd28c0887a5f2922a67c https://github.com/numpy/numpy/commit/103988055053f7a30083fd28c0887a5f2922a67c Author: Ond?ej ?ert?k Date: 2012-08-31 (Fri, 31 Aug 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: e60c70d7ca5dbe45860c44673ddab02d47770155 https://github.com/numpy/numpy/commit/e60c70d7ca5dbe45860c44673ddab02d47770155 Author: Ond?ej ?ert?k Date: 2012-08-31 (Fri, 31 Aug 2012) Changed paths: M numpy/core/src/multiarray/calculation.c M numpy/core/tests/test_regression.py Log Message: ----------- Merge pull request #405 from certik/pr400_fix BUG: Fix ticket #1588/gh issue #398, refcount error in clip Compare: https://github.com/numpy/numpy/compare/8c75aa01e2f4...e60c70d7ca5d