<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/__init__.py, branch v1.20.0</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>Apply suggestions from code review</title>
<updated>2021-01-26T21:22:29+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2021-01-26T19:07:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=33b4b26f40d968ecf416a618117cd052eac63ea4'/>
<id>33b4b26f40d968ecf416a618117cd052eac63ea4</id>
<content type='text'>
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Update numpy/__init__.py</title>
<updated>2021-01-26T21:22:25+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2021-01-26T19:06:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b66733ce7ce53a525993465faecd1df5922f901e'/>
<id>b66733ce7ce53a525993465faecd1df5922f901e</id>
<content type='text'>
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Eric Wieser &lt;wieser.eric@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Clarify the type alias deprecation message</title>
<updated>2021-01-26T21:17:49+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2021-01-25T18:01:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4754ded5dfc194effde56d6dec02fc20c697af40'/>
<id>4754ded5dfc194effde56d6dec02fc20c697af40</id>
<content type='text'>
This tries to clarify the type alias deprecation message slightly
to give more guidance on how to review the replacement (if desired).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This tries to clarify the type alias deprecation message slightly
to give more guidance on how to review the replacement (if desired).
</pre>
</div>
</content>
</entry>
<entry>
<title>DEP: Change the financial name access warning to DeprecationWarning</title>
<updated>2020-09-10T21:15:29+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2020-09-10T14:15:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=295c8af73969d8101af5e91c9c45b7adbadee077'/>
<id>295c8af73969d8101af5e91c9c45b7adbadee077</id>
<content type='text'>
Most end-users will probably not care about the warning in any case,
since they will not just import the function but also use it.
We can't just remove it, due to gh-17143: Astropy currently pulls
in these functions (but doesn't use them), so that plain removal
would lead to an unusable astropy if a new NumPy is installed.
Even more annoying, due to a (faulty?) astropy pytest plugin, this
affects all pytest runs (which do not use `PYTEST_DISABLE_PLUGIN_AUTOLOAD`).

Changing it to a DeprecationWarning seems to remove the issue from
pytest runs, this may make the warning less visible in rare cases
where it should be seen, but hopefully it will still be visible enough.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Most end-users will probably not care about the warning in any case,
since they will not just import the function but also use it.
We can't just remove it, due to gh-17143: Astropy currently pulls
in these functions (but doesn't use them), so that plain removal
would lead to an unusable astropy if a new NumPy is installed.
Even more annoying, due to a (faulty?) astropy pytest plugin, this
affects all pytest runs (which do not use `PYTEST_DISABLE_PLUGIN_AUTOLOAD`).

Changing it to a DeprecationWarning seems to remove the issue from
pytest runs, this may make the warning less visible in rare cases
where it should be seen, but hopefully it will still be visible enough.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use a better name for the collection of expired functions.</title>
<updated>2020-08-23T15:20:17+00:00</updated>
<author>
<name>Warren Weckesser</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2020-08-23T15:19:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=d10245fff16395cd83344543a59d470d24d7c2fd'/>
<id>d10245fff16395cd83344543a59d470d24d7c2fd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: lib: Change handling of the expired financial functions.</title>
<updated>2020-08-23T00:16:58+00:00</updated>
<author>
<name>Warren Weckesser</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2020-08-22T23:48:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=adccacf32ea8c159b2397a6053f4b97543ec08a7'/>
<id>adccacf32ea8c159b2397a6053f4b97543ec08a7</id>
<content type='text'>
In a previous commit, the expired financial functions were removed
from NumPy, and code was added to __init__.py using the module
__getattr__ to raise a customized AttributeError on any attempt to
reference the expired names in the numpy namespace.

That change broke released versions astropy, which has code that
imports the financial functions.  astropy never calls the functions,
so they never saw the deprecation warnings that have been in place
since numpy 1.18.  This means that attempting to use a released
version of astropy with numpy 1.20 will cause astropy to crash
with the custom AttributeError.

In this commit, instead of raising an exception when one of the
expired names is referenced, a warning is generated.  If the
function is *called*, an exception is raised.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In a previous commit, the expired financial functions were removed
from NumPy, and code was added to __init__.py using the module
__getattr__ to raise a customized AttributeError on any attempt to
reference the expired names in the numpy namespace.

That change broke released versions astropy, which has code that
imports the financial functions.  astropy never calls the functions,
so they never saw the deprecation warnings that have been in place
since numpy 1.18.  This means that attempting to use a released
version of astropy with numpy 1.20 will cause astropy to crash
with the custom AttributeError.

In this commit, instead of raising an exception when one of the
expired names is referenced, a warning is generated.  If the
function is *called*, an exception is raised.
</pre>
</div>
</content>
</entry>
<entry>
<title>DEP: lib: Remove the deprecated financial functions. (#17067)</title>
<updated>2020-08-13T00:41:23+00:00</updated>
<author>
<name>Warren Weckesser</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2020-08-13T00:41:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b4fd7a79bc55f17f301d219492528e6f5f40c6f0'/>
<id>b4fd7a79bc55f17f301d219492528e6f5f40c6f0</id>
<content type='text'>
As explained in NEP 32, the financial functions are to be removed
from version 1.20.
They are now replaced with module level `__getattr__` to give a useful
error message for those surprised by the `AttributeError`.

This only works for Python 3.7+, but it is expected that by the 1.20 release
Python 3.6 will not be supported.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As explained in NEP 32, the financial functions are to be removed
from version 1.20.
They are now replaced with module level `__getattr__` to give a useful
error message for those surprised by the `AttributeError`.

This only works for Python 3.7+, but it is expected that by the 1.20 release
Python 3.6 will not be supported.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix exception causes in __init__.py</title>
<updated>2020-07-18T23:06:17+00:00</updated>
<author>
<name>ashutosh619-sudo</name>
<email>ashutoshsinghrkt@gmail.com</email>
</author>
<published>2020-07-18T23:06:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=5dd1fe6d2335cd56d5e93b5a3f9484456b961a4f'/>
<id>5dd1fe6d2335cd56d5e93b5a3f9484456b961a4f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix exception causes in __init__.py</title>
<updated>2020-07-18T22:59:54+00:00</updated>
<author>
<name>ashutosh619-sudo</name>
<email>ashutoshsinghrkt@gmail.com</email>
</author>
<published>2020-07-18T22:59:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=6bb947c8dc3d5c154807d79861a7e5e995a6dc50'/>
<id>6bb947c8dc3d5c154807d79861a7e5e995a6dc50</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Disable use_hugepages in case of ValueError</title>
<updated>2020-06-30T00:46:57+00:00</updated>
<author>
<name>Anirudh Subramanian</name>
<email>anirudh2290@ufl.edu</email>
</author>
<published>2020-06-29T18:36:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e29f5d8a70f40a2b6a438d08dac6e9ce66609f5b'/>
<id>e29f5d8a70f40a2b6a438d08dac6e9ce66609f5b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
