<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/lib/arrayterator.py, branch v1.12.0rc1</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>DOC: Use print only as function when print_function is imported from __future__</title>
<updated>2015-12-20T00:50:09+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung17@gmail.com</email>
</author>
<published>2015-12-20T00:49:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=8bc592fabf4a2b0bc76db996b1523330ba095be3'/>
<id>8bc592fabf4a2b0bc76db996b1523330ba095be3</id>
<content type='text'>
Closes gh-6863.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes gh-6863.
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: add lib.Arrayterator to reference guide.  Closes gh-6404.</title>
<updated>2015-10-11T01:52:01+00:00</updated>
<author>
<name>Ralf Gommers</name>
<email>ralf.gommers@gmail.com</email>
</author>
<published>2015-10-11T01:52:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=18ba6812fd9de8c0d7eaf22d0e0288b4ce24e389'/>
<id>18ba6812fd9de8c0d7eaf22d0e0288b4ce24e389</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: remove use of 'raise StopIteration' from generators</title>
<updated>2015-06-25T01:32:07+00:00</updated>
<author>
<name>Nathaniel J. Smith</name>
<email>njs@pobox.com</email>
</author>
<published>2015-06-25T01:32:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e552922fe6c8854541337a10970ff1b62caffc70'/>
<id>e552922fe6c8854541337a10970ff1b62caffc70</id>
<content type='text'>
This triggers a PendingDeprecationWarning in py3.5 -- you're supposed
to just write "return" instead (which on earlier versions is
equivalent). See PEP 479: https://www.python.org/dev/peps/pep-0479/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This triggers a PendingDeprecationWarning in py3.5 -- you're supposed
to just write "return" instead (which on earlier versions is
equivalent). See PEP 479: https://www.python.org/dev/peps/pep-0479/
</pre>
</div>
</content>
</entry>
<entry>
<title>STY: Make files in numpy/lib PEP8 compliant.</title>
<updated>2014-07-31T19:21:17+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2014-07-31T00:06:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=01b0d7e82211b581aaff925e3ccc36cff9ac1895'/>
<id>01b0d7e82211b581aaff925e3ccc36cff9ac1895</id>
<content type='text'>
The rules enforced are the same as those used for scipy.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The rules enforced are the same as those used for scipy.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Fixes for problems in numpy/lib revealed by pyflakes.</title>
<updated>2014-07-31T19:21:13+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2014-07-30T22:48:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=dec6658cdc10a23ad0e733fb52a814306033d88c'/>
<id>dec6658cdc10a23ad0e733fb52a814306033d88c</id>
<content type='text'>
Some of those problems look like potential coding errors. In those
cases a Fixme comment was made and the offending code, usually an
unused variable, was commented out.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some of those problems look like potential coding errors. In those
cases a Fixme comment was made and the offending code, usually an
unused variable, was commented out.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Apply 2to3 idioms fixer.</title>
<updated>2013-05-03T03:13:17+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-04-27T03:31:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=dec4f4b76ae9b2b953bcc093275aa59f93adf6fd'/>
<id>dec4f4b76ae9b2b953bcc093275aa59f93adf6fd</id>
<content type='text'>
The idioms fixer makes the following replacements.

1) int &lt;- bool
2) comparison or identity of types &lt;- isinstance
3) a.sort() &lt;- sorted(a)

There were two problems that needed to be dealt with after the
application of the fixer. First, the replacement of comparison or
identity of types by isinstance was not always correct.  The isinstance
function returns true for subtypes whereas many of the places where the
fixer made a substitution needed to check for exact type equality.
Second, the sorted function was applied to arrays, but because it treats
them as iterators and constructs a sorted list from the result, that is
the wrong thing to do.

Closes #3062.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The idioms fixer makes the following replacements.

1) int &lt;- bool
2) comparison or identity of types &lt;- isinstance
3) a.sort() &lt;- sorted(a)

There were two problems that needed to be dealt with after the
application of the fixer. First, the replacement of comparison or
identity of types by isinstance was not always correct.  The isinstance
function returns true for subtypes whereas many of the places where the
fixer made a substitution needed to check for exact type equality.
Second, the sorted function was applied to arrays, but because it treats
them as iterators and constructs a sorted list from the result, that is
the wrong thing to do.

Closes #3062.
</pre>
</div>
</content>
</entry>
<entry>
<title>2to3: Apply the `numliterals` fixer and skip the `long` fixer.</title>
<updated>2013-04-13T13:43:56+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-04-11T20:31:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7f5af37e26ba2e99ad3ee6928b78437f601e96e0'/>
<id>7f5af37e26ba2e99ad3ee6928b78437f601e96e0</id>
<content type='text'>
The numliterals fixer replaces the old style octal number like '01' by
'0o1' removes the 'L' suffix.

Octal values were previously mistakenly specified in some dates, those
uses have been corrected by removing the leading zeros.

Simply Removing the 'L' suffix should not be a problem, but in some
testing code it looks neccesary, so in those places the Python long
constructor is used instead.

The 'long' type is no longer defined in Python 3. Because we need to
have it defined for Python 2 it is added to numpy/compat/np3k.py where
it is defined as 'int' for Python 3 and 'long' for Python 2. The `long`
fixer then needs to be skipped so that it doesn't undo the good work.

Closes #3074, #3067.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The numliterals fixer replaces the old style octal number like '01' by
'0o1' removes the 'L' suffix.

Octal values were previously mistakenly specified in some dates, those
uses have been corrected by removing the leading zeros.

Simply Removing the 'L' suffix should not be a problem, but in some
testing code it looks neccesary, so in those places the Python long
constructor is used instead.

The 'long' type is no longer defined in Python 3. Because we need to
have it defined for Python 2 it is added to numpy/compat/np3k.py where
it is defined as 'int' for Python 3 and 'long' for Python 2. The `long`
fixer then needs to be skipped so that it doesn't undo the good work.

Closes #3074, #3067.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #3202 from charris/2to3-reduce-fixups</title>
<updated>2013-04-07T10:39:34+00:00</updated>
<author>
<name>njsmith</name>
<email>njs@pobox.com</email>
</author>
<published>2013-04-07T10:39:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ef76d4928ea1591d382fceaa416678907ea76098'/>
<id>ef76d4928ea1591d382fceaa416678907ea76098</id>
<content type='text'>
MAINT: Cleanup some imports involving reduce.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MAINT: Cleanup some imports involving reduce.</pre>
</div>
</content>
</entry>
<entry>
<title>2to3: Apply `print` fixer.</title>
<updated>2013-04-06T19:25:26+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-04-06T19:25:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=bb726ca19f434f5055c0efceefe48d89469fcbbe'/>
<id>bb726ca19f434f5055c0efceefe48d89469fcbbe</id>
<content type='text'>
Add `print_function` to all `from __future__ import ...` statements
and use the python3 print function syntax everywhere.

Closes #3078.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add `print_function` to all `from __future__ import ...` statements
and use the python3 print function syntax everywhere.

Closes #3078.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Cleanup some imports involving reduce.</title>
<updated>2013-04-06T16:29:12+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-04-06T16:02:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=77e09f14bdf9eeebbd20ca861cb51da3e570bb72'/>
<id>77e09f14bdf9eeebbd20ca861cb51da3e570bb72</id>
<content type='text'>
Because reduce has been available in functools since Python 2.6 we
can get rid of the version checks we currently have before we import
it.

Also removes some reduce related skips in tools/py3tool.py. We were
already skipping the reduce fixer so this has no effect other than
cleaning up the code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because reduce has been available in functools since Python 2.6 we
can get rid of the version checks we currently have before we import
it.

Also removes some reduce related skips in tools/py3tool.py. We were
already skipping the reduce fixer so this has no effect other than
cleaning up the code.
</pre>
</div>
</content>
</entry>
</feed>
