

def __setitem__(self, key, value):
    ' If `key` is assigned more than once, `self[key]` holds a\n        `list` of all the values.\n\n        This allows having multiple fields with the same name in form\n        data and URL params.\n\n        '
    if (key not in self):
        super(ParamDict, self).__setitem__(key, value)
    else:
        if (not isinstance(self[key], list)):
            super(ParamDict, self).__setitem__(key, [self[key]])
        self[key].append(value)

dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/httpie/input.py ParamDict.__setitem__/original