From 7a0e473148edca47135be7e6255d248a5c2bf063 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 11 Sep 2009 20:01:09 +0200 Subject: [PATCH] cdef enums seem to require an analyse_expressions() --- Cython/Compiler/Nodes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index e61bf244..b0ba4da1 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -906,6 +906,9 @@ class CEnumDefNode(StatNode): for item in self.items: item.analyse_declarations(env, self.entry) + def analyse_expressions(self, env): + pass + def generate_execution_code(self, code): if self.visibility == 'public': temp = code.funcstate.allocate_temp(PyrexTypes.py_object_type, manage_ref=True) -- 2.26.2