Unknown flag, "OWNDATA" ("O")
Issue #44
new
I cannot use the flag "OWNDATA" in NumPyPy (pypy 4.0.1)
>>>> import numpy
>>>> numpy.require([1], numpy.int)
array([1])
>>>> numpy.require([1], numpy.int, ["C"])
array([1])
>>>> numpy.require([1], numpy.int, ["C", "O"])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/hatem/.virtualenvs/pypy-tmp/site-packages/numpy/core/numeric.py", line 671, in require
if not arr.flags[prop]:
KeyError: 'Unknown flag'
>>>> numpy.require([1], numpy.int, ["C", "OWNDATA"])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/hatem/.virtualenvs/pypy-tmp/site-packages/numpy/core/numeric.py", line 671, in require
if not arr.flags[prop]:
KeyError: 'Unknown flag'
Comments (1)
-
reporter - Log in to comment
also tested this with latest Numpypy and http://buildbot.pypy.org/nightly/trunk/pypy-c-jit-latest-linux64.tar.bz2