{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/6330","labels_url":"https://api.github.com/repos/numpy/numpy/issues/6330/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/6330/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/6330/events","html_url":"https://github.com/numpy/numpy/pull/6330","id":107203733,"number":6330,"title":"BUG: only tell/seek np.fromfile when buffered","user":{"login":"cjermain","id":4521567,"avatar_url":"https://avatars.githubusercontent.com/u/4521567?v=3","gravatar_id":"","url":"https://api.github.com/users/cjermain","html_url":"https://github.com/cjermain","followers_url":"https://api.github.com/users/cjermain/followers","following_url":"https://api.github.com/users/cjermain/following{/other_user}","gists_url":"https://api.github.com/users/cjermain/gists{/gist_id}","starred_url":"https://api.github.com/users/cjermain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjermain/subscriptions","organizations_url":"https://api.github.com/users/cjermain/orgs","repos_url":"https://api.github.com/users/cjermain/repos","events_url":"https://api.github.com/users/cjermain/events{/privacy}","received_events_url":"https://api.github.com/users/cjermain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.core","name":"component: numpy.core","color":"ff0000"},{"url":"https://api.github.com/repos/numpy/numpy/labels/Defect","name":"Defect","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-18T13:35:34Z","updated_at":"2015-10-04T19:56:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/numpy/numpy/pulls/6330","html_url":"https://github.com/numpy/numpy/pull/6330","diff_url":"https://github.com/numpy/numpy/pull/6330.diff","patch_url":"https://github.com/numpy/numpy/pull/6330.patch"},"body":"This fixes bug #6246 in Python 3, by using the `io` module to check if the file object is a child of the [`RawIOBase`](https://docs.python.org/3/library/io.html#io.RawIOBase), which are always unbuffered. Since it is not buffered, there is no reason to call tell or seek, which can fail on some legitimate file objects (e.g. wking/pycomedi#3)."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/145381469","html_url":"https://github.com/numpy/numpy/pull/6330#issuecomment-145381469","issue_url":"https://api.github.com/repos/numpy/numpy/issues/6330","id":145381469,"user":{"login":"charris","id":77272,"avatar_url":"https://avatars.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":"2015-10-04T19:56:11Z","updated_at":"2015-10-04T19:56:11Z","body":"@cjermain Great. The proper place for a test looks to be `numpy/core/tests/test_multiarray.py`. Note that there are also some data files in `numpy/core/tests/data` if you want to add one for the original failure."}}