> i wrote a code like this
>
> for i in res:
> dict = {}
> dict['id_desc'] = str(i['id'])+','+str(i['description'])
> i.update(dict)
>
> is there any other simple methods to achieve this?
>Can you avoid the intermediate "dict" and just assign to i['id_desc'] directly?
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
