From 042c55d5886b06a498fa43ee912701d8a1ca2c83 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 25 Mar 2009 15:46:35 -0700 Subject: [PATCH] Don't have complex as a builtin type (otherwise, can't access its attributes). --- Cython/Compiler/Builtin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index 30728d09..c7b1be6f 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -91,7 +91,10 @@ builtin_types_table = [ ("int", "PyInt_Type", []), ("long", "PyLong_Type", []), ("float", "PyFloat_Type", []), - ("complex", "PyComplex_Type", []), + +# Until we have a way to access attributes of a type, +# we don't want to make this one builtin. +# ("complex", "PyComplex_Type", []), ("bytes", "PyBytes_Type", []), ("str", "PyString_Type", []), -- 2.26.2