Don't have complex as a builtin type (otherwise, can't access its attributes).
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 25 Mar 2009 22:46:35 +0000 (15:46 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 25 Mar 2009 22:46:35 +0000 (15:46 -0700)
Cython/Compiler/Builtin.py

index 30728d09b65d2968146e4d0beb7b0075c319288d..c7b1be6f42e93fe2810de7c0b0f510633cb0d1be 100644 (file)
@@ -91,7 +91,10 @@ builtin_types_table = [
     ("int",     "PyInt_Type",      []),
     ("long",    "PyLong_Type",     []),
     ("float",   "PyFloat_Type",    []),
-    ("complex", "PyComplex_Type",  []),
+    
+# Until we have a way to access attributes of a type, 
+# we don't want to make this one builtin.    
+#    ("complex", "PyComplex_Type",  []),
 
     ("bytes",   "PyBytes_Type",    []),
     ("str",     "PyString_Type",   []),