[Numpy-svn] [numpy/numpy] 0ade4c: BUG: Make sure numpy globals keep identity after r...
GitHub
noreply at github.com
Sat Aug 20 17:45:07 EDT 2016
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 0ade4c43f052247a2d12a2c49d3c846e6c429fa9
https://github.com/numpy/numpy/commit/0ade4c43f052247a2d12a2c49d3c846e6c429fa9
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2016-08-16 (Tue, 16 Aug 2016)
Changed paths:
M numpy/__init__.py
A numpy/_globals.py
M numpy/tests/test_reloading.py
Log Message:
-----------
BUG: Make sure numpy globals keep identity after reload.
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.
Commit: 276423aa7f4f7d39189ee5ccf7b167ad2c9c25a7
https://github.com/numpy/numpy/commit/276423aa7f4f7d39189ee5ccf7b167ad2c9c25a7
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2016-08-20 (Sat, 20 Aug 2016)
Changed paths:
M numpy/__init__.py
A numpy/_globals.py
M numpy/tests/test_reloading.py
Log Message:
-----------
Merge pull request #7941 from charris/fix-numpy-reload-again
BUG: Make sure numpy globals keep identity after reload.
Compare: https://github.com/numpy/numpy/compare/86960c27cfe4...276423aa7f4f
More information about the Numpy-svn
mailing list