{"action":"opened","issue":{"url":"https://api.github.com/repos/kazimuth/processing-py-site/issues/114","repository_url":"https://api.github.com/repos/kazimuth/processing-py-site","labels_url":"https://api.github.com/repos/kazimuth/processing-py-site/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/kazimuth/processing-py-site/issues/114/comments","events_url":"https://api.github.com/repos/kazimuth/processing-py-site/issues/114/events","html_url":"https://github.com/kazimuth/processing-py-site/issues/114","id":329074771,"node_id":"MDU6SXNzdWUzMjkwNzQ3NzE=","number":114,"title":"TypeError in Interactivity tutorial \"Mouse Data\"","user":{"login":"jeremydouglass","id":798570,"node_id":"MDQ6VXNlcjc5ODU3MA==","avatar_url":"https://avatars3.githubusercontent.com/u/798570?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremydouglass","html_url":"https://github.com/jeremydouglass","followers_url":"https://api.github.com/users/jeremydouglass/followers","following_url":"https://api.github.com/users/jeremydouglass/following{/other_user}","gists_url":"https://api.github.com/users/jeremydouglass/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremydouglass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremydouglass/subscriptions","organizations_url":"https://api.github.com/users/jeremydouglass/orgs","repos_url":"https://api.github.com/users/jeremydouglass/repos","events_url":"https://api.github.com/users/jeremydouglass/events{/privacy}","received_events_url":"https://api.github.com/users/jeremydouglass/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-04T14:16:10Z","updated_at":"2018-06-04T14:16:10Z","closed_at":null,"author_association":"NONE","body":"Mis-reported to https://github.com/processing/processing-docs/issues/649, then mis-reported to https://github.com/jdf/processing.py/issues/294.\r\n\r\n### Issue description\r\n\r\n```\r\ndef draw():\r\n    frameRate(12)\r\n    println(mouseX + \" : \" + mouseY)\r\nunsupported operand type(s) for +: 'int' and 'str'\r\n```\r\n\r\n### URL(s) of affected page(s)\r\n\r\n-  http://py.processing.org/tutorials/interactivity/\r\n\r\n### Proposed fix\r\n\r\n```\r\ndef draw():\r\n    frameRate(12)\r\n    println(str(mouseX) + \" : \" + str(mouseY))\r\n```\r\n\r\n------\r\n\r\nComment: there are several solutions, some of which are more \"Pythonic\" \r\n\r\n    print \"{} : {}\".format(mouseX, mouseY)\r\n\r\nand some of which look more like generic Processing:\r\n\r\n    println(str(mouseX) + \" : \" + str(mouseY))\r\n\r\nThe second style may be easier to understand for those coming from Processing Java mode."}}
{"actor":{"display_login":"jeremydouglass"}}