def issues2dict(issues):
 idict = {}
 for i in issues:
  idict[i['number']] = i
 return idict

def issues2dict ( issues ) : idict = { } for i in issues : idict [ i [ 'number' ] ] = i return idict
convert a list of issues to a dict .