From: Stefan Behnel Date: Sat, 10 Oct 2009 13:46:35 +0000 (+0200) Subject: provide 'str' type in Builtins.py X-Git-Tag: 0.13.beta0~2^2~121^2~84 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37959d5dbd049ca8d694d181349105aed022fd59;p=cython.git provide 'str' type in Builtins.py --- 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()