Kaydet (Commit) 614e87f2 authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Add support for visitAssAttr to findOp().

üst 542b11ac
......@@ -669,7 +669,6 @@ class CodeGenerator:
print node
def _visitAssSequence(self, node, op='UNPACK_SEQUENCE'):
## print >> sys.stderr, "AssSequence", op, findOp(node), node
if findOp(node) != 'OP_DELETE':
self.emit(op, len(node.nodes))
for child in node.nodes:
......@@ -1207,6 +1206,7 @@ class OpFinder:
self.op = node.flags
elif self.op != node.flags:
raise ValueError, "mixed ops in stmt"
visitAssAttr = visitAssName
class Delegator:
"""Base class to support delegation for augmented assignment nodes
......
......@@ -669,7 +669,6 @@ class CodeGenerator:
print node
def _visitAssSequence(self, node, op='UNPACK_SEQUENCE'):
## print >> sys.stderr, "AssSequence", op, findOp(node), node
if findOp(node) != 'OP_DELETE':
self.emit(op, len(node.nodes))
for child in node.nodes:
......@@ -1207,6 +1206,7 @@ class OpFinder:
self.op = node.flags
elif self.op != node.flags:
raise ValueError, "mixed ops in stmt"
visitAssAttr = visitAssName
class Delegator:
"""Base class to support delegation for augmented assignment nodes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment