[Numpy-discussion] Numeric & changes in Python division

Edward C. Jones edcjones at erols.com
Thu Nov 22 17:30:10 CST 2001


# 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 /






More information about the Numpy-discussion mailing list