{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/9243","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/9243/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/9243/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/9243/events","html_url":"https://github.com/numpy/numpy/issues/9243","id":235024836,"number":9243,"title":"Using `a.flat.__array__()` may make `a` unwriteable.","user":{"login":"charris","id":77272,"avatar_url":"https://avatars0.githubusercontent.com/u/77272?v=3","gravatar_id":"","url":"https://api.github.com/users/charris","html_url":"https://github.com/charris","followers_url":"https://api.github.com/users/charris/followers","following_url":"https://api.github.com/users/charris/following{/other_user}","gists_url":"https://api.github.com/users/charris/gists{/gist_id}","starred_url":"https://api.github.com/users/charris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charris/subscriptions","organizations_url":"https://api.github.com/users/charris/orgs","repos_url":"https://api.github.com/users/charris/repos","events_url":"https://api.github.com/users/charris/events{/privacy}","received_events_url":"https://api.github.com/users/charris/received_events","type":"User","site_admin":false},"labels":[{"id":6359214,"url":"https://api.github.com/repos/numpy/numpy/labels/00%20-%20Bug","name":"00 - Bug","color":"fef2c0","default":false},{"id":16917029,"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.core","name":"component: numpy.core","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-10T20:22:52Z","updated_at":"2017-06-10T20:25:52Z","closed_at":null,"body":"Example\r\n\r\n```\r\nIn [1]: a = np.ones(10)[::2]  # flat iter will use updateifcopy for non-contiguous array\r\n\r\nIn [2]: a.flags\r\nOut[2]: \r\n  C_CONTIGUOUS : False\r\n  F_CONTIGUOUS : False\r\n  OWNDATA : False\r\n  WRITEABLE : True\r\n  ALIGNED : True\r\n  UPDATEIFCOPY : False\r\n\r\nIn [3]: a.flat.__array__().flags\r\nOut[3]: \r\n  C_CONTIGUOUS : True\r\n  F_CONTIGUOUS : True\r\n  OWNDATA : True\r\n  WRITEABLE : True\r\n  ALIGNED : True\r\n  UPDATEIFCOPY : True\r\n\r\nIn [4]: a.flags\r\nOut[4]: \r\n  C_CONTIGUOUS : False\r\n  F_CONTIGUOUS : False\r\n  OWNDATA : False\r\n  WRITEABLE : False\r\n  ALIGNED : True\r\n  UPDATEIFCOPY : False\r\n```"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/307588296","html_url":"https://github.com/numpy/numpy/issues/9243#issuecomment-307588296","issue_url":"https://api.github.com/repos/numpy/numpy/issues/9243","id":307588296,"user":{"login":"charris","id":77272,"avatar_url":"https://avatars0.githubusercontent.com/u/77272?v=3","gravatar_id":"","url":"https://api.github.com/users/charris","html_url":"https://github.com/charris","followers_url":"https://api.github.com/users/charris/followers","following_url":"https://api.github.com/users/charris/following{/other_user}","gists_url":"https://api.github.com/users/charris/gists{/gist_id}","starred_url":"https://api.github.com/users/charris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charris/subscriptions","organizations_url":"https://api.github.com/users/charris/orgs","repos_url":"https://api.github.com/users/charris/repos","events_url":"https://api.github.com/users/charris/events{/privacy}","received_events_url":"https://api.github.com/users/charris/received_events","type":"User","site_admin":false},"created_at":"2017-06-10T20:25:52Z","updated_at":"2017-06-10T20:25:52Z","body":"Note that this shows up in unexpected places\r\n```\r\nIn [14]: a = ones(10)[::2]\r\n\r\nIn [15]: asarray(a.flat)\r\nOut[15]: array([ 1.,  1.,  1.,  1.,  1.])\r\n\r\nIn [16]: a.flags\r\nOut[16]: \r\n  C_CONTIGUOUS : False\r\n  F_CONTIGUOUS : False\r\n  OWNDATA : False\r\n  WRITEABLE : False\r\n  ALIGNED : True\r\n  UPDATEIFCOPY : False\r\n```\r\n"}}
{"actor":{"display_login":"charris"}}