def pairs_to_dict(response, encoding):
    it = iter(response)
    return dict(((k.decode(encoding), v) for k, v in zip(it, it)))
Create a dict given a list of key/value pairs
dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/backends/redisb/__init__.py/pairs_to_dict