Skip to content

MAINT: Move umath error helpers into their own module #13322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2019

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Apr 13, 2019

This is a direct move, with some tweaks to imports

This works towards breaking cyclic imports through core/numeric.py, and makes that file a little bit shorter.

This doesn't affect the value of np.core.numeric.__all__ which keeps code doing from numpy.core.numeric import * working.

Inspired by some of the ideas in #11924

@eric-wieser eric-wieser force-pushed the cyclic-import branch 2 times, most recently from 9028b99 to 896b7be Compare April 13, 2019 20:25
@@ -4415,7 +4415,7 @@
Examples
--------
>>> np.geterrobj() # first get the defaults
[10000, 0, None]
[8192, 521, None]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This documentation was incorrect, and caused by the doctests running before circular imports resolved (!?)

This is a direct move, with some tweaks to imports.

For some reason, this changed the results of running the doctests, which now reflect the actual defaults for `geterrobj`.

This helps to make `core.numeric` a little shorter.

This doesn't affect the value of `np.core.numeric.__all__` which keeps code doing `from numpy.core.numeric import *` working.
@charris charris merged commit fb425b7 into numpy:master Apr 14, 2019
@charris
Copy link
Member

charris commented Apr 14, 2019

Thanks Eric.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants