[Numpy-discussion] datetime64 constructor ignores dtype argument?
Pauli Virtanen
pav at iki.fi
Wed Jun 12 06:18:02 EDT 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