From 4e6939e997952985cd66e4a44be4bc97adef9ae7 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 7 Apr 2011 15:30:07 +0200 Subject: [PATCH] fix nonlocal crashes --- Cython/Compiler/TypeInference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2