<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/numarray, branch maintenance/1.7.x</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>BUG: fix undefined function and add integer divisions in numarray</title>
<updated>2013-06-22T11:40:43+00:00</updated>
<author>
<name>Julian Taylor</name>
<email>jtaylor.debian@googlemail.com</email>
</author>
<published>2013-03-26T18:35:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=3a587d787b184ff94f970baf6d4b4ee1db9ba96b'/>
<id>3a587d787b184ff94f970baf6d4b4ee1db9ba96b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename PyArray_RequireWriteable to PyArray_FailUnlessWriteable</title>
<updated>2012-05-22T10:19:11+00:00</updated>
<author>
<name>Nathaniel J. Smith</name>
<email>njs@pobox.com</email>
</author>
<published>2012-05-22T10:16:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=51616c9265155f75e536ba19c32f9f91337243af'/>
<id>51616c9265155f75e536ba19c32f9f91337243af</id>
<content type='text'>
Also clean up its API slightly so that the caller passes in a name
describing the array being checked which is used to generate an error
message, rather than writing an error message from scratch.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also clean up its API slightly so that the caller passes in a name
describing the array being checked which is used to generate an error
message, rather than writing an error message from scratch.
</pre>
</div>
</content>
</entry>
<entry>
<title>Funnel all assignments to PyArrayObject-&gt;base through a single point</title>
<updated>2012-05-15T17:48:08+00:00</updated>
<author>
<name>Nathaniel J. Smith</name>
<email>njs@pobox.com</email>
</author>
<published>2012-05-15T17:32:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=6a90adaea6ba4330e8da4db546425d9cdcc5a940'/>
<id>6a90adaea6ba4330e8da4db546425d9cdcc5a940</id>
<content type='text'>
This patch removes all direct assignments of non-NULL values to the
'base' field on PyArrayObjects. A new utility function was created to
set up UPDATEIFCOPY arrays, and all assignments to 'base' were
adjusted to use either PyArray_SetBaseObject or the new
PyArray_SetUpdateIfCopyBase.

One advantage of this is that it produces more consistent error
handling. This error handling revealed a bug in the nditer code,
which this patch does *not* yet fix.

The bug is that npyiter_new_temp_array sometimes (when dealing with
reversed axes) creates an array and then returns a view onto it. But,
npyiter_allocate_arrays assumes that the array returned by
npyiter_new_temp_array can have UPDATEIFCOPY set, which requires
reassigning its 'base' field. Previously, this meant that the
temporary array leaked. Now, it produces a ValueError.

This code path doesn't seem to actually be hit very often; only one of
the nditer tests fails because of the change. See
   numpy/core/tests/test_nditer.py:test_iter_array_cast_buggy
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch removes all direct assignments of non-NULL values to the
'base' field on PyArrayObjects. A new utility function was created to
set up UPDATEIFCOPY arrays, and all assignments to 'base' were
adjusted to use either PyArray_SetBaseObject or the new
PyArray_SetUpdateIfCopyBase.

One advantage of this is that it produces more consistent error
handling. This error handling revealed a bug in the nditer code,
which this patch does *not* yet fix.

The bug is that npyiter_new_temp_array sometimes (when dealing with
reversed axes) creates an array and then returns a view onto it. But,
npyiter_allocate_arrays assumes that the array returned by
npyiter_new_temp_array can have UPDATEIFCOPY set, which requires
reassigning its 'base' field. Previously, this meant that the
temporary array leaked. Now, it produces a ValueError.

This code path doesn't seem to actually be hit very often; only one of
the nditer tests fails because of the change. See
   numpy/core/tests/test_nditer.py:test_iter_array_cast_buggy
</pre>
</div>
</content>
</entry>
<entry>
<title>Consolidate all array writeability checking in new PyArray_RequireWriteable</title>
<updated>2012-05-15T14:02:24+00:00</updated>
<author>
<name>Nathaniel J. Smith</name>
<email>njs@pobox.com</email>
</author>
<published>2012-05-14T22:43:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=cbce4e6565e7a7fbe065502b264622ce7d64740a'/>
<id>cbce4e6565e7a7fbe065502b264622ce7d64740a</id>
<content type='text'>
This is mostly a code cleanup, but it does have a user-visible effect
in that attempting to write to a unwriteable array now consistently
raises ValueError. (It used to randomly raise either ValueError or
RuntimeError.)

Passes numpy.test("full").
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is mostly a code cleanup, but it does have a user-visible effect
in that attempting to write to a unwriteable array now consistently
raises ValueError. (It used to randomly raise either ValueError or
RuntimeError.)

Passes numpy.test("full").
</pre>
</div>
</content>
</entry>
<entry>
<title>DEP: Update all the '#define NPY_NO_DEPRECATED_API' instances to be</title>
<updated>2012-04-06T21:54:30+00:00</updated>
<author>
<name>Mark Wiebe</name>
<email>mwwiebe@gmail.com</email>
</author>
<published>2012-02-05T00:28:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=e1218cc68ddab6b806628877de19394616df04f7'/>
<id>e1218cc68ddab6b806628877de19394616df04f7</id>
<content type='text'>
versioned
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
versioned
</pre>
</div>
</content>
</entry>
<entry>
<title>UPDATE: Replace macros in old_defines.h by new.</title>
<updated>2012-02-04T23:11:39+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2012-02-02T01:42:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=8a0e7cd26ea2803b8580dcca1d1306baa1d702dc'/>
<id>8a0e7cd26ea2803b8580dcca1d1306baa1d702dc</id>
<content type='text'>
With the exception of the numarray fixups these were all instances
that were results of code generation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With the exception of the numarray fixups these were all instances
that were results of code generation.
</pre>
</div>
</content>
</entry>
<entry>
<title>STY: Remove trailing whitespace</title>
<updated>2011-07-26T17:09:24+00:00</updated>
<author>
<name>Mark Wiebe</name>
<email>mwiebe@enthought.com</email>
</author>
<published>2011-07-26T17:07:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=affea42d886e8233fdd6f3c5760708e3a9e9b1b8'/>
<id>affea42d886e8233fdd6f3c5760708e3a9e9b1b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: core: Rename PyArray_SetBase to PyArray_SetBaseObject to be more clear</title>
<updated>2011-07-22T20:40:28+00:00</updated>
<author>
<name>Mark Wiebe</name>
<email>mwiebe@enthought.com</email>
</author>
<published>2011-07-22T20:40:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=a2ed62a5f42459a14c233cef35f07a032c9ca36c'/>
<id>a2ed62a5f42459a14c233cef35f07a032c9ca36c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: core: More cleanups removing direct PyArrayObject field access</title>
<updated>2011-07-19T19:00:28+00:00</updated>
<author>
<name>Mark Wiebe</name>
<email>mwiebe@enthought.com</email>
</author>
<published>2011-07-18T17:47:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=57d6b5bebb039dc6b2b3c5a2cc7bfc8e2cc3fb98'/>
<id>57d6b5bebb039dc6b2b3c5a2cc7bfc8e2cc3fb98</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: core: Progress getting NumPy building without direct field access</title>
<updated>2011-07-19T19:00:27+00:00</updated>
<author>
<name>Mark Wiebe</name>
<email>mwwiebe@gmail.com</email>
</author>
<published>2011-07-15T06:35:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=2bb06a5cc043943ba4147b3ddeb5fd8835310200'/>
<id>2bb06a5cc043943ba4147b3ddeb5fd8835310200</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
