<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy, branch v1.22.0rc3</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>Merge pull request #20617 from charris/backport-20616</title>
<updated>2021-12-17T23:10:05+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-17T23:10:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a7accb7fd1db05c0d8773e194500d237cf55904c'/>
<id>a7accb7fd1db05c0d8773e194500d237cf55904c</id>
<content type='text'>
MAINT: Help boost::python libraries at least not crash</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MAINT: Help boost::python libraries at least not crash</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Help boost::python libraries at least not crash</title>
<updated>2021-12-17T21:23:54+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2021-12-17T19:15:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=fae64e335b014e272b28cacb8449da7cb3429de2'/>
<id>fae64e335b014e272b28cacb8449da7cb3429de2</id>
<content type='text'>
This adds an almost random "sanity check" to `PyArray_EquivTypes`
for the sole purpose of allowing boost::python compiled libs to
_not crash_.
boost::python is buggy, it needs to be fixed.  This may break them
(I am unsure), because some conversions which used to work may fail
here (if they worked, they only worked because random type data may
have matched up correctly for our scalar types).

We could error, or warn or... but I hope boost::python will just fix
this soon enough and future us can just delete the whole branch.

Replaces gh-20507
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds an almost random "sanity check" to `PyArray_EquivTypes`
for the sole purpose of allowing boost::python compiled libs to
_not crash_.
boost::python is buggy, it needs to be fixed.  This may break them
(I am unsure), because some conversions which used to work may fail
here (if they worked, they only worked because random type data may
have matched up correctly for our scalar types).

We could error, or warn or... but I hope boost::python will just fix
this soon enough and future us can just delete the whole branch.

Replaces gh-20507
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: Fix mypy 0.920-related test failures</title>
<updated>2021-12-17T19:02:44+00:00</updated>
<author>
<name>Bas van Beek</name>
<email>b.f.van.beek@vu.nl</email>
</author>
<published>2021-12-16T13:37:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=26447d3ad5d96136cc6b49d9d560d62e75c68d87'/>
<id>26447d3ad5d96136cc6b49d9d560d62e75c68d87</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 #20598 from charris/backport-20583</title>
<updated>2021-12-17T03:07:37+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-17T03:07:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=58cbe907dc9ce92a8fdb5ec222d8da0f0811beb8'/>
<id>58cbe907dc9ce92a8fdb5ec222d8da0f0811beb8</id>
<content type='text'>
BUG: Fix issues (mainly) found using pytest-leaks (#20583)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: Fix issues (mainly) found using pytest-leaks (#20583)</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #20599 from charris/backport-20587</title>
<updated>2021-12-17T03:07:15+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-17T03:07:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=d03ed0fcc1eb01d926818a227148f96903cae8aa'/>
<id>d03ed0fcc1eb01d926818a227148f96903cae8aa</id>
<content type='text'>
MAINT: Fix two minor typing-related problems </content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MAINT: Fix two minor typing-related problems </pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #20600 from charris/backport-20590</title>
<updated>2021-12-17T03:06:52+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-17T03:06:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=58027229284680c8acba29eb40302e398ce6bec2'/>
<id>58027229284680c8acba29eb40302e398ce6bec2</id>
<content type='text'>
BUG: Fix leaks found using pytest-leaks</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: Fix leaks found using pytest-leaks</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #20601 from charris/backport-20593</title>
<updated>2021-12-17T03:06:29+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-17T03:06:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=2e7f6364b3e4ad99c2f917016c78b092db53b253'/>
<id>2e7f6364b3e4ad99c2f917016c78b092db53b253</id>
<content type='text'>
MAINT: Check for buffer interface support rather than try/except</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MAINT: Check for buffer interface support rather than try/except</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #20602 from charris/backport-20595</title>
<updated>2021-12-17T03:06:05+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-12-17T03:06:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=1df444f590d44212fb9f529f85eeb1fdc4f4f862'/>
<id>1df444f590d44212fb9f529f85eeb1fdc4f4f862</id>
<content type='text'>
BUG: Fix PyInit__umath_linalg type</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: Fix PyInit__umath_linalg type</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix PyInit__umath_linalg type</title>
<updated>2021-12-16T19:29:35+00:00</updated>
<author>
<name>Kazuki Sakamoto</name>
<email>kaz@fb.com</email>
</author>
<published>2021-12-16T03:26:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4cb725feee6f23a77334daa3050d4b73477226b9'/>
<id>4cb725feee6f23a77334daa3050d4b73477226b9</id>
<content type='text'>
Use PyMODINIT_FUNC instead of PyObject *.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use PyMODINIT_FUNC instead of PyObject *.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Check for buffer interface support rather than try/except</title>
<updated>2021-12-16T19:26:06+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2021-12-15T22:58:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=c2e34c003f80e55bee5252901b5497e3a7c7c2df'/>
<id>c2e34c003f80e55bee5252901b5497e3a7c7c2df</id>
<content type='text'>
This checks for buffer interface support using `PyObject_CheckBuffer`
up-front.  That seems to shave off about 100ns e.g. when importing
pandas DataFrames (which do not support the buffer interface, but
do support `__array__`.
The reason is that building a TypeError and then clearing it takes
time.

It felt like a clear, easy win, since the check should be so fast
that checking twice (in the case that it is indeed a buffer) does
not really matter.

But, if nobody likes to think about it just close :).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This checks for buffer interface support using `PyObject_CheckBuffer`
up-front.  That seems to shave off about 100ns e.g. when importing
pandas DataFrames (which do not support the buffer interface, but
do support `__array__`.
The reason is that building a TypeError and then clearing it takes
time.

It felt like a clear, easy win, since the check should be so fast
that checking twice (in the case that it is indeed a buffer) does
not really matter.

But, if nobody likes to think about it just close :).
</pre>
</div>
</content>
</entry>
</feed>
