Message227128
Thanks, #12845 is indeed fixed in NumPy.
Why does NumPy consider an array with a stride that will almost
certainly lead to undefined behavior (unless you compile with
-fwrapv) as valid?
In CPython we try to eliminate these kinds of issues (though
they may still be present).
>>> import numpy as np
import io
x = np.arange(10)
y = np.array([x])
print(y.strides)
(9223372036854775807, 8)
>>>
>>>
>>> y.flags
C_CONTIGUOUS : True
F_CONTIGUOUS : True
OWNDATA : True
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : False |
|
Date |
User |
Action |
Args |
2014-09-19 22:00:35 | skrah | set | recipients:
+ skrah, seberg |
2014-09-19 22:00:35 | skrah | set | messageid: <1411164035.65.0.415338086084.issue22445@psf.upfronthosting.co.za> |
2014-09-19 22:00:35 | skrah | link | issue22445 messages |
2014-09-19 22:00:35 | skrah | create | |
|