[Numpy-svn] r6246 - branches/fix_float_format/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Mon Dec 29 22:25:20 CST 2008


Author: cdavid
Date: 2008-12-29 22:25:14 -0600 (Mon, 29 Dec 2008)
New Revision: 6246

Modified:
   branches/fix_float_format/numpy/core/src/scalartypes.inc.src
Log:
Enable the tp_print function for float and complex types.

Modified: branches/fix_float_format/numpy/core/src/scalartypes.inc.src
===================================================================
--- branches/fix_float_format/numpy/core/src/scalartypes.inc.src	2008-12-30 04:23:30 UTC (rev 6245)
+++ branches/fix_float_format/numpy/core/src/scalartypes.inc.src	2008-12-30 04:25:14 UTC (rev 6246)
@@ -3153,6 +3153,14 @@
     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
      */



More information about the Numpy-svn mailing list