Change in behavior of np.concatenate for upcoming release
12 Sep
2012
12 Sep
'12
1:46 p.m.
Hi, I just noticed that this works for numpy 1.6.1: In [36]: np.concatenate(([2, 3], [1]), 1) Out[36]: array([2, 3, 1]) but the beta release branch: In [3]: np.concatenate(([2, 3], [1]), 1) --------------------------------------------------------------------------- IndexError Traceback (most recent call last) /Users/mb312/<ipython-input-3-0fa244c8aaa8> in <module>() ----> 1 np.concatenate(([2, 3], [1]), 1) IndexError: axis 1 out of bounds [0, 1) In the interests of backward compatibility maybe it would be better to raise a warning for this release, rather than an error? Best, Matthew
4212
Age (days ago)
4215
Last active (days ago)
12 comments
4 participants
participants (4)
-
Han Genuit
-
Matthew Brett
-
Nathaniel Smith
-
Travis Oliphant