newb: Scope Question

johnny rampeters at gmail.com
Sat Jun 23 00:53:54 CEST 2007


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))




More information about the Python-list mailing list