'Return node suitable for lvalue of augmented assignment
Names, slices, and attributes are the only allowable nodes.'

def com_augassign(self, node):

    l = self.com_node(node)
    if (l.__class__ in (Name, Slice, Subscript, Getattr)):
        return l
    raise SyntaxError, ("can't    assign    to    %s" % l.__class__.__name__)
