[Numpy-discussion] datetime failure on py3k, string type issue.
Charles R Harris
charlesr.harris at gmail.com
Tue May 4 02:15:43 EDT 2010
The following fails after fixing datetime_data
assert_equal(datetime_data(a.dtype), ('us', 1, 1, 1))
The problem is that 'us' is unicode and the function call yields bytes. The
question is: should datetime units use unicode when compiled on python >=
3k?
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100504/1fd27b0b/attachment.html>
More information about the NumPy-Discussion
mailing list