{"action":"opened","issue":{"url":"https://api.github.com/repos/DrkSephy/python-imp-interpreter/issues/2","repository_url":"https://api.github.com/repos/DrkSephy/python-imp-interpreter","labels_url":"https://api.github.com/repos/DrkSephy/python-imp-interpreter/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/DrkSephy/python-imp-interpreter/issues/2/comments","events_url":"https://api.github.com/repos/DrkSephy/python-imp-interpreter/issues/2/events","html_url":"https://github.com/DrkSephy/python-imp-interpreter/issues/2","id":343539424,"node_id":"MDU6SXNzdWUzNDM1Mzk0MjQ=","number":2,"title":"NameError: name 'reduce' is not defined","user":{"login":"imran-iitp","id":16772419,"node_id":"MDQ6VXNlcjE2NzcyNDE5","avatar_url":"https://avatars2.githubusercontent.com/u/16772419?v=4","gravatar_id":"","url":"https://api.github.com/users/imran-iitp","html_url":"https://github.com/imran-iitp","followers_url":"https://api.github.com/users/imran-iitp/followers","following_url":"https://api.github.com/users/imran-iitp/following{/other_user}","gists_url":"https://api.github.com/users/imran-iitp/gists{/gist_id}","starred_url":"https://api.github.com/users/imran-iitp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imran-iitp/subscriptions","organizations_url":"https://api.github.com/users/imran-iitp/orgs","repos_url":"https://api.github.com/users/imran-iitp/repos","events_url":"https://api.github.com/users/imran-iitp/events{/privacy}","received_events_url":"https://api.github.com/users/imran-iitp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-23T08:40:46Z","updated_at":"2018-07-23T08:40:46Z","closed_at":null,"author_association":"NONE","body":"C:\\Users\\IITP\\Downloads\\imp-interpreter>python imp.py hello.imp\r\nTraceback (most recent call last):\r\n  File \"imp.py\", line 43, in <module>\r\n    parse_result = imp_parse(tokens)\r\n  File \"C:\\Users\\IITP\\Downloads\\imp-interpreter\\imp_parser.py\", line 41, in imp_parse\r\n    ast = parser()(tokens, 0)\r\n  File \"C:\\Users\\IITP\\Downloads\\imp-interpreter\\imp_parser.py\", line 45, in parser\r\n    return Phrase(stmt_list())\r\n  File \"C:\\Users\\IITP\\Downloads\\imp-interpreter\\imp_parser.py\", line 50, in stmt_list\r\n    return Exp(stmt(), separator)\r\n  File \"C:\\Users\\IITP\\Downloads\\imp-interpreter\\imp_parser.py\", line 54, in stmt\r\n    if_stmt()     | \\\r\n  File \"C:\\Users\\IITP\\Downloads\\imp-interpreter\\imp_parser.py\", line 61, in assign_stmt\r\n    return id + keyword(':=') + aexp() ^ process\r\n  File \"C:\\Users\\IITP\\Downloads\\imp-interpreter\\imp_parser.py\", line 109, in aexp\r\n    process_binop)\r\n  File \"C:\\Users\\IITP\\Downloads\\imp-interpreter\\imp_parser.py\", line 125, in precedence\r\n    parser = value_parser * op_parser(precedence_levels[0])\r\n  File \"C:\\Users\\IITP\\Downloads\\imp-interpreter\\imp_parser.py\", line 124, in op_parser\r\n    return any_operator_in_list(precedence_level) ^ combine\r\n  File \"C:\\Users\\IITP\\Downloads\\imp-interpreter\\imp_parser.py\", line 152, in any_operator_in_list\r\n    parser = reduce((lambda l, r: l | r), op_parsers)\r\nNameError: name 'reduce' is not defined\r\n\r\n\r\nHow to resolve the above error? \r\nI am using python 3.6.2.\r\nI added \" import functools\" in imp_parser.py, then also it is showing same error.\r\n\r\n"}}
{"actor":{"display_login":"imran-iitp"}}