diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py index 808f51f4170..e7ce1a9ddb1 100644 --- a/Lib/compiler/pycodegen.py +++ b/Lib/compiler/pycodegen.py @@ -814,8 +814,8 @@ def visitTryFinally(self, node): def visitWith(self, node): body = self.newBlock() final = self.newBlock() - valuevar = "$value%d" % self.__with_count self.__with_count += 1 + valuevar = "_[%d]" % self.__with_count self.set_lineno(node) self.visit(node.expr) self.emit('DUP_TOP')