{"action":"created","issue":{"url":"https://api.github.com/repos/whaleygeek/pyenergenie/issues/44","repository_url":"https://api.github.com/repos/whaleygeek/pyenergenie","labels_url":"https://api.github.com/repos/whaleygeek/pyenergenie/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/whaleygeek/pyenergenie/issues/44/comments","events_url":"https://api.github.com/repos/whaleygeek/pyenergenie/issues/44/events","html_url":"https://github.com/whaleygeek/pyenergenie/issues/44","id":149842274,"number":44,"title":"Python 3 support","user":{"login":"whaleygeek","id":4086785,"avatar_url":"https://avatars.githubusercontent.com/u/4086785?v=3","gravatar_id":"","url":"https://api.github.com/users/whaleygeek","html_url":"https://github.com/whaleygeek","followers_url":"https://api.github.com/users/whaleygeek/followers","following_url":"https://api.github.com/users/whaleygeek/following{/other_user}","gists_url":"https://api.github.com/users/whaleygeek/gists{/gist_id}","starred_url":"https://api.github.com/users/whaleygeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whaleygeek/subscriptions","organizations_url":"https://api.github.com/users/whaleygeek/orgs","repos_url":"https://api.github.com/users/whaleygeek/repos","events_url":"https://api.github.com/users/whaleygeek/events{/privacy}","received_events_url":"https://api.github.com/users/whaleygeek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-20T18:02:58Z","updated_at":"2016-04-20T20:09:19Z","closed_at":null,"body":"I haven't tested any of this with Python3 yet. Related to discussions recently with Nicholas Tollervy from PSF, bringing this up to date to support Python3 would be a good thing. I'd like to still support some Python 2 versions though, for those who have applications written in 2 that they are not able to easily port to 3 for other reasons.\r\n\r\nIt's possible it won't work in Python 3 due to package import rules changing, and use of raw_input, at least."},"comment":{"url":"https://api.github.com/repos/whaleygeek/pyenergenie/issues/comments/212583306","html_url":"https://github.com/whaleygeek/pyenergenie/issues/44#issuecomment-212583306","issue_url":"https://api.github.com/repos/whaleygeek/pyenergenie/issues/44","id":212583306,"user":{"login":"AndrewNRoss","id":18421329,"avatar_url":"https://avatars.githubusercontent.com/u/18421329?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewNRoss","html_url":"https://github.com/AndrewNRoss","followers_url":"https://api.github.com/users/AndrewNRoss/followers","following_url":"https://api.github.com/users/AndrewNRoss/following{/other_user}","gists_url":"https://api.github.com/users/AndrewNRoss/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewNRoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewNRoss/subscriptions","organizations_url":"https://api.github.com/users/AndrewNRoss/orgs","repos_url":"https://api.github.com/users/AndrewNRoss/repos","events_url":"https://api.github.com/users/AndrewNRoss/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewNRoss/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T20:09:19Z","updated_at":"2016-04-20T20:09:19Z","body":"I've tried the last stable version with my green button plugs and python 3. It works, but it needs some minor changes to the import rules and the use of raw_input, but nothing else. \r\n\r\nI think it should be possible to support both with only relatively minor changes. If you are happy with supporting 2.5+ only, then using the __future__ import will make python 2 behave like the python 3 with regards to relative imports within a package.\r\n\r\nPython 3 renamed raw_input to the more sensible input. Google shows a number of kludges to get code that works with python 2 and 3. This is only really in the test code anyway rather than the core library, so it might matter less."}}