[Numpy-svn] r3879 - trunk/numpy/core

numpy-svn@scip... numpy-svn@scip...
Mon Jul 2 11:59:05 CDT 2007


Author: cookedm
Date: 2007-07-02 11:59:03 -0500 (Mon, 02 Jul 2007)
New Revision: 3879

Modified:
   trunk/numpy/core/numerictypes.py
Log:
Add the `inexact` dtype to the tree of types in the numerictypes.py docstring.
Also add some ASCII lines to make the tree clearer.


Modified: trunk/numpy/core/numerictypes.py
===================================================================
--- trunk/numpy/core/numerictypes.py	2007-07-02 16:09:57 UTC (rev 3878)
+++ trunk/numpy/core/numerictypes.py	2007-07-02 16:59:03 UTC (rev 3879)
@@ -35,43 +35,43 @@
     float_, complex_,
     longfloat, clongfloat,
 
-    As part of the type-hierarchy:    xx -- is bit-width
+   As part of the type-hierarchy:    xx -- is bit-width
 
-     generic
-       bool_
-       number
-         integer
-           signedinteger   (intxx)
-             byte
-             short
-             intc
-             intp           int0
-             int_
-             longlong
-           unsignedinteger  (uintxx)
-             ubyte
-             ushort
-             uintc
-             uintp          uint0
-             uint_
-             ulonglong
-         floating           (floatxx)
-             single
-             float_  (double)
-             longfloat
-         complexfloating    (complexxx)
-             csingle
-             complex_ (cfloat, cdouble)
-             clongfloat
+   generic
+     +-> bool_
+     +-> number
+     |     integer
+     |     signedinteger   (intxx)
+     |     byte
+     |     short
+     |     intc
+     |     intp           int0
+     |     int_
+     |     longlong
+     +-> unsignedinteger  (uintxx)
+     |     ubyte
+     |     ushort
+     |     uintc
+     |     uintp          uint0
+     |     uint_
+     |     ulonglong
+     +-> inexact
+     |   +-> floating           (floatxx)
+     |   |     single
+     |   |     float_  (double)
+     |   |     longfloat
+     |   \-> complexfloating    (complexxx)
+     |         csingle
+     |         complex_ (cfloat, cdouble)
+     |         clongfloat
+     +-> flexible
+     |     character
+     |     str_     (string_)
+     |     unicode_
+     |     void
+     |
+     \-> object_ (not used much)
 
-       flexible
-         character
-           str_     (string_)
-           unicode_
-         void
-
-       object_ (not used much)
-
 $Id: numerictypes.py,v 1.17 2005/09/09 22:20:06 teoliphant Exp $
 """
 
@@ -228,7 +228,7 @@
             sctypeDict[charname] = typeobj
             sctypeDict[ucharname] = utypeobj
             sctypeNA[Intname] = typeobj
-            sctypeNA[UIntname] = utypeobj            
+            sctypeNA[UIntname] = utypeobj
             sctypeNA[charname] = typeobj
             sctypeNA[ucharname] = utypeobj
         sctypeNA[typeobj] = Intname



More information about the Numpy-svn mailing list