Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Backport 7941, BUG: Make sure numpy globals keep identity after reload. #7955

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
Aug 21, 2016

Conversation

charris
Copy link
Member

@charris charris commented Aug 20, 2016

#7941

Reloading currently causes problems because global classes defined in
numpy/init.py change their identity (a is b) after reload. The
solution taken here is to move those classes to a new non-reloadable
module numpy/_globals and import them into numpy from there.

Classes moved are ModuleDeprecationWarning, VisibleDeprecationWarning,
and _NoValue.

Closes #7844.

Reloading currently causes problems because global classes defined in
numpy/__init__.py change their identity (a is b) after reload. The
solution taken here is to move those classes to a new non-reloadable
module numpy/_globals and import them into numpy from there.

Classes moved are ModuleDeprecationWarning, VisibleDeprecationWarning,
and _NoValue.

Closes numpy#7844.
@charris charris added this to the 1.11.2 release milestone Aug 20, 2016
@charris charris merged commit 0ed551f into numpy:maintenance/1.11.x Aug 21, 2016
@charris charris deleted the backport-7941 branch August 21, 2016 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant