Re: newb: Scope Question

2007-06-22 Thread attn . steven . kuo
On Jun 22, 3:53 pm, johnny <[EMAIL PROTECTED]> wrote: > 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

Re: newb: Scope Question

2007-06-22 Thread James Stroud
johnny wrote: > 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['

newb: Scope Question

2007-06-22 Thread johnny
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(',')