From: Stefan Behnel Date: Tue, 20 Jul 2010 22:40:07 +0000 (+0200) Subject: provide 'complex' type as Builtin.complex_type X-Git-Tag: 0.13.beta0~2^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f972b0421ac043c0d0465a8c431982ebe8454920;p=cython.git provide 'complex' type as Builtin.complex_type --- diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index 21aa48e5..25e93956 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -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()