From de719936cf64df1a8f1096fb7f3a2be720906da4 Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Fri, 3 Jun 2011 12:20:52 -0500 Subject: ENH: datetime: Remove TimeInteger, partially fix up datetime array printing The TimeInteger seemed like the wrong abstraction to me. Timedelta is reasonable as an integer, and in fact if NumPy supported arbitrary unit metadata, Timedelta could be removed and that mechanism used instead. Datetime, however, doesn't represent an integer. Datetime has no zero (barring big bang, God's creation, or some other choice...), something which integers definitely have. --- numpy/core/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 55ab74168..67235e4d1 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -1332,7 +1332,7 @@ def array_repr(arr, max_line_width=None, precision=None, suppress_small=None): if typeless and arr.size: return cName + "(%s)" % lst else: - typename=arr.dtype.name + typename="'%s'" % arr.dtype.name lf = '' if issubclass(arr.dtype.type, flexible): if arr.dtype.names: -- cgit v1.2.1