diff options
author | Mark Wiebe <mwiebe@enthought.com> | 2011-06-03 12:20:52 -0500 |
---|---|---|
committer | Mark Wiebe <mwiebe@enthought.com> | 2011-06-03 12:20:52 -0500 |
commit | de719936cf64df1a8f1096fb7f3a2be720906da4 (patch) | |
tree | d0106c1e1e4e5a7483747c36fbc0e00314153573 /numpy/core/numeric.py | |
parent | 681adf030eda8e9097cf53856dda6426b2351485 (diff) | |
download | numpy-de719936cf64df1a8f1096fb7f3a2be720906da4.tar.gz |
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.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |