Came across an oddity when experimenting with the datetime64 and timedelta64 objects.<br><br>a = np.zeros((10,), dtype='l')<br>b = np.datetime64('2010-12-20T14:23:56-0600')<br>c = np.datetime64('2010-12-20T21:27:09-0600')<br>

<br>a[0:1] = c - b   # This works fine<br>a[0] = c - b     # This does not<br><br><br>The second assignment throws the following error:<br>TypeError: don't know how to convert scalar number to long<br><br>Cheers,<br>
Ben Root<br>
<br>P.S. - np.arange() can make ranges of datetime64 from string inputs, but np.linspace() can not (and does not take a dtype kwarg).<br><br>