On Fri, Apr 11, 2014 at 7:58 PM, Stephan Hoyer <sho...@gmail.com> wrote:

> print datetime(2010, 1, 1) < np.datetime64('2011-01-01') # raises exception


This is somewhat consistent with

>>> from datetime import *
>>> datetime(2010, 1, 1) < date(2010, 1, 1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: can't compare datetime.datetime to datetime.date

but I would expect date(2010, 1, 1) < np.datetime64('2011-01-01') to return
False.
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to