[SciPy-user] new behaviour of c_[] in scipy 0.5.2

James Battat jbattat@cfa.harvard....
Fri Feb 9 16:44:56 CST 2007


Hi,

In the past:
  (scipy 0.4.8, numpy 0.9.6)

>>> print scipy.c_[1,2,3]
[1,2,3]

but now:
 (scipy 0.5.2, numpy 1.0.1)

>>> print scipy.c_[1,2,3]
[[1,2,3]]

A nested array!  This breaks my old code because:

>>> array = scipy.c_[1,2,3]
>>> print array[1]
IndexError: index is out of bounds

Is the current behaviour expected?

Thanks for your help,
James






**************************
Harvard University
Dept. of Astronomy
60 Garden Street
MS-10
Cambridge, MA 02138
phone 617.496.0742
lab   617.495.3267
email jbattat@cfa.harvard.edu
**************************



More information about the SciPy-user mailing list