{"action":"created","issue":{"url":"https://api.github.com/repos/pydanny/cached-property/issues/100","repository_url":"https://api.github.com/repos/pydanny/cached-property","labels_url":"https://api.github.com/repos/pydanny/cached-property/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/pydanny/cached-property/issues/100/comments","events_url":"https://api.github.com/repos/pydanny/cached-property/issues/100/events","html_url":"https://github.com/pydanny/cached-property/issues/100","id":328771381,"node_id":"MDU6SXNzdWUzMjg3NzEzODE=","number":100,"title":"Support caching generators","user":{"login":"rinslow","id":12800016,"node_id":"MDQ6VXNlcjEyODAwMDE2","avatar_url":"https://avatars3.githubusercontent.com/u/12800016?v=4","gravatar_id":"","url":"https://api.github.com/users/rinslow","html_url":"https://github.com/rinslow","followers_url":"https://api.github.com/users/rinslow/followers","following_url":"https://api.github.com/users/rinslow/following{/other_user}","gists_url":"https://api.github.com/users/rinslow/gists{/gist_id}","starred_url":"https://api.github.com/users/rinslow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rinslow/subscriptions","organizations_url":"https://api.github.com/users/rinslow/orgs","repos_url":"https://api.github.com/users/rinslow/repos","events_url":"https://api.github.com/users/rinslow/events{/privacy}","received_events_url":"https://api.github.com/users/rinslow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-02T19:38:07Z","updated_at":"2018-08-18T16:35:31Z","closed_at":null,"author_association":"NONE","body":"Many times I'll have a function such as \r\n\r\n```python\r\ndef x():\r\n    result = some_long_function_that_eventually_calculates_a_list()\r\n    yield from (result.name for result in result)\r\n    yield from (result.path for result in result)\r\n```\r\n\r\nI can't cache this function using regular cached_property because the generator will be exhausted.\r\nI want to calculate it once, then whenever it is being called again return the items I retrieved in the order I retrieved them.\r\n"},"comment":{"url":"https://api.github.com/repos/pydanny/cached-property/issues/comments/414070352","html_url":"https://github.com/pydanny/cached-property/issues/100#issuecomment-414070352","issue_url":"https://api.github.com/repos/pydanny/cached-property/issues/100","id":414070352,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDA3MDM1Mg==","user":{"login":"rinslow","id":12800016,"node_id":"MDQ6VXNlcjEyODAwMDE2","avatar_url":"https://avatars3.githubusercontent.com/u/12800016?v=4","gravatar_id":"","url":"https://api.github.com/users/rinslow","html_url":"https://github.com/rinslow","followers_url":"https://api.github.com/users/rinslow/followers","following_url":"https://api.github.com/users/rinslow/following{/other_user}","gists_url":"https://api.github.com/users/rinslow/gists{/gist_id}","starred_url":"https://api.github.com/users/rinslow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rinslow/subscriptions","organizations_url":"https://api.github.com/users/rinslow/orgs","repos_url":"https://api.github.com/users/rinslow/repos","events_url":"https://api.github.com/users/rinslow/events{/privacy}","received_events_url":"https://api.github.com/users/rinslow/received_events","type":"User","site_admin":false},"created_at":"2018-08-18T16:35:31Z","updated_at":"2018-08-18T16:35:31Z","author_association":"NONE","body":"Hey guys, I implemented a cachedgenerator, it's quite simple, you can read the source code at: \r\nhttps://github.com/rinslow/cachedgenerator \r\n\r\nwould you want to integrate it with the cached-property library? "}}
{"actor":{"display_login":"rinslow"}}