{"action":"created","issue":{"url":"https://api.github.com/repos/project-rig/rig/issues/125","labels_url":"https://api.github.com/repos/project-rig/rig/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/project-rig/rig/issues/125/comments","events_url":"https://api.github.com/repos/project-rig/rig/issues/125/events","html_url":"https://github.com/project-rig/rig/pull/125","id":71929882,"number":125,"title":"Buffered writes","user":{"login":"mundya","id":3439837,"avatar_url":"https://avatars.githubusercontent.com/u/3439837?v=3","gravatar_id":"","url":"https://api.github.com/users/mundya","html_url":"https://github.com/mundya","followers_url":"https://api.github.com/users/mundya/followers","following_url":"https://api.github.com/users/mundya/following{/other_user}","gists_url":"https://api.github.com/users/mundya/gists{/gist_id}","starred_url":"https://api.github.com/users/mundya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mundya/subscriptions","organizations_url":"https://api.github.com/users/mundya/orgs","repos_url":"https://api.github.com/users/mundya/repos","events_url":"https://api.github.com/users/mundya/events{/privacy}","received_events_url":"https://api.github.com/users/mundya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/project-rig/rig/labels/work%20in%20progress","name":"work in progress","color":"ff9900"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/project-rig/rig/milestones/1","html_url":"https://github.com/project-rig/rig/milestones/1.0","labels_url":"https://api.github.com/repos/project-rig/rig/milestones/1/labels","id":945495,"number":1,"title":"1.0","description":"A working release for use with Nengo/SpiNNaker.","creator":{"login":"mundya","id":3439837,"avatar_url":"https://avatars.githubusercontent.com/u/3439837?v=3","gravatar_id":"","url":"https://api.github.com/users/mundya","html_url":"https://github.com/mundya","followers_url":"https://api.github.com/users/mundya/followers","following_url":"https://api.github.com/users/mundya/following{/other_user}","gists_url":"https://api.github.com/users/mundya/gists{/gist_id}","starred_url":"https://api.github.com/users/mundya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mundya/subscriptions","organizations_url":"https://api.github.com/users/mundya/orgs","repos_url":"https://api.github.com/users/mundya/repos","events_url":"https://api.github.com/users/mundya/events{/privacy}","received_events_url":"https://api.github.com/users/mundya/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":71,"state":"open","created_at":"2015-01-21T16:25:41Z","updated_at":"2015-04-30T08:17:18Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-04-29T16:53:35Z","updated_at":"2015-04-30T09:43:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/project-rig/rig/pulls/125","html_url":"https://github.com/project-rig/rig/pull/125","diff_url":"https://github.com/project-rig/rig/pull/125.diff","patch_url":"https://github.com/project-rig/rig/pull/125.patch"},"body":"As suggested in #124.\r\n\r\nAllows writes to be buffered.  A `flush` method and `with` manager are provided to ensure that writes are completed.\r\n\r\nThe following events flush write buffers:\r\n - `flush`\r\n - `seek`\r\n - `read`\r\n - A non-coalesced `write`\r\n\r\nThe following are equivalent:\r\n```python\r\nf.seek(0)\r\nf.write(b\"Hello, world\")\r\nf.flush()\r\n```\r\n```python\r\nwith f:\r\n    f.seek(0)\r\n    f.write(b\"Hello, world\")\r\n```\r\n - [ ] Stop seek from flushing\r\n - [ ] Set buffer sizes\r\n - [ ] Overwrite buffered values"},"comment":{"url":"https://api.github.com/repos/project-rig/rig/issues/comments/97722344","html_url":"https://github.com/project-rig/rig/pull/125#issuecomment-97722344","issue_url":"https://api.github.com/repos/project-rig/rig/issues/125","id":97722344,"user":{"login":"mossblaser","id":193514,"avatar_url":"https://avatars.githubusercontent.com/u/193514?v=3","gravatar_id":"","url":"https://api.github.com/users/mossblaser","html_url":"https://github.com/mossblaser","followers_url":"https://api.github.com/users/mossblaser/followers","following_url":"https://api.github.com/users/mossblaser/following{/other_user}","gists_url":"https://api.github.com/users/mossblaser/gists{/gist_id}","starred_url":"https://api.github.com/users/mossblaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mossblaser/subscriptions","organizations_url":"https://api.github.com/users/mossblaser/orgs","repos_url":"https://api.github.com/users/mossblaser/repos","events_url":"https://api.github.com/users/mossblaser/events{/privacy}","received_events_url":"https://api.github.com/users/mossblaser/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T09:43:38Z","updated_at":"2015-04-30T09:43:38Z","body":"We should probably implement some sort of \"close()\" method which would probably just call flush. That way, this thing looks a lot more like a regular file, especially in write-only situations."}}