[Python-checkins] r69389 - python/trunk/Lib/compiler/pycodegen.py
neil.schemenauer
python-checkins at python.org
Sat Feb 7 01:13:39 CET 2009
Author: neil.schemenauer
Date: Sat Feb 7 01:13:39 2009
New Revision: 69389
Log:
Make names generated for 'with' variables match the built-in compiler.
Modified:
python/trunk/Lib/compiler/pycodegen.py
Modified: python/trunk/Lib/compiler/pycodegen.py
==============================================================================
--- python/trunk/Lib/compiler/pycodegen.py (original)
+++ python/trunk/Lib/compiler/pycodegen.py Sat Feb 7 01:13:39 2009
@@ -814,8 +814,8 @@
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')
More information about the Python-checkins
mailing list