<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/random, branch v1.13.2</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,BUG: Fix mtrand for Cython 0.27.</title>
<updated>2017-09-26T13:47:05+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2017-09-25T16:55:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=76e05a187b296f6e5a4976c6537526280c1a6ed9'/>
<id>76e05a187b296f6e5a4976c6537526280c1a6ed9</id>
<content type='text'>
The `import_array()` macro, that defined a C code block that included a
return, was not handled correctly. The fix here is to cdef a replacement
`import_array` function with a defined error return. The new function is
a slight variation of the corresponding function defined by Cython.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `import_array()` macro, that defined a C code block that included a
return, was not handled correctly. The fix here is to cdef a replacement
`import_array` function with a defined error return. The new function is
a slight variation of the corresponding function defined by Cython.
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: BLD: fix lots of Sphinx warnings/errors.</title>
<updated>2017-06-10T06:17:43+00:00</updated>
<author>
<name>Ralf Gommers</name>
<email>ralf.gommers@gmail.com</email>
</author>
<published>2017-06-10T03:56:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=953c36da815f8d6f095156775eeb11643e08ee9b'/>
<id>953c36da815f8d6f095156775eeb11643e08ee9b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Buttress handling of extreme values in randint</title>
<updated>2017-05-09T07:12:52+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung17@gmail.com</email>
</author>
<published>2017-03-26T21:30:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=1f88730b3140af1efb7d2e789d21078ad66c8eee'/>
<id>1f88730b3140af1efb7d2e789d21078ad66c8eee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #8962 from MSeifert04/random_choice_docs</title>
<updated>2017-04-26T21:33:23+00:00</updated>
<author>
<name>Eric Wieser</name>
<email>wieser.eric@gmail.com</email>
</author>
<published>2017-04-26T21:33:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=f63e37d8769931f34e080a40f38470b06e72931b'/>
<id>f63e37d8769931f34e080a40f38470b06e72931b</id>
<content type='text'>
DOC: Wrong return type of np.random.choice and wrong variable name in parameter description.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
DOC: Wrong return type of np.random.choice and wrong variable name in parameter description.</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] use of * instead of ` to refer to a function parameter.</title>
<updated>2017-04-26T18:02:43+00:00</updated>
<author>
<name>Matthias Bussonnier</name>
<email>bussonniermatthias@gmail.com</email>
</author>
<published>2017-04-26T18:02:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=9cce369ae9a0f3cfa989725be986169568bfd32e'/>
<id>9cce369ae9a0f3cfa989725be986169568bfd32e</id>
<content type='text'>
It's funny because it's fine in EXAMPLE_DOCSTRING.rst.txt that uses the
same example.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's funny because it's fine in EXAMPLE_DOCSTRING.rst.txt that uses the
same example.
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Wrong return type of np.random.choice and wrong variable name</title>
<updated>2017-04-20T19:59:42+00:00</updated>
<author>
<name>Michael Seifert</name>
<email>michaelseifert04@yahoo.de</email>
</author>
<published>2017-04-19T23:30:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=1a0f64bc9055fa63d9e399d5430cb67d6c2a421a'/>
<id>1a0f64bc9055fa63d9e399d5430cb67d6c2a421a</id>
<content type='text'>
in parameter description.

[ci skip]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in parameter description.

[ci skip]
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: avoid memcpy when i == j</title>
<updated>2017-04-10T17:38:58+00:00</updated>
<author>
<name>Yu Feng</name>
<email>rainwoodman@gmail.com</email>
</author>
<published>2017-04-10T17:38:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=44f2a623e177606a2d5c27b7b26d5d8d3af8a0da'/>
<id>44f2a623e177606a2d5c27b7b26d5d8d3af8a0da</id>
<content type='text'>
Valgrind complains about memcpy with overlapping address in mtrand.c
It happens when i == j in this loop.

Closer inspection the i == j iteration is not needed (it is a swap).
So, skip it and avoid depending on undefined behavior of memcpy.

related read:

https://sourceware.org/bugzilla/show_bug.cgi?id=12518
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Valgrind complains about memcpy with overlapping address in mtrand.c
It happens when i == j in this loop.

Closer inspection the i == j iteration is not needed (it is a swap).
So, skip it and avoid depending on undefined behavior of memcpy.

related read:

https://sourceware.org/bugzilla/show_bug.cgi?id=12518
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Check for errors when PyInt_AsLong is called in np.random</title>
<updated>2017-04-02T22:17:33+00:00</updated>
<author>
<name>Simon Gibbons</name>
<email>simongibbons@gmail.com</email>
</author>
<published>2017-04-01T22:46:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=30ab8fc16883f111eba3c873eff32323eeb58747'/>
<id>30ab8fc16883f111eba3c873eff32323eeb58747</id>
<content type='text'>
After #8883 was merged it was noticed that the same problem was
occuring with calls to PyInt_AsLong. Namely that PyErr_Occoured
wasn't being checked if it returned -1 indicating an exception
could have been thrown.

This PR adds those checks as well as a regression test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After #8883 was merged it was noticed that the same problem was
occuring with calls to PyInt_AsLong. Namely that PyErr_Occoured
wasn't being checked if it returned -1 indicating an exception
could have been thrown.

This PR adds those checks as well as a regression test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix test</title>
<updated>2017-04-01T21:58:48+00:00</updated>
<author>
<name>Simon Gibbons</name>
<email>simongibbons@gmail.com</email>
</author>
<published>2017-04-01T21:58:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=db2f5089fc5442ea8fca49188e2750a6c39b5664'/>
<id>db2f5089fc5442ea8fca49188e2750a6c39b5664</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Ensure Errors are correctly checked when PyFloat_AsDouble is called.</title>
<updated>2017-04-01T21:54:09+00:00</updated>
<author>
<name>Simon Gibbons</name>
<email>simongibbons@gmail.com</email>
</author>
<published>2017-04-01T20:59:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a6c3d0eeab3d65b3ec047e8601da84a2ebb97d70'/>
<id>a6c3d0eeab3d65b3ec047e8601da84a2ebb97d70</id>
<content type='text'>
There was an error in np.random.uniform where if np.random.uniform
were called with a type that throwed exceptions when it was converted
to a float this exception wouldn't be raised.

This bug was due to an issue where PyFloat_AsDouble was called but
no check for PyErr_Occurred was performed after.

This PR fixes the issue by ensuring that Cython will always emit a
call to PyErr_Occurred if PyFloat_AsDouble returns -1.0

Fixes: #8865
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There was an error in np.random.uniform where if np.random.uniform
were called with a type that throwed exceptions when it was converted
to a float this exception wouldn't be raised.

This bug was due to an issue where PyFloat_AsDouble was called but
no check for PyErr_Occurred was performed after.

This PR fixes the issue by ensuring that Cython will always emit a
call to PyErr_Occurred if PyFloat_AsDouble returns -1.0

Fixes: #8865
</pre>
</div>
</content>
</entry>
</feed>
