Issue 12845: PEP-3118: C-contiguity with zero strides (original) (raw)
Issue12845
Created on 2011-08-26 10:29 by skrah, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg143005 - (view) | Author: Stefan Krah (skrah) * ![]() |
Date: 2011-08-26 10:29 |
Numpy and PyBuffer_IsContiguous() have different ideas of C-contiguity if there is a zero in strides (this is allowed, I asked Pauli Virtanen). >>> from numpy import * >>> nd = ndarray(shape=[10], strides=[0]) >>> nd.flags C_CONTIGUOUS : True F_CONTIGUOUS : False OWNDATA : True WRITEABLE : True ALIGNED : True UPDATEIFCOPY : False >>> >>> from _testbuffer import ndarray as pyarray >>> from _testbuffer import PyBUF_FULL_RO >>> x = pyarray(nd, getbuf=PyBUF_FULL_RO) >>> x.c_contiguous False | ||
msg221481 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014-06-24 19:14 |
What is the status of this issue as according to the index PEP 3118 has been completed? | ||
msg227123 - (view) | Author: Stefan Krah (skrah) * ![]() |
Date: 2014-09-19 21:12 |
This was a bug in NumPy that has been fixed. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:21 | admin | set | github: 57054 |
2014-09-19 21:12:38 | skrah | set | status: open -> closedversions: + Python 3.5, - Python 3.3messages: + resolution: not a bugstage: resolved |
2014-06-24 19:14:44 | BreamoreBoy | set | nosy: + BreamoreBoymessages: + |
2011-08-26 10:29:44 | skrah | create |