<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/lib/_iotools.py, branch v1.10.0rc2</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>BUG: genfromtxt gave OverflorError for large integers</title>
<updated>2015-03-06T19:59:09+00:00</updated>
<author>
<name>Thomas Robitaille</name>
<email>thomas.robitaille@gmail.com</email>
</author>
<published>2015-03-05T22:44:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=2c3ef4cbe8af6fddd82d7e90433f92b23cbcdd37'/>
<id>2c3ef4cbe8af6fddd82d7e90433f92b23cbcdd37</id>
<content type='text'>
Fix StringConverter to avoid OverflowError in genfromtxt. Before, int(2**66) would work
(and return a ‘long’) but then np.array([2**66], dtype=np.integer) would not work and
return an OverflowError which would propagate to genfromtxt. This commit fixes this by
ensuring testing in advance whether an OverflowError will occur. In addition, this adds
an explicit np.int64 entry on systems where integer means int32. Values larger than
2**63-1 will be cast as float. This includes a regression test and adds an entry to the
release notes.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix StringConverter to avoid OverflowError in genfromtxt. Before, int(2**66) would work
(and return a ‘long’) but then np.array([2**66], dtype=np.integer) would not work and
return an OverflowError which would propagate to genfromtxt. This commit fixes this by
ensuring testing in advance whether an OverflowError will occur. In addition, this adds
an explicit np.int64 entry on systems where integer means int32. Values larger than
2**63-1 will be cast as float. This includes a regression test and adds an entry to the
release notes.</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Reconcile docstrings and function signatures where they disagree</title>
<updated>2015-03-02T20:00:18+00:00</updated>
<author>
<name>Robert McGibbon</name>
<email>rmcgibbo@gmail.com</email>
</author>
<published>2015-03-02T06:53:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=6ca778d275ade854cfc81a6a975230c4ccd9402c'/>
<id>6ca778d275ade854cfc81a6a975230c4ccd9402c</id>
<content type='text'>
Fixed typos in docstrings were updated for functions where the parameter
names in the docstring didn't match the function signature.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed typos in docstrings were updated for functions where the parameter
names in the docstring didn't match the function signature.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Make argument determination in NameValidator more precise.</title>
<updated>2015-01-23T23:21:15+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2015-01-23T23:10:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=6bb48b0639322a0f5908996f33c98db62304b839'/>
<id>6bb48b0639322a0f5908996f33c98db62304b839</id>
<content type='text'>
The function was useing `'u' in case_sensitive` to detect `upper`.
Make that more precise with `case_sensitive.startswith('u').

Raise ValueError if case_sensitive has unrecognized value.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function was useing `'u' in case_sensitive` to detect `upper`.
Make that more precise with `case_sensitive.startswith('u').

Raise ValueError if case_sensitive has unrecognized value.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Closes #2917: numpy.lib._iotools.StringConverter.upgrade return</title>
<updated>2014-11-30T09:07:15+00:00</updated>
<author>
<name>Garrett-R</name>
<email>garrettreynolds5@gmail.com</email>
</author>
<published>2014-11-30T07:35:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b82388e32ab4c717fd952fa4b8b0ece5512c9972'/>
<id>b82388e32ab4c717fd952fa4b8b0ece5512c9972</id>
<content type='text'>
numpy.lib._iotools.StringConverter.upgrade should have a return value
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
numpy.lib._iotools.StringConverter.upgrade should have a return value
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Fix typo in _iotools.py docstring.</title>
<updated>2014-08-01T01:36:58+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2014-08-01T01:34:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=34698b64f90b985396f123f3659edc7a95d232ee'/>
<id>34698b64f90b985396f123f3659edc7a95d232ee</id>
<content type='text'>
The error is in the StringConverter.upgrade docstring.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The error is in the StringConverter.upgrade docstring.
</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>2to3: Apply unicode fixer.</title>
<updated>2013-04-22T02:56:15+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-04-17T06:04:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=3a5c5475b5c2043dbe6791d3a5100a45d491546e'/>
<id>3a5c5475b5c2043dbe6791d3a5100a45d491546e</id>
<content type='text'>
The unicode fixer strips the u from u'hi' and converts the unicode type
to str. The first won't work for Python 2 and instead we replace the u
prefix with the sixu function borrowed from the six compatibility
package. That function calls the unicode constructor with the
'unicode_escape' encoder so that the many tests using escaped unicode
characters like u'\u0900' will be handled correctly. That makes the
sixu function a bit different from the asunicode function currently in
numpy.compat and also provides a target that can be converted back to
the u prefix when support for Python 3.2 is dropped. Python 3.3
reintroduced the u prefix for compatibility.

The unicode fixer also replaces 'unicode' with 'str' as 'unicode' is no
longer a builtin in Python 3. For code compatibility, 'unicode' is
defined either as 'str' or 'unicode' in numpy.compat so that checks like

    if isinstance(x, unicode):
        ...

will work properly for all python versions.

Closes #3089.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The unicode fixer strips the u from u'hi' and converts the unicode type
to str. The first won't work for Python 2 and instead we replace the u
prefix with the sixu function borrowed from the six compatibility
package. That function calls the unicode constructor with the
'unicode_escape' encoder so that the many tests using escaped unicode
characters like u'\u0900' will be handled correctly. That makes the
sixu function a bit different from the asunicode function currently in
numpy.compat and also provides a target that can be converted back to
the u prefix when support for Python 3.2 is dropped. Python 3.3
reintroduced the u prefix for compatibility.

The unicode fixer also replaces 'unicode' with 'str' as 'unicode' is no
longer a builtin in Python 3. For code compatibility, 'unicode' is
defined either as 'str' or 'unicode' in numpy.compat so that checks like

    if isinstance(x, unicode):
        ...

will work properly for all python versions.

Closes #3089.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #3244 from charris/2to3-apply-zip-fixer</title>
<updated>2013-04-14T14:41:43+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-04-14T14:41:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=3f2c789ffd0d2e05596b15ea6cd644262f96200e'/>
<id>3f2c789ffd0d2e05596b15ea6cd644262f96200e</id>
<content type='text'>
2to3: Apply zip fixer.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
2to3: Apply zip fixer.</pre>
</div>
</content>
</entry>
<entry>
<title>2to3: Apply zip fixer.</title>
<updated>2013-04-13T23:04:13+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-04-13T21:34:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=0dfe67afd1ee9e4c905bf119673f6e634221f21b'/>
<id>0dfe67afd1ee9e4c905bf119673f6e634221f21b</id>
<content type='text'>
In Python 3 zip returns an iterator instead of a list. Consequently, in
places where an iterator won't do it must be enclosed in list(...).
Lists instead of iterators are also used in array constructors as using
iterators there usually results in an object array containing an
iterator object.

Closes #3094
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Python 3 zip returns an iterator instead of a list. Consequently, in
places where an iterator won't do it must be enclosed in list(...).
Lists instead of iterators are also used in array constructors as using
iterators there usually results in an object array containing an
iterator object.

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