{"action":"created","issue":{"url":"https://api.github.com/repos/psychopy/psychopy/issues/1061","labels_url":"https://api.github.com/repos/psychopy/psychopy/issues/1061/labels{/name}","comments_url":"https://api.github.com/repos/psychopy/psychopy/issues/1061/comments","events_url":"https://api.github.com/repos/psychopy/psychopy/issues/1061/events","html_url":"https://github.com/psychopy/psychopy/issues/1061","id":120403856,"number":1061,"title":"refactor to support python 3","user":{"login":"jeremygray","id":382342,"avatar_url":"https://avatars.githubusercontent.com/u/382342?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremygray","html_url":"https://github.com/jeremygray","followers_url":"https://api.github.com/users/jeremygray/followers","following_url":"https://api.github.com/users/jeremygray/following{/other_user}","gists_url":"https://api.github.com/users/jeremygray/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremygray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremygray/subscriptions","organizations_url":"https://api.github.com/users/jeremygray/orgs","repos_url":"https://api.github.com/users/jeremygray/repos","events_url":"https://api.github.com/users/jeremygray/events{/privacy}","received_events_url":"https://api.github.com/users/jeremygray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-04T13:41:20Z","updated_at":"2015-12-04T16:59:57Z","closed_at":null,"body":"This issue to coordinate concerns and progress in moving towards python 3 support. The more complete the test coverage, the easier it will be to know what is working.\r\n\r\nEasier:\r\n- [ ] `2to3` can handle some things, like `xrange` -> `range`, but not others\r\n- [ ] add `from __future__ import absolute_import, print_function`, and migrate all print statements to print(). eg #942 \r\n\r\nMore difficult:\r\n- [ ] deal with strings / bytes.\r\n- [ ] add `from __future__ import division` to all files. First add only to those files that have good test coverage. Second, add to those without good coverage, and review carefully.\r\n\r\nDependencies, packaging, etc:\r\n- [ ] review all needed packages for p3 compatibility\r\n- [ ] change shebang to `#!/usr/bin/env python` (not `python2`) **IF / WHEN** both python2 and python3 are supported. Note that this can impact downstream, see #974 discussion."},"comment":{"url":"https://api.github.com/repos/psychopy/psychopy/issues/comments/162021697","html_url":"https://github.com/psychopy/psychopy/issues/1061#issuecomment-162021697","issue_url":"https://api.github.com/repos/psychopy/psychopy/issues/1061","id":162021697,"user":{"login":"jeremygray","id":382342,"avatar_url":"https://avatars.githubusercontent.com/u/382342?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremygray","html_url":"https://github.com/jeremygray","followers_url":"https://api.github.com/users/jeremygray/followers","following_url":"https://api.github.com/users/jeremygray/following{/other_user}","gists_url":"https://api.github.com/users/jeremygray/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremygray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremygray/subscriptions","organizations_url":"https://api.github.com/users/jeremygray/orgs","repos_url":"https://api.github.com/users/jeremygray/repos","events_url":"https://api.github.com/users/jeremygray/events{/privacy}","received_events_url":"https://api.github.com/users/jeremygray/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T16:59:57Z","updated_at":"2015-12-04T16:59:57Z","body":"One consequence of importing division can mean that the resulting type\nbecomes float rather than int, causing some things to fail (like array\nslices), even if the numerical value is the same.\n"}}