[Numpy-discussion] Numpy bug?
Paul F. Dubois
paul at pfdubois.com
Thu May 10 13:19:20 EDT 2001
The import_array is not proper, but I have no idea if that is the problem or
import array only goes in the initialization routine of modules that need
the Numpy C-API.
Somebody convinced me to decref something in one of the numpy C module
initializers a while back, so maybe that was an error. (?)
I just do what they tell me...
From: numpy-discussion-admin at lists.sourceforge.net
[mailto:numpy-discussion-admin at lists.sourceforge.net]On Behalf Of Karl
Sent: Thursday, May 10, 2001 5:57 AM
Subject: [Numpy-discussion] Numpy bug?
Since I didn't get a response, I will post again with a more appropiate
subject heading. If you run the following code, you get an error. It
appears that Numpy doesn't like to be restarted. If you take out the
lines "import_array();" and "PyRun_SimpleString("from Numeric import
*\n");" the code loops fine.
for (int x = 0; x < 100; x++)
PyRun_SimpleString("from Numeric import *\n");
Here is the output:
Fatal Python error: UNREF invalid object
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
More information about the NumPy-Discussion