[Numpy-discussion] _contiguous A trap for the unwary
Colin J. Williams
cjw at sympatico.ca
Tue Feb 10 13:44:08 EST 2004
The assignment of a value to self._shape has an unexpected side-effect.
self.iscontiguous() changes from True to False - desirable, but
unexpected
self._contiguous remains with the value 2.
I had expected _contiguous to be in step with iscontiguous().
How does the function iscontiguous() determine contiguity?
Is the variable now redundant?
Colin W.
More information about the NumPy-Discussion
mailing list