From 16370195566f9cdfbc0b3e0ea9084eb6d29ad499 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 8 Mar 2011 06:57:49 +0100 Subject: [PATCH] fix name mangling in generator expressions --- Cython/Compiler/Symtab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 0d0e5760..17fc9758 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -1351,7 +1351,7 @@ class GeneratorExpressionScope(Scope): self.genexp_prefix = "%s%d%s" % (Naming.pyrex_prefix, len(name), name) def mangle(self, prefix, name): - return '%s%s' % (self.genexp_prefix, self.parent_scope.mangle(self, prefix, name)) + return '%s%s' % (self.genexp_prefix, self.parent_scope.mangle(prefix, name)) def declare_var(self, name, type, pos, cname = None, visibility = 'private', is_cdef = True): -- 2.26.2