Numeric & changes in Python division

# Python 2.2b1, Numeric 20.2.0 from __future__ import division import Numeric arr = Numeric.ones((2,2), 'f') arr = arr/2.0 #Traceback (most recent call last): # File "bug.py", line 6, in ? #arr = arr/2.0 #TypeError: unsupported operand type(s) for /

You know what the doctor said: if it hurts when you do that, don't do that. Seriously, I have not the slightest idea what you're doing here. My project won't get to 2.2 until well into the new year. Especially if stuff like this has to be fixed. I haven't even read most of the 2.2 changes. I understand this is also an issue with CXX. Barry Scott runs CXX now since I am no longer in a job where I use C++. When he will get to this I don't know. I need to demote myself on the CXX website. You haven't seen any recent changes to Numpy, or comments from me on numarray, because I have a release to get out at my job. -----Original Message----- From: numpy-discussion-admin@lists.sourceforge.net [mailto:numpy-discussion-admin@lists.sourceforge.net] On Behalf Of Edward C. Jones Sent: Thursday, November 22, 2001 5:33 PM To: numpy-discussion@lists.sourceforge.net Subject: [Numpy-discussion] Numeric & changes in Python division # Python 2.2b1, Numeric 20.2.0 from __future__ import division import Numeric arr = Numeric.ones((2,2), 'f') arr = arr/2.0 #Traceback (most recent call last): # File "bug.py", line 6, in ? #arr = arr/2.0 #TypeError: unsupported operand type(s) for / _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion

You know what the doctor said: if it hurts when you do that, don't do that. Seriously, I have not the slightest idea what you're doing here. My project won't get to 2.2 until well into the new year. Especially if stuff like this has to be fixed. I haven't even read most of the 2.2 changes. I understand this is also an issue with CXX. Barry Scott runs CXX now since I am no longer in a job where I use C++. When he will get to this I don't know. I need to demote myself on the CXX website. You haven't seen any recent changes to Numpy, or comments from me on numarray, because I have a release to get out at my job. -----Original Message----- From: numpy-discussion-admin@lists.sourceforge.net [mailto:numpy-discussion-admin@lists.sourceforge.net] On Behalf Of Edward C. Jones Sent: Thursday, November 22, 2001 5:33 PM To: numpy-discussion@lists.sourceforge.net Subject: [Numpy-discussion] Numeric & changes in Python division # Python 2.2b1, Numeric 20.2.0 from __future__ import division import Numeric arr = Numeric.ones((2,2), 'f') arr = arr/2.0 #Traceback (most recent call last): # File "bug.py", line 6, in ? #arr = arr/2.0 #TypeError: unsupported operand type(s) for / _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
participants (2)
-
Edward C. Jones
-
Paul F. Dubois