provide 'complex' type as Builtin.complex_type
authorStefan Behnel <scoder@users.berlios.de>
Tue, 20 Jul 2010 22:40:07 +0000 (00:40 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 20 Jul 2010 22:40:07 +0000 (00:40 +0200)
Cython/Compiler/Builtin.py

index 21aa48e539f51c50899f5c8d88f61b387d2bb5f0..25e9395676fb0dee61e05e1bd0efc446f4b71ee8 100644 (file)
@@ -415,7 +415,7 @@ def init_builtins():
     init_builtin_structs()
     global list_type, tuple_type, dict_type, set_type, frozenset_type
     global bytes_type, str_type, unicode_type
-    global float_type, bool_type, type_type
+    global float_type, bool_type, type_type, complex_type
     type_type  = builtin_scope.lookup('type').type
     list_type  = builtin_scope.lookup('list').type
     tuple_type = builtin_scope.lookup('tuple').type
@@ -427,5 +427,6 @@ def init_builtins():
     unicode_type = builtin_scope.lookup('unicode').type
     float_type = builtin_scope.lookup('float').type
     bool_type  = builtin_scope.lookup('bool').type
+    complex_type  = builtin_scope.lookup('complex').type
 
 init_builtins()