{"action":"created","issue":{"url":"https://api.github.com/repos/krinkinmu/yat/issues/1","repository_url":"https://api.github.com/repos/krinkinmu/yat","labels_url":"https://api.github.com/repos/krinkinmu/yat/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/krinkinmu/yat/issues/1/comments","events_url":"https://api.github.com/repos/krinkinmu/yat/issues/1/events","html_url":"https://github.com/krinkinmu/yat/pull/1","id":181837569,"number":1,"title":"Rename parser.py to yparser.py to avoid conflict with builtin module","user":{"login":"yeputons","id":1297325,"avatar_url":"https://avatars.githubusercontent.com/u/1297325?v=3","gravatar_id":"","url":"https://api.github.com/users/yeputons","html_url":"https://github.com/yeputons","followers_url":"https://api.github.com/users/yeputons/followers","following_url":"https://api.github.com/users/yeputons/following{/other_user}","gists_url":"https://api.github.com/users/yeputons/gists{/gist_id}","starred_url":"https://api.github.com/users/yeputons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeputons/subscriptions","organizations_url":"https://api.github.com/users/yeputons/orgs","repos_url":"https://api.github.com/users/yeputons/repos","events_url":"https://api.github.com/users/yeputons/events{/privacy}","received_events_url":"https://api.github.com/users/yeputons/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-08T17:16:17Z","updated_at":"2016-10-08T18:03:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/krinkinmu/yat/pulls/1","html_url":"https://github.com/krinkinmu/yat/pull/1","diff_url":"https://github.com/krinkinmu/yat/pull/1.diff","patch_url":"https://github.com/krinkinmu/yat/pull/1.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/krinkinmu/yat/issues/comments/252439209","html_url":"https://github.com/krinkinmu/yat/pull/1#issuecomment-252439209","issue_url":"https://api.github.com/repos/krinkinmu/yat/issues/1","id":252439209,"user":{"login":"yeputons","id":1297325,"avatar_url":"https://avatars.githubusercontent.com/u/1297325?v=3","gravatar_id":"","url":"https://api.github.com/users/yeputons","html_url":"https://github.com/yeputons","followers_url":"https://api.github.com/users/yeputons/followers","following_url":"https://api.github.com/users/yeputons/following{/other_user}","gists_url":"https://api.github.com/users/yeputons/gists{/gist_id}","starred_url":"https://api.github.com/users/yeputons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeputons/subscriptions","organizations_url":"https://api.github.com/users/yeputons/orgs","repos_url":"https://api.github.com/users/yeputons/repos","events_url":"https://api.github.com/users/yeputons/events{/privacy}","received_events_url":"https://api.github.com/users/yeputons/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T18:03:38Z","updated_at":"2016-10-08T18:03:38Z","body":"@krinkinmu Unfortunately, it does not work well when running scripts with `./run.py` (<a href=\"http://stackoverflow.com/q/16981921/767632\">stackoverflow</a>):\r\n```\r\nTraceback (most recent call last):\r\n  File \"run.py\", line 3, in <module>\r\n    from .parser import Parser, Scanner\r\nSystemError: Parent module '' not loaded, cannot perform relative import\r\n```\r\n\r\nQuoting <a href=\"https://docs.python.org/3/tutorial/modules.html#intra-package-references\">documentation</a>:\r\n<blockquote>\r\nNote that relative imports are based on the name of the current module. Since the name of the main module is always \"__main__\", modules intended for use as the main module of a Python application must always use absolute imports.</blockquote>\r\n\r\nOf course, one can say that the only correct way of running this thing is `python -m run` from `yat` folder (and not any other folder) and describing that in a comment, but, imho, name clashing with built-in modules is already bad enough."}}
{"actor":{"display_login":"yeputons"}}