From: Stefan Behnel Date: Thu, 7 Apr 2011 13:30:07 +0000 (+0200) Subject: fix nonlocal crashes X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4e6939e997952985cd66e4a44be4bc97adef9ae7;p=cython.git fix nonlocal crashes --- diff --git a/Cython/Compiler/TypeInference.py b/Cython/Compiler/TypeInference.py index a0870c76..3ff3daf7 100644 --- a/Cython/Compiler/TypeInference.py +++ b/Cython/Compiler/TypeInference.py @@ -239,7 +239,7 @@ class SimpleAssignmentTypeInferer(object): ready_to_infer = [] for name, entry in scope.entries.items(): if entry.type is unspecified_type: - if entry.in_closure: + if entry.in_closure or entry.from_closure: # cross-closure type inference is not currently supported entry.type = py_object_type continue