loop over list and modify in place
nogradi at gmail.com
Sat Sep 30 23:30:21 CEST 2006
> Call me crazy, but isn't the simple construct
> for obj in mylist:
> obj.newattribute = 'new value'
> what the OP was looking for?
Yes, of course. That's why my follow-up post was this:
> Please consider the previous question as an arbitrary random brain
> cell fluctuation whose probability of occurence is around once per
> month and before sending the question it hasn't yet happened to me in
More information about the Python-list