[Numpy-discussion] can't resize ndarray subclass
oliphant.travis at ieee.org
Tue Feb 28 14:15:01 EST 2006
Tim Hochberg wrote:
> I'd suggest that this get exposed as a separate function, for instance
> A._unchecked_resize(size). It seems much less likely that this will
> accidentally get called than that somone will mistakenly throw a
> second boolean argument into resize.
The way the resize method is written, you can't mistakenly throw in
another argument. You would have to provide a "refcheck" keyword
argument. I can't see that being a mistake.
The resize method can be called with either a sequence or with several
Both of these are equivalent. To get the refcheck functionality you
would have to explicitly provide a keyword argument.
More information about the NumPy-Discussion