{"action":"created","issue":{"url":"https://api.github.com/repos/apparentlymart/python-stl/issues/8","labels_url":"https://api.github.com/repos/apparentlymart/python-stl/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/apparentlymart/python-stl/issues/8/comments","events_url":"https://api.github.com/repos/apparentlymart/python-stl/issues/8/events","html_url":"https://github.com/apparentlymart/python-stl/pull/8","id":109069742,"number":8,"title":"mod to binary write for Python 3.x","user":{"login":"ng110","id":7734780,"avatar_url":"https://avatars.githubusercontent.com/u/7734780?v=3","gravatar_id":"","url":"https://api.github.com/users/ng110","html_url":"https://github.com/ng110","followers_url":"https://api.github.com/users/ng110/followers","following_url":"https://api.github.com/users/ng110/following{/other_user}","gists_url":"https://api.github.com/users/ng110/gists{/gist_id}","starred_url":"https://api.github.com/users/ng110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ng110/subscriptions","organizations_url":"https://api.github.com/users/ng110/orgs","repos_url":"https://api.github.com/users/ng110/repos","events_url":"https://api.github.com/users/ng110/events{/privacy}","received_events_url":"https://api.github.com/users/ng110/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-30T11:40:29Z","updated_at":"2015-09-30T19:17:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apparentlymart/python-stl/pulls/8","html_url":"https://github.com/apparentlymart/python-stl/pull/8","diff_url":"https://github.com/apparentlymart/python-stl/pull/8.diff","patch_url":"https://github.com/apparentlymart/python-stl/pull/8.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/apparentlymart/python-stl/issues/comments/144511730","html_url":"https://github.com/apparentlymart/python-stl/pull/8#issuecomment-144511730","issue_url":"https://api.github.com/repos/apparentlymart/python-stl/issues/8","id":144511730,"user":{"login":"apparentlymart","id":20180,"avatar_url":"https://avatars.githubusercontent.com/u/20180?v=3","gravatar_id":"","url":"https://api.github.com/users/apparentlymart","html_url":"https://github.com/apparentlymart","followers_url":"https://api.github.com/users/apparentlymart/followers","following_url":"https://api.github.com/users/apparentlymart/following{/other_user}","gists_url":"https://api.github.com/users/apparentlymart/gists{/gist_id}","starred_url":"https://api.github.com/users/apparentlymart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apparentlymart/subscriptions","organizations_url":"https://api.github.com/users/apparentlymart/orgs","repos_url":"https://api.github.com/users/apparentlymart/repos","events_url":"https://api.github.com/users/apparentlymart/events{/privacy}","received_events_url":"https://api.github.com/users/apparentlymart/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T19:17:55Z","updated_at":"2015-09-30T19:17:55Z","body":"I've not really gone anywhere near Python 3 yet so forgive the naive question: it seems like the issue you're looking at here is that a plain string is a byte string in Python 2 but a unicode string in Python 3, so by adding that ``b`` prefix you force Python 3 to make a byte string and presumably some recent versions of Python 2 also accept that prefix as being identical to an unprefixed string?\r\n\r\nDo you know which versions of Python 2 this will work in?\r\n"}}