<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/random/mtrand/Python.pxi, branch eric-wieser-patch-1</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: 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>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>
<entry>
<title>MAINT: Always use PyCapsule instead of PyCObject in mtrand.pyx.</title>
<updated>2016-04-10T16:49:19+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2016-04-10T16:38:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=9a86dcb9ca63829e334748056ac4eb643b18bcd1'/>
<id>9a86dcb9ca63829e334748056ac4eb643b18bcd1</id>
<content type='text'>
Python 2.7 has a backport of PyCapsule so we no longer need to support
PyCObject. This PR makes that change and removes the no longer needed
mt_compat.h file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Python 2.7 has a backport of PyCapsule so we no longer need to support
PyCObject. This PR makes that change and removes the no longer needed
mt_compat.h file.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: core: use PyCapsule objects only on Python &gt;= 3.0, stay with PyCObjects on Python 2.x</title>
<updated>2010-07-17T15:15:15+00:00</updated>
<author>
<name>Pauli Virtanen</name>
<email>pav@iki.fi</email>
</author>
<published>2010-07-17T15:15:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=6f20d1e7650fbb3ad61855ca5d85dff0aafe2f72'/>
<id>6f20d1e7650fbb3ad61855ca5d85dff0aafe2f72</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH, BUG: PyCObject will be deprecated in python 2.7. So use the NpyCapsule</title>
<updated>2010-05-03T07:50:02+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2010-05-03T07:50:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=bc656ee7cb00a6c4ad0d43f1cdd36bf8c9a026ed'/>
<id>bc656ee7cb00a6c4ad0d43f1cdd36bf8c9a026ed</id>
<content type='text'>
compatibility functions in npy_3kcompat.h to replace the current calls.
This gets rid of a number of version checks and is easier to maintain.
Fix bug that was present in the ufunc _loop1d_list_free destructor in
the python3k case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
compatibility functions in npy_3kcompat.h to replace the current calls.
This gets rid of a number of version checks and is easier to maintain.
Fix bug that was present in the ufunc _loop1d_list_free destructor in
the python3k case.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Replace deprecated PyCObject by PyCapsule for Python &gt;= 3.1.</title>
<updated>2010-02-23T09:49:38+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2010-02-23T09:49:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=5d6c8bc18261caf7162aefdeb637f00ce00e238f'/>
<id>5d6c8bc18261caf7162aefdeb637f00ce00e238f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>More fixes to mtrand from recent speed ups.</title>
<updated>2007-03-20T10:34:04+00:00</updated>
<author>
<name>Travis Oliphant</name>
<email>oliphant@enthought.com</email>
</author>
<published>2007-03-20T10:34:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=fcfc55ea6975dcf3221f6b0ffcae5a8a4587b609'/>
<id>fcfc55ea6975dcf3221f6b0ffcae5a8a4587b609</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make random number generators faster for scalar parameters.</title>
<updated>2007-03-19T17:19:39+00:00</updated>
<author>
<name>Travis Oliphant</name>
<email>oliphant@enthought.com</email>
</author>
<published>2007-03-19T17:19:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=02f660ff2e4e85382043dcce961f6b96ff49b9c2'/>
<id>02f660ff2e4e85382043dcce961f6b96ff49b9c2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make sure we deal with null bytes appropriate when getting a random stream of bytes as a Python string.</title>
<updated>2006-07-20T22:18:51+00:00</updated>
<author>
<name>Robert Kern</name>
<email>robert.kern@gmail.com</email>
</author>
<published>2006-07-20T22:18:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=046388a091904307a3e2b0f1e669b00382b5b174'/>
<id>046388a091904307a3e2b0f1e669b00382b5b174</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add CObject API</title>
<updated>2006-06-13T16:54:08+00:00</updated>
<author>
<name>Robert Kern</name>
<email>robert.kern@gmail.com</email>
</author>
<published>2006-06-13T16:54:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=fcf1365e8c1617eb649955b2e2e430a25e867420'/>
<id>fcf1365e8c1617eb649955b2e2e430a25e867420</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
