[Numpy-discussion] datetime64 constructor ignores dtype argument?

Pauli Virtanen pav@iki...
Wed Jun 12 05:18:02 CDT 2013


Dave Hirschfeld <dave.hirschfeld <at> gmail.com> writes:
> The example below demonstrates the fact that the datetime64
> constructor ignores the dtype argument if passed in. Is this
> conscious design decision or a bug/oversight?

Bug. There's probably no dtype argument, but the constructor
just ignores all arguments:

>>> np.datetime64('2012', spam='parrot')
2012-01-01 00:00:00




More information about the NumPy-Discussion mailing list