{"action":"created","issue":{"url":"https://api.github.com/repos/robertwb/issues-import-test/issues/147","repository_url":"https://api.github.com/repos/robertwb/issues-import-test","labels_url":"https://api.github.com/repos/robertwb/issues-import-test/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/robertwb/issues-import-test/issues/147/comments","events_url":"https://api.github.com/repos/robertwb/issues-import-test/issues/147/events","html_url":"https://github.com/robertwb/issues-import-test/issues/147","id":168264410,"number":147,"title":"Propagate length hint through generator expressions","user":{"login":"robertwb","id":486017,"avatar_url":"https://avatars.githubusercontent.com/u/486017?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwb","html_url":"https://github.com/robertwb","followers_url":"https://api.github.com/users/robertwb/followers","following_url":"https://api.github.com/users/robertwb/following{/other_user}","gists_url":"https://api.github.com/users/robertwb/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwb/subscriptions","organizations_url":"https://api.github.com/users/robertwb/orgs","repos_url":"https://api.github.com/users/robertwb/repos","events_url":"https://api.github.com/users/robertwb/events{/privacy}","received_events_url":"https://api.github.com/users/robertwb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robertwb/issues-import-test/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/robertwb/issues-import-test/labels/Optimization","name":"Optimization","color":"0000aa"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/robertwb/issues-import-test/milestones/4","html_url":"https://github.com/robertwb/issues-import-test/milestones/wishlist","labels_url":"https://api.github.com/repos/robertwb/issues-import-test/milestones/4/labels","id":1910330,"number":4,"title":"wishlist","description":"None","creator":{"login":"robertwb","id":486017,"avatar_url":"https://avatars.githubusercontent.com/u/486017?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwb","html_url":"https://github.com/robertwb","followers_url":"https://api.github.com/users/robertwb/followers","following_url":"https://api.github.com/users/robertwb/following{/other_user}","gists_url":"https://api.github.com/users/robertwb/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwb/subscriptions","organizations_url":"https://api.github.com/users/robertwb/orgs","repos_url":"https://api.github.com/users/robertwb/repos","events_url":"https://api.github.com/users/robertwb/events{/privacy}","received_events_url":"https://api.github.com/users/robertwb/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":5,"state":"open","created_at":"2016-07-28T19:35:04Z","updated_at":"2016-07-29T07:12:13Z","due_on":"1970-01-01T00:00:00Z","closed_at":null},"comments":0,"created_at":"2016-07-29T07:12:13Z","updated_at":"2016-07-29T07:12:14Z","closed_at":null,"body":"**Reported by scoder on 19 Nov 2011 15:11 UTC**\nPython generators have a feature that presents a length hint to interested parties that can take advantage of it, such as \"list()\". Cython generator expressions should propagate the length hint of the underlying iterator if there is only one \"for\" loop and no \"if\" selector predicate. The C-API function to ask for a length hint is ```_PyObject_LengthHint()```, which is available from Py2.5 on. Generator expressions would then need to provide a ```.__length_hint__()``` special method that returns either a constant result (when known at compile time, e.g. for sliced C arrays), or calls ```_PyObject_LengthHint()``` on the underlying iterator.\n\nMigrated-From: http://trac.cython.org/ticket/756"},"comment":{"url":"https://api.github.com/repos/robertwb/issues-import-test/issues/comments/236110936","html_url":"https://github.com/robertwb/issues-import-test/issues/147#issuecomment-236110936","issue_url":"https://api.github.com/repos/robertwb/issues-import-test/issues/147","id":236110936,"user":{"login":"robertwb","id":486017,"avatar_url":"https://avatars.githubusercontent.com/u/486017?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwb","html_url":"https://github.com/robertwb","followers_url":"https://api.github.com/users/robertwb/followers","following_url":"https://api.github.com/users/robertwb/following{/other_user}","gists_url":"https://api.github.com/users/robertwb/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwb/subscriptions","organizations_url":"https://api.github.com/users/robertwb/orgs","repos_url":"https://api.github.com/users/robertwb/repos","events_url":"https://api.github.com/users/robertwb/events{/privacy}","received_events_url":"https://api.github.com/users/robertwb/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T07:12:14Z","updated_at":"2016-07-29T07:12:14Z","body":"**Modified by scoder on 23 Aug 2013 17:54 UTC**"}}
{"actor":{"display_login":"robertwb"}}