diff options
author | David Cournapeau <cournape@gmail.com> | 2008-12-30 04:25:14 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-12-30 04:25:14 +0000 |
commit | d8e1882b8d65ba4e2286f847723441f97eb311ea (patch) | |
tree | bcfc861a271f02f437724312d1d6fc577c2b3bcf /numpy | |
parent | 4556166f8b5bf0b0c06ef8574268af42e8800d2f (diff) | |
download | numpy-d8e1882b8d65ba4e2286f847723441f97eb311ea.tar.gz |
Enable the tp_print function for float and complex types.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/scalartypes.inc.src | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/core/src/scalartypes.inc.src b/numpy/core/src/scalartypes.inc.src index 8b1d08254..d071943c1 100644 --- a/numpy/core/src/scalartypes.inc.src +++ b/numpy/core/src/scalartypes.inc.src @@ -3153,6 +3153,14 @@ ComplexFloating, Flexible, Character# PyCDoubleArrType_Type.tp_@name@ = cdoubletype_@name@; /**end repeat**/ + PyFloatArrType_Type.tp_print = floattype_print; + PyDoubleArrType_Type.tp_print = doubletype_print; + PyLongDoubleArrType_Type.tp_print = longdoubletype_print; + + PyCFloatArrType_Type.tp_print = cfloattype_print; + PyCDoubleArrType_Type.tp_print = cdoubletype_print; + PyCLongDoubleArrType_Type.tp_print = clongdoubletype_print; + /* These need to be coded specially because getitem does not return a normal Python type */ |