[Numpy-discussion] Dates and times and Datetime64 (again)

Sankarshan Mudkavi smudkavi at uwaterloo.ca
Fri Apr 11 18:25:46 EDT 2014


So is the consensus that we don't accept any tags at all (not even temporarily)? Would that break too much existing code?

Cheers,
Sankarshan

On Apr 1, 2014, at 2:50 PM, Alexander Belopolsky <ndarray at mac.com> wrote:

> 
> On Tue, Apr 1, 2014 at 1:12 PM, Nathaniel Smith <njs at pobox.com> wrote:
> In [6]: a[0] = "garbage"
> ValueError: could not convert string to float: garbage
> 
> (Cf, "Errors should never pass silently".) Any reason why datetime64
> should be different?
> 
> datetime64 is different because it has NaT support from the start.  NaN support for floats seems to be an afterthought if not an accident of implementation.
> 
> And it looks like some errors do pass silently:
> 
> >>> a[0] = "1"
> # not a TypeError
> 
> But I withdraw my suggestion.  The closer datetime64 behavior is to numeric types the better.
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

-- 
Sankarshan Mudkavi
Undergraduate in Physics, University of Waterloo
www.smudkavi.com






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140411/dad07e26/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140411/dad07e26/attachment.sig>


More information about the NumPy-Discussion mailing list