diff options
author | Warren Weckesser <warren.weckesser@gmail.com> | 2020-08-22 19:48:35 -0400 |
---|---|---|
committer | Warren Weckesser <warren.weckesser@gmail.com> | 2020-08-22 20:16:58 -0400 |
commit | adccacf32ea8c159b2397a6053f4b97543ec08a7 (patch) | |
tree | 2c2b2261898a651005d0f1015d5c9961b77beb0f /numpy/doc/internals.py | |
parent | 97f9fcb599fec377f35be647afdc2d5c2c6ba1f9 (diff) | |
download | numpy-adccacf32ea8c159b2397a6053f4b97543ec08a7.tar.gz |
MAINT: lib: Change handling of the expired financial functions.
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.
Diffstat (limited to 'numpy/doc/internals.py')
0 files changed, 0 insertions, 0 deletions