[Numpy-tickets] [NumPy] #300: ValueError: setting an array element with a sequence.

NumPy numpy-tickets at scipy.net
Sat Sep 30 02:06:58 CDT 2006


#300: ValueError: setting an array element with a sequence.
------------------------+---------------------------------------------------
 Reporter:  nils        |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  numpy.core  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 numpy.test(1) results in
 {{{
 ======================================================================
 ERROR: check_invalid_subscript_assignment
 (numpy.core.tests.test_multiarray.test_zero_rank)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.4/site-
 packages/numpy/core/tests/test_multiarray.py", line 169, in
 check_invalid_subscript_assignment
     self.failUnlessRaises(TypeError, assign, a, (), '')
   File "/usr/lib/python2.4/unittest.py", line 319, in failUnlessRaises
     callableObj(*args, **kwargs)
   File "/usr/lib/python2.4/site-
 packages/numpy/core/tests/test_multiarray.py", line 166, in assign
     x[i] = v
 ValueError: setting an array element with a sequence.

 ----------------------------------------------------------------------
 Ran 497 tests in 1.038s

 FAILED (errors=1)
 }}}

 I am using the latest svn version.'1.0.dev3235'

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/300>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list