{"action":"created","issue":{"url":"https://api.github.com/repos/ceasminog/Python_Is_The_Best/issues/6","repository_url":"https://api.github.com/repos/ceasminog/Python_Is_The_Best","labels_url":"https://api.github.com/repos/ceasminog/Python_Is_The_Best/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ceasminog/Python_Is_The_Best/issues/6/comments","events_url":"https://api.github.com/repos/ceasminog/Python_Is_The_Best/issues/6/events","html_url":"https://github.com/ceasminog/Python_Is_The_Best/issues/6","id":316618126,"number":6,"title":"def __str__","user":{"login":"paulin-mipt","id":5514401,"avatar_url":"https://avatars3.githubusercontent.com/u/5514401?v=4","gravatar_id":"","url":"https://api.github.com/users/paulin-mipt","html_url":"https://github.com/paulin-mipt","followers_url":"https://api.github.com/users/paulin-mipt/followers","following_url":"https://api.github.com/users/paulin-mipt/following{/other_user}","gists_url":"https://api.github.com/users/paulin-mipt/gists{/gist_id}","starred_url":"https://api.github.com/users/paulin-mipt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulin-mipt/subscriptions","organizations_url":"https://api.github.com/users/paulin-mipt/orgs","repos_url":"https://api.github.com/users/paulin-mipt/repos","events_url":"https://api.github.com/users/paulin-mipt/events{/privacy}","received_events_url":"https://api.github.com/users/paulin-mipt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-22T22:15:09Z","updated_at":"2018-04-26T18:08:32Z","closed_at":null,"author_association":"NONE","body":"https://github.com/ceasminog/Python_Is_The_Best/blob/46a79ef46de09d68cba0fae84bc3743087df64c4/Creatures.py#L46\r\n\r\nДавайте поменяем функцию PrintMe на дефолтную magic __str__, когда она реализована, то можно делать print(obj), str(obj), да и вообще это круто.\r\n\r\nP.S. Кодстайл в названиях методов! IsAlive -> is_alive и т.д."},"comment":{"url":"https://api.github.com/repos/ceasminog/Python_Is_The_Best/issues/comments/384736306","html_url":"https://github.com/ceasminog/Python_Is_The_Best/issues/6#issuecomment-384736306","issue_url":"https://api.github.com/repos/ceasminog/Python_Is_The_Best/issues/6","id":384736306,"user":{"login":"ceasminog","id":32290501,"avatar_url":"https://avatars0.githubusercontent.com/u/32290501?v=4","gravatar_id":"","url":"https://api.github.com/users/ceasminog","html_url":"https://github.com/ceasminog","followers_url":"https://api.github.com/users/ceasminog/followers","following_url":"https://api.github.com/users/ceasminog/following{/other_user}","gists_url":"https://api.github.com/users/ceasminog/gists{/gist_id}","starred_url":"https://api.github.com/users/ceasminog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceasminog/subscriptions","organizations_url":"https://api.github.com/users/ceasminog/orgs","repos_url":"https://api.github.com/users/ceasminog/repos","events_url":"https://api.github.com/users/ceasminog/events{/privacy}","received_events_url":"https://api.github.com/users/ceasminog/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T18:08:32Z","updated_at":"2018-04-26T18:08:32Z","author_association":"OWNER","body":"Так как я пользуюсь pyGame, то вывод на экран там замысловатый\r\n text = font.render(graphic_field[i], True, (255, 193, 7))\r\n        screen.blit(text, [20, 20 + 40 * i])\r\nРеализовала __str__, но пользуюсь им напрямую, не через print, т.к. в консоль ничего не вывожу."}}
{"actor":{"display_login":"ceasminog"}}