From 37959d5dbd049ca8d694d181349105aed022fd59 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 Oct 2009 15:46:35 +0200 Subject: [PATCH] provide 'str' type in Builtins.py --- Cython/Compiler/Builtin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index 53ce01b1..64f8969c 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -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() -- 2.26.2