[NumPy-Tickets] [NumPy] #1136: Multiplying Python float to numpy.array of objects works but fails with a numpy.float64

NumPy Trac numpy-tickets@scipy....
Sat Feb 13 05:57:16 CST 2010


#1136: Multiplying Python float to numpy.array of objects works but fails with a
numpy.float64
----------------------------------------+-----------------------------------
 Reporter:  sebastian.walter@…          |       Owner:  somebody
     Type:  defect                      |      Status:  new     
 Priority:  normal                      |   Milestone:  1.4.0   
Component:  Other                       |     Version:  devel   
 Keywords:                              |  
----------------------------------------+-----------------------------------

Comment(by sebastian.walter@…):

 bug still persistent in version 1.5.0.dev

 {{{
 b45ch1@shlp:~/workspace/numpy_bugs$ python bug_float64_op_object.py
 numpy.__version__= 1.5.0.dev
 6.0
 [6.0 35.0]
 [6.0 15.0]
 [9.0 15.0]
 Traceback (most recent call last):
   File "bug_float64_op_object.py", line 26, in <module>
     print u * z[0]           # _NOT_ OK!
 TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and
 'numpy.float64'
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1136#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list