{"action":"opened","issue":{"url":"https://api.github.com/repos/numba/numba/issues/1229","labels_url":"https://api.github.com/repos/numba/numba/issues/1229/labels{/name}","comments_url":"https://api.github.com/repos/numba/numba/issues/1229/comments","events_url":"https://api.github.com/repos/numba/numba/issues/1229/events","html_url":"https://github.com/numba/numba/issues/1229","id":88074262,"number":1229,"title":"Need to respect the ndarray.flags.writeable flag","user":{"login":"seibert","id":425352,"avatar_url":"https://avatars.githubusercontent.com/u/425352?v=3","gravatar_id":"","url":"https://api.github.com/users/seibert","html_url":"https://github.com/seibert","followers_url":"https://api.github.com/users/seibert/followers","following_url":"https://api.github.com/users/seibert/following{/other_user}","gists_url":"https://api.github.com/users/seibert/gists{/gist_id}","starred_url":"https://api.github.com/users/seibert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seibert/subscriptions","organizations_url":"https://api.github.com/users/seibert/orgs","repos_url":"https://api.github.com/users/seibert/repos","events_url":"https://api.github.com/users/seibert/events{/privacy}","received_events_url":"https://api.github.com/users/seibert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-13T22:16:45Z","updated_at":"2015-06-13T22:16:45Z","closed_at":null,"body":"Numba allows writes to arrays that have the writeable flag set to False.  This code:\r\n```python\r\n@numba.jit(nopython=True)\r\ndef write_test(x):\r\n    x[1] = 20\r\n\r\na = np.arange(5)\r\na.flags.writeable = False\r\nwrite_test(a)\r\nprint(a)\r\n```\r\nprints this:\r\n```\r\n[ 0 20  2  3  4]\r\n```\r\nThis should raise a compilation error, if possible.  (Presumably, this means that we need a read only array type.)"}}