loop over list and modify in place
Daniel Nogradi
nogradi at gmail.com
Sat Sep 30 17:30:21 EDT 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
> September.
:)
More information about the Python-list
mailing list