[Numpy-discussion] very simple iteration question.

Gael Varoquaux gael.varoquaux@normalesup....
Wed Apr 30 14:09:30 CDT 2008


On Wed, Apr 30, 2008 at 11:57:44AM -0700, Christopher Barker wrote:
> I think I still like the idea of an iterator (or maybe making rollaxis a 
> method?), but this works pretty well.

Generally, in object oriented programming, you expect a method like
rollaxis to modify an object inplace. At least that would be my
expectation.

Gaël


More information about the Numpy-discussion mailing list