From f972b0421ac043c0d0465a8c431982ebe8454920 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 21 Jul 2010 00:40:07 +0200 Subject: [PATCH] provide 'complex' type as Builtin.complex_type --- Cython/Compiler/Builtin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.26.2