{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/2552","repository_url":"https://api.github.com/repos/micropython/micropython","labels_url":"https://api.github.com/repos/micropython/micropython/issues/2552/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/2552/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/2552/events","html_url":"https://github.com/micropython/micropython/issues/2552","id":184698644,"number":2552,"title":"Add .offset() method for memoryview for inplace \"slicing\"","user":{"login":"pfalcon","id":500451,"avatar_url":"https://avatars.githubusercontent.com/u/500451?v=3","gravatar_id":"","url":"https://api.github.com/users/pfalcon","html_url":"https://github.com/pfalcon","followers_url":"https://api.github.com/users/pfalcon/followers","following_url":"https://api.github.com/users/pfalcon/following{/other_user}","gists_url":"https://api.github.com/users/pfalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/pfalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfalcon/subscriptions","organizations_url":"https://api.github.com/users/pfalcon/orgs","repos_url":"https://api.github.com/users/pfalcon/repos","events_url":"https://api.github.com/users/pfalcon/events{/privacy}","received_events_url":"https://api.github.com/users/pfalcon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-23T16:09:53Z","updated_at":"2016-10-24T10:56:17Z","closed_at":null,"body":"Here's an idiom to send a large data buffer thru a short-write stream (e.g., non-blocking socket):\r\n\r\n~~~\r\n        buffer = memoryview(data).cast('b')\r\n        while buffer:\r\n            try:\r\n                nsent = self._socket_send(buffer, flags)\r\n                buffer = buffer[nsent:]\r\n~~~\r\n\r\nThe last statement still produces bunch of object garbage. If we could do\r\n\r\n~~~\r\nbuffer.offset(nsent)\r\n~~~\r\n\r\nit would be cool. Suggestions for better name are welcome.\r\n"},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/255709588","html_url":"https://github.com/micropython/micropython/issues/2552#issuecomment-255709588","issue_url":"https://api.github.com/repos/micropython/micropython/issues/2552","id":255709588,"user":{"login":"pfalcon","id":500451,"avatar_url":"https://avatars.githubusercontent.com/u/500451?v=3","gravatar_id":"","url":"https://api.github.com/users/pfalcon","html_url":"https://github.com/pfalcon","followers_url":"https://api.github.com/users/pfalcon/followers","following_url":"https://api.github.com/users/pfalcon/following{/other_user}","gists_url":"https://api.github.com/users/pfalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/pfalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfalcon/subscriptions","organizations_url":"https://api.github.com/users/pfalcon/orgs","repos_url":"https://api.github.com/users/pfalcon/repos","events_url":"https://api.github.com/users/pfalcon/events{/privacy}","received_events_url":"https://api.github.com/users/pfalcon/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T10:56:17Z","updated_at":"2016-10-24T10:56:17Z","body":"> This is a non-sequitur. They also use a garbage collector. Does that mean that we shouldn't?\r\n\r\nNo, that means that we also should have a million budget, like they."}}
{"actor":{"display_login":"pfalcon"}}