<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/tests/test_reloading.py, branch eric-wieser-patch-1</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>MAINT: Move pickle import to numpy.compat</title>
<updated>2019-02-21T19:49:33+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2019-02-21T19:49:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b6dc039961768bd5f3a3d7f57e8c396f8fa02815'/>
<id>b6dc039961768bd5f3a3d7f57e8c396f8fa02815</id>
<content type='text'>
The pickle module was being imported from numpy.core.numeric. It was
defined there in order to use pickle5 when available in Python3 and
cpickle in Python2. The numpy.compat module seems a better place for
that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The pickle module was being imported from numpy.core.numeric. It was
defined there in order to use pickle5 when available in Python3 and
cpickle in Python2. The numpy.compat module seems a better place for
that.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT, TST import pickle from numpy.core.numeric</title>
<updated>2018-10-10T12:53:45+00:00</updated>
<author>
<name>Pierre Glaser</name>
<email>pierreglaser@msn.com</email>
</author>
<published>2018-09-19T15:07:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7372f8dcc6af4446e502c0daec3199dace27e863'/>
<id>7372f8dcc6af4446e502c0daec3199dace27e863</id>
<content type='text'>
All imports of pickle from numpy modules are now done this way:
&gt;&gt;&gt; from numpy.core.numeric import pickle

Also, some loops on protocol numbers are added over pickle tests that
were not caught from #12090
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All imports of pickle from numpy modules are now done this way:
&gt;&gt;&gt; from numpy.core.numeric import pickle

Also, some loops on protocol numbers are added over pickle tests that
were not caught from #12090
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Remove all uses of run_module_suite.</title>
<updated>2018-04-07T00:20:56+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2018-04-04T16:33:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7bf0564f87511d9e7b6287b3eec0857d0d7742df'/>
<id>7bf0564f87511d9e7b6287b3eec0857d0d7742df</id>
<content type='text'>
That function is nose specific and has not worked since `__init__` files
were added to the tests directories.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
That function is nose specific and has not worked since `__init__` files
were added to the tests directories.
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Add a repr to np._NoValue</title>
<updated>2018-02-04T04:44:55+00:00</updated>
<author>
<name>Eric Wieser</name>
<email>wieser.eric@gmail.com</email>
</author>
<published>2018-02-03T20:04:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=1271e17ea6ca8abe12f7dd045ac0af8674f594d4'/>
<id>1271e17ea6ca8abe12f7dd045ac0af8674f594d4</id>
<content type='text'>
This change _NoValue from a class to an instance, which is more inline with the builtin None.

Fixes gh-8991, closes gh-9592
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change _NoValue from a class to an instance, which is more inline with the builtin None.

Fixes gh-8991, closes gh-9592
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Make sure numpy globals keep identity after reload.</title>
<updated>2016-08-16T19:12:32+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2016-07-20T17:09:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=0ade4c43f052247a2d12a2c49d3c846e6c429fa9'/>
<id>0ade4c43f052247a2d12a2c49d3c846e6c429fa9</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Raise RuntimeError when reloading numpy is attempted.</title>
<updated>2016-07-20T17:23:15+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2016-07-20T17:09:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b9b42ee958db9882c6490311aa47395b4b5e5922'/>
<id>b9b42ee958db9882c6490311aa47395b4b5e5922</id>
<content type='text'>
There seems to be little use in reloading numpy as any changed modules
that are imported into numpy would need to be reloaded first in order to
see any changes. Furthermore, reloading causes problems as global
classes defined in numpy/__init__.py change their identity. Hence we
raise a RuntimeError when an attempt to reload numpy is made.

Closes #7844.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There seems to be little use in reloading numpy as any changed modules
that are imported into numpy would need to be reloaded first in order to
see any changes. Furthermore, reloading causes problems as global
classes defined in numpy/__init__.py change their identity. Hence we
raise a RuntimeError when an attempt to reload numpy is made.

Closes #7844.
</pre>
</div>
</content>
</entry>
</feed>
