Scope of ids: When I print "ids", it's always empty string '', as I have intialized before. That's not what I want. I want the ids to have str(r['id']).join(',')
if res: ids = '' for r in res['key']: ids = str(r['id']).join(',') print("ids: %s" %(ids)) -- http://mail.python.org/mailman/listinfo/python-list