{"action":"created","issue":{"url":"https://api.github.com/repos/dgrunwald/rust-cpython/issues/76","repository_url":"https://api.github.com/repos/dgrunwald/rust-cpython","labels_url":"https://api.github.com/repos/dgrunwald/rust-cpython/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/dgrunwald/rust-cpython/issues/76/comments","events_url":"https://api.github.com/repos/dgrunwald/rust-cpython/issues/76/events","html_url":"https://github.com/dgrunwald/rust-cpython/issues/76","id":198231490,"number":76,"title":"Lifetimes in py_class!","user":{"login":"pashinin","id":1974139,"avatar_url":"https://avatars.githubusercontent.com/u/1974139?v=3","gravatar_id":"","url":"https://api.github.com/users/pashinin","html_url":"https://github.com/pashinin","followers_url":"https://api.github.com/users/pashinin/followers","following_url":"https://api.github.com/users/pashinin/following{/other_user}","gists_url":"https://api.github.com/users/pashinin/gists{/gist_id}","starred_url":"https://api.github.com/users/pashinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pashinin/subscriptions","organizations_url":"https://api.github.com/users/pashinin/orgs","repos_url":"https://api.github.com/users/pashinin/repos","events_url":"https://api.github.com/users/pashinin/events{/privacy}","received_events_url":"https://api.github.com/users/pashinin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-31T12:59:11Z","updated_at":"2017-01-01T00:22:49Z","closed_at":"2016-12-31T16:13:50Z","body":"Sorry if I don't know either Rust or rust-cpython but how can I use `py_class!`with lifetime params inside it?\r\nI want a variable `s` to live as long as class `MyType`.\r\n```\r\npy_class!(class MyType |py| {\r\n    data s: Into<Cow<'a, str>>;\r\n}\r\n```\r\n\r\nI wanted to write the whole class manually like\r\n```\r\npub struct MyType<'a> {...}\r\n```\r\n\r\nBut then I saw that even a macros was generated by Python script and I ran away crying..."},"comment":{"url":"https://api.github.com/repos/dgrunwald/rust-cpython/issues/comments/269887168","html_url":"https://github.com/dgrunwald/rust-cpython/issues/76#issuecomment-269887168","issue_url":"https://api.github.com/repos/dgrunwald/rust-cpython/issues/76","id":269887168,"user":{"login":"dgrunwald","id":243140,"avatar_url":"https://avatars.githubusercontent.com/u/243140?v=3","gravatar_id":"","url":"https://api.github.com/users/dgrunwald","html_url":"https://github.com/dgrunwald","followers_url":"https://api.github.com/users/dgrunwald/followers","following_url":"https://api.github.com/users/dgrunwald/following{/other_user}","gists_url":"https://api.github.com/users/dgrunwald/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrunwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrunwald/subscriptions","organizations_url":"https://api.github.com/users/dgrunwald/orgs","repos_url":"https://api.github.com/users/dgrunwald/repos","events_url":"https://api.github.com/users/dgrunwald/events{/privacy}","received_events_url":"https://api.github.com/users/dgrunwald/received_events","type":"User","site_admin":false},"created_at":"2017-01-01T00:22:49Z","updated_at":"2017-01-01T00:22:49Z","body":"Nothing stops Python code from storing Python objects in a global variable, so all data contained in Python objects must be `'static`."}}
{"actor":{"display_login":"dgrunwald"}}