[NumPy-Tickets] [NumPy] #1887: broken int64 format in timedelta64 for Python < 2.7
NumPy Trac
numpy-tickets@scipy....
Wed Jun 29 11:18:50 CDT 2011
#1887: broken int64 format in timedelta64 for Python < 2.7
---------------------------------------+------------------------------------
Reporter: derek | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: devel
Keywords: datetime, integer formats |
---------------------------------------+------------------------------------
With Python versions 2.4-2.6, the output of np.timedelta only produces the
format string since (probably) merging the datetime branch, like this:
{{{
>>> np.__version__
'2.0.0.dev-f7c16d7'
>>> np.timedelta64(3)
numpy.timedelta64(%lld,'generic')
>>> str(np.timedelta64(3, 's'))
'%lld seconds'
}}}
or in the most recent version
{{{
>>> np.__version__
'2.0.0.dev-192ac74'
>>> np.timedelta64(3)
numpy.timedelta64(%lld)
}}}
making the corresponding tests fail, whereas with 2.7 and 3.2 the intended
output is produced:
{{{
>>> np.timedelta64(3)
numpy.timedelta64(3)
>>> str(np.timedelta64(3, 's'))
'3 seconds'
}}}
(Tested on MacOS X 10.5/ppc and 10.6/x86_64)
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1887>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list