[SciPy-dev] problems with concatenate - isn't it a bug? (numpy 1.0.1)

dmitrey openopt@ukr....
Mon Jun 11 06:38:59 CDT 2007


//numpy 1.0.1

from numpy import *
concatenate((array([1,2]), array([3,4])))

->array([ 1, 2, 3, 4])

but

concatenate((array(1), array([2,3])))
Traceback (innermost last):
  File "<stdin>", line 1, in <module>
ValueError: 0-d arrays can't be concatenated

D.


More information about the Scipy-dev mailing list