[Numpy-discussion] _contiguous A trap for the unwary
Colin J. Williams
cjw at sympatico.ca
Tue Feb 10 13:44:08 CST 2004
The assignment of a value to self._shape has an unexpected side-effect.
self.iscontiguous() changes from True to False - desirable, but
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?
More information about the Numpy-discussion