Unknown flag, "OWNDATA" ("O")

Issue #44 new
Hatem Nassrat created an issue

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)

  1. Log in to comment