{"action":"created","issue":{"url":"https://api.github.com/repos/tornadoweb/tornado/issues/1584","labels_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1584/labels{/name}","comments_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1584/comments","events_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1584/events","html_url":"https://github.com/tornadoweb/tornado/pull/1584","id":116852828,"number":1584,"title":"Allow write to accept bytearrays","user":{"login":"chrisseto","id":5532905,"avatar_url":"https://avatars.githubusercontent.com/u/5532905?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisseto","html_url":"https://github.com/chrisseto","followers_url":"https://api.github.com/users/chrisseto/followers","following_url":"https://api.github.com/users/chrisseto/following{/other_user}","gists_url":"https://api.github.com/users/chrisseto/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisseto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisseto/subscriptions","organizations_url":"https://api.github.com/users/chrisseto/orgs","repos_url":"https://api.github.com/users/chrisseto/repos","events_url":"https://api.github.com/users/chrisseto/events{/privacy}","received_events_url":"https://api.github.com/users/chrisseto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-13T21:11:18Z","updated_at":"2015-11-16T15:12:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tornadoweb/tornado/pulls/1584","html_url":"https://github.com/tornadoweb/tornado/pull/1584","diff_url":"https://github.com/tornadoweb/tornado/pull/1584.diff","patch_url":"https://github.com/tornadoweb/tornado/pull/1584.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/tornadoweb/tornado/issues/comments/157062595","html_url":"https://github.com/tornadoweb/tornado/pull/1584#issuecomment-157062595","issue_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1584","id":157062595,"user":{"login":"chrisseto","id":5532905,"avatar_url":"https://avatars.githubusercontent.com/u/5532905?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisseto","html_url":"https://github.com/chrisseto","followers_url":"https://api.github.com/users/chrisseto/followers","following_url":"https://api.github.com/users/chrisseto/following{/other_user}","gists_url":"https://api.github.com/users/chrisseto/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisseto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisseto/subscriptions","organizations_url":"https://api.github.com/users/chrisseto/orgs","repos_url":"https://api.github.com/users/chrisseto/repos","events_url":"https://api.github.com/users/chrisseto/events{/privacy}","received_events_url":"https://api.github.com/users/chrisseto/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T15:12:13Z","updated_at":"2015-11-16T15:12:13Z","body":"I'll write some tests for this soon, I was looking for existing write tests but didn't find anything regarding the encoding of objects passed to `write`, if you have a free second would you mind pointing me to those?\r\n\r\n@bdarnell, Just to clarify, it would be better for `write` to handle `bytearrays` rather than converting them to `bytes` via `utf8`?"}}