

def __init__(self, source, *args, **kwargs):
    self.source = source
    self.args = args
    if ((len(args) == 2) and isinstance(args[1], (string_types, tuple, list))):
        self.rmatch = args[0]
        self.vmatch = self[1]
        self.vdict = None
        self.attr = None
    elif ((len(args) == 2) and isinstance(args[1], dict)):
        self.rmatch = args[0]
        self.vmatch = None
        self.vdict = args[1]
        self.attr = None
    elif (len(args) == 3):
        self.rmatch = args[0]
        self.vmatch = args[1]
        self.vdict = None
        self.attr = args[2]
    else:
        assert False, 'bad parameters'
    self.missing = kwargs.get('missing', None)

dataset/ETHPy150Open alimanfoo/petl/petl/io/xml.py XmlView.__init__/VarMisuse@73/79 `args`->`self`