From: Stefan Behnel Date: Tue, 8 Mar 2011 05:57:49 +0000 (+0100) Subject: fix name mangling in generator expressions X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=16370195566f9cdfbc0b3e0ea9084eb6d29ad499;p=cython.git fix name mangling in generator expressions --- 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):