From: Stefan Behnel Date: Fri, 3 Dec 2010 14:37:47 +0000 (+0100) Subject: fix compiler crash after last change X-Git-Tag: 0.14.alpha0~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e5453979aa6b90c49d14cd55de59890b09ea1e45;p=cython.git fix compiler crash after last change --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 8a7cc5ca..09a9ffdf 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3244,10 +3244,9 @@ class CClassDefNode(ClassDefNode): self.body.analyse_expressions(scope) def generate_function_definitions(self, env, code): - self.generate_lambda_definitions(self.scope, code) if self.body: - self.body.generate_function_definitions( - self.entry.type.scope, code) + self.generate_lambda_definitions(self.scope, code) + self.body.generate_function_definitions(self.scope, code) def generate_execution_code(self, code): # This is needed to generate evaluation code for