fix name mangling in generator expressions
authorStefan Behnel <scoder@users.berlios.de>
Tue, 8 Mar 2011 05:57:49 +0000 (06:57 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 8 Mar 2011 05:57:49 +0000 (06:57 +0100)
Cython/Compiler/Symtab.py

index 0d0e5760228967750c5521b327d28b5d00c83b89..17fc975864bcce199c40cccef12d9c1814eb6282 100644 (file)
@@ -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):