provide 'str' type in Builtins.py
authorStefan Behnel <scoder@users.berlios.de>
Sat, 10 Oct 2009 13:46:35 +0000 (15:46 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 10 Oct 2009 13:46:35 +0000 (15:46 +0200)
Cython/Compiler/Builtin.py

index 53ce01b13382c282bb68d26e9cf253e40460a12b..64f8969c677514422b65deeb83f2a5a90b485920 100644 (file)
@@ -392,13 +392,15 @@ def init_builtins():
     init_builtin_funcs()
     init_builtin_types()
     init_builtin_structs()
-    global list_type, tuple_type, dict_type, set_type, bytes_type, unicode_type, type_type
+    global list_type, tuple_type, dict_type, set_type, type_type
+    global bytes_type, str_type, unicode_type
     type_type  = builtin_scope.lookup('type').type
     list_type  = builtin_scope.lookup('list').type
     tuple_type = builtin_scope.lookup('tuple').type
     dict_type  = builtin_scope.lookup('dict').type
     set_type   = builtin_scope.lookup('set').type
     bytes_type = builtin_scope.lookup('bytes').type
+    str_type   = builtin_scope.lookup('str').type
     unicode_type = builtin_scope.lookup('unicode').type
 
 init_builtins()