[Numpy-discussion] The date/time dtype and the casting issue
Pierre GM
pgmdevlist at gmail.com
Tue Jul 29 14:16:27 EDT 2008
On Tuesday 29 July 2008 14:08:28 Francesc Alted wrote:
> A Tuesday 29 July 2008, David Huard escrigué:
> Hmm, the idea of the ``.add()`` and ``.subtract()`` methods is tempting,
> but I not sure it is a good idea to add new methods to the ndarray
> object that are meant to be used with just the date/time dtype.
>
> I'm afraid that I'm -1 here.
I fully agree with Francesc, .add and .subtract will be quite confusing.
About inplace conversions, the right-end (other) is cast to the type of the
left end (self) by default following the basic rule of casting when there's
no ambiguity and raising an exception otherwise ?
More information about the NumPy-Discussion
mailing list