

def dict(self):
    d = dict()
    for k in self.keys():
        d[k] = self.__dict__.get(k)
    return d

dataset/ETHPy150Open kennethreitz-archive/python-github3/github3/models.py BaseResource.dict/original