This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients seberg, skrah
Date 2014-09-19.22:00:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411164035.65.0.415338086084.issue22445@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-09-19 22:00:35skrahsetrecipients: + skrah, seberg
2014-09-19 22:00:35skrahsetmessageid: <1411164035.65.0.415338086084.issue22445@psf.upfronthosting.co.za>
2014-09-19 22:00:35skrahlinkissue22445 messages
2014-09-19 22:00:35skrahcreate