{"action":"created","issue":{"url":"https://api.github.com/repos/davidhalter/jedi/issues/745","repository_url":"https://api.github.com/repos/davidhalter/jedi","labels_url":"https://api.github.com/repos/davidhalter/jedi/issues/745/labels{/name}","comments_url":"https://api.github.com/repos/davidhalter/jedi/issues/745/comments","events_url":"https://api.github.com/repos/davidhalter/jedi/issues/745/events","html_url":"https://github.com/davidhalter/jedi/pull/745","id":166131056,"number":745,"title":"Try to correctly import ZIP and EGG files","user":{"login":"sadovnychyi","id":193864,"avatar_url":"https://avatars.githubusercontent.com/u/193864?v=3","gravatar_id":"","url":"https://api.github.com/users/sadovnychyi","html_url":"https://github.com/sadovnychyi","followers_url":"https://api.github.com/users/sadovnychyi/followers","following_url":"https://api.github.com/users/sadovnychyi/following{/other_user}","gists_url":"https://api.github.com/users/sadovnychyi/gists{/gist_id}","starred_url":"https://api.github.com/users/sadovnychyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sadovnychyi/subscriptions","organizations_url":"https://api.github.com/users/sadovnychyi/orgs","repos_url":"https://api.github.com/users/sadovnychyi/repos","events_url":"https://api.github.com/users/sadovnychyi/events{/privacy}","received_events_url":"https://api.github.com/users/sadovnychyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-18T16:07:26Z","updated_at":"2016-07-23T12:51:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/davidhalter/jedi/pulls/745","html_url":"https://github.com/davidhalter/jedi/pull/745","diff_url":"https://github.com/davidhalter/jedi/pull/745.diff","patch_url":"https://github.com/davidhalter/jedi/pull/745.patch"},"body":"As discussed in https://github.com/davidhalter/jedi/issues/730.\r\n\r\nAs a workaround of reading source files inside of ZIP files we can try to use `get_source` method of the \"loader\". There's already \"loader\" implementation for py3, so only small changes there, but it would require more re-writing for py2. I've started it, but then moved to py3 and didn't come back to py2 yet.\r\n\r\nI'm still not 100% sure that we can correctly understand everything inside of ZIP files which are packages (with `__init__` files) but single-file packages like `six.py` seems to work perfectly. \r\n\r\nRelated [PEP 302](https://www.python.org/dev/peps/pep-0302/)."},"comment":{"url":"https://api.github.com/repos/davidhalter/jedi/issues/comments/234716615","html_url":"https://github.com/davidhalter/jedi/pull/745#issuecomment-234716615","issue_url":"https://api.github.com/repos/davidhalter/jedi/issues/745","id":234716615,"user":{"login":"davidhalter","id":748594,"avatar_url":"https://avatars.githubusercontent.com/u/748594?v=3","gravatar_id":"","url":"https://api.github.com/users/davidhalter","html_url":"https://github.com/davidhalter","followers_url":"https://api.github.com/users/davidhalter/followers","following_url":"https://api.github.com/users/davidhalter/following{/other_user}","gists_url":"https://api.github.com/users/davidhalter/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhalter/subscriptions","organizations_url":"https://api.github.com/users/davidhalter/orgs","repos_url":"https://api.github.com/users/davidhalter/repos","events_url":"https://api.github.com/users/davidhalter/events{/privacy}","received_events_url":"https://api.github.com/users/davidhalter/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T12:51:15Z","updated_at":"2016-07-23T12:51:15Z","body":"Just checked `2.6.1`. It doesn't have `zipimport.zipimporter._get_filename`. Can we just ignore it if it's not there and infer imports if they are there?"}}
{"actor":{"display_login":"davidhalter"}}