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

dmitrey openopt at ukr.net
Mon Jun 11 07:38:59 EDT 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