[Numpy-discussion] apply 'getitem to each element of obj array?

Neal Becker ndbecker2@gmail....
Thu Apr 5 10:45:58 CDT 2012

Adam Hughes wrote:

> If you are storing objects, then can't you store them in a list and just do:
> for obj in objectlist:
>      obj.attribute = value
> Or am I misunderstanding?

It's multi-dimensional, and I wanted to avoid writing explicit loops.

More information about the NumPy-Discussion mailing list