<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/f2py/common_rules.py, branch dependabot/pip/gitpython-3.1.14</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>MAINT: Use numpy version for f2py version.</title>
<updated>2020-08-22T20:33:35+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2020-08-19T14:23:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=8a6bcbcfe8db6cf2fd784631b480d5865077ad98'/>
<id>8a6bcbcfe8db6cf2fd784631b480d5865077ad98</id>
<content type='text'>
Because f2py is released as part of numpy, the old svn versioning
no longer makes sense and it was decided to use the numpy version
instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because f2py is released as part of numpy, the old svn versioning
no longer makes sense and it was decided to use the numpy version
instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>convert shebang from python to python3 (#15687)</title>
<updated>2020-03-04T08:22:40+00:00</updated>
<author>
<name>Changqing Li</name>
<email>changqing.li@windriver.com</email>
</author>
<published>2020-03-04T08:22:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=583901a074dc65145d3d6136ba7dcd02634d680b'/>
<id>583901a074dc65145d3d6136ba7dcd02634d680b</id>
<content type='text'>
Signed-off-by: Changqing Li &lt;changqing.li@windriver.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Changqing Li &lt;changqing.li@windriver.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Remove unnecessary 'from __future__ import ...' statements</title>
<updated>2020-01-03T15:48:11+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2019-08-27T11:36:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ed1e9659f103260a32536b4a7615393e3b1173dc'/>
<id>ed1e9659f103260a32536b4a7615393e3b1173dc</id>
<content type='text'>
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: General fixes to f2py reference counts (dereferencing)</title>
<updated>2019-08-19T18:13:28+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2018-12-31T00:28:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=684bee2ae868c1bd8cb4fd4066d447ca35bd848e'/>
<id>684bee2ae868c1bd8cb4fd4066d447ca35bd848e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Use list and dict comprehension when possible (#12445)</title>
<updated>2018-12-01T18:03:55+00:00</updated>
<author>
<name>Roman Yurchak</name>
<email>rth.yurchak@pm.me</email>
</author>
<published>2018-12-01T18:03:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=0ee245bc6df60b911fafe81a743ec2a68a063c20'/>
<id>0ee245bc6df60b911fafe81a743ec2a68a063c20</id>
<content type='text'>
* Use list comprehension

* More list comprehension migration

* Revert key copying in dict

* A few more fixes

* More reverts

* Use dict comprehension

* Fix dict comprehension

* Address review comments

* More review comments

* Fix for empty unpacking of zip(*

* Revert zip(* unpacking altogether

* Fix dict copying

* More simplifications
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Use list comprehension

* More list comprehension migration

* Revert key copying in dict

* A few more fixes

* More reverts

* Use dict comprehension

* Fix dict comprehension

* Address review comments

* More review comments

* Fix for empty unpacking of zip(*

* Revert zip(* unpacking altogether

* Fix dict copying

* More simplifications
</pre>
</div>
</content>
</entry>
<entry>
<title>STY: Make PEP8 fixes in numpy/f2py</title>
<updated>2015-07-26T05:18:23+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2015-07-26T04:49:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a0121573e6685f09e5f613280d616070b8ff99cb'/>
<id>a0121573e6685f09e5f613280d616070b8ff99cb</id>
<content type='text'>
Decided to bite the bullet on this one. The code is certainly more
readable, so should be easier to fix if we need to.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Decided to bite the bullet on this one. The code is certainly more
readable, so should be easier to fix if we need to.
</pre>
</div>
</content>
</entry>
<entry>
<title>STY: Make pyflakes fixes in numpy/f2py</title>
<updated>2015-07-26T05:18:23+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2015-07-26T04:38:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b80d1f979efb528e855263a38b389cebd3eb90e1'/>
<id>b80d1f979efb528e855263a38b389cebd3eb90e1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>STY: Giant comma spacing fixup.</title>
<updated>2013-08-18T17:51:25+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-08-18T17:51:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=fbd6510d58a47ea0d166c48a82793f05425406e4'/>
<id>fbd6510d58a47ea0d166c48a82793f05425406e4</id>
<content type='text'>
Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long
and will need to be broken at some point. OTOH, some lines were already
too long and need to be broken at some point. Now seems as good a time
as any to do this with open PRs at a minimum.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long
and will need to be broken at some point. OTOH, some lines were already
too long and need to be broken at some point. Now seems as good a time
as any to do this with open PRs at a minimum.
</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 `map` fixer.</title>
<updated>2013-04-10T22:41:13+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-04-09T18:44:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a6164794a63215e23fa28432d9acec4727c68d02'/>
<id>a6164794a63215e23fa28432d9acec4727c68d02</id>
<content type='text'>
In Python 3 `map` is an iterator while in Python 2 it returns a list.
The simple fix applied by the fixer is to inclose all instances of map
with `list(...)`. This is not needed in all cases, and even where
appropriate list comprehensions may be preferred for their clarity.
Consequently, this patch attempts to use list comprehensions where it
makes sense.

When the mapped function has two arguments there is another problem that
can arise. In Python 3 map stops execution when the shortest argument
list is exhausted, while in Python 2 it stops when the longest argument
list is exhausted. Consequently the two argument case might need special
care. However, we have been running Python3 converted versions of numpy
since 1.5 without problems, so it is probably not something that affects
us.

Closes #3068
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Python 3 `map` is an iterator while in Python 2 it returns a list.
The simple fix applied by the fixer is to inclose all instances of map
with `list(...)`. This is not needed in all cases, and even where
appropriate list comprehensions may be preferred for their clarity.
Consequently, this patch attempts to use list comprehensions where it
makes sense.

When the mapped function has two arguments there is another problem that
can arise. In Python 3 map stops execution when the shortest argument
list is exhausted, while in Python 2 it stops when the longest argument
list is exhausted. Consequently the two argument case might need special
care. However, we have been running Python3 converted versions of numpy
since 1.5 without problems, so it is probably not something that affects
us.

Closes #3068
</pre>
</div>
</content>
</entry>
</feed>
