{"action":"opened","issue":{"url":"https://api.github.com/repos/alanjds/grumpy/issues/18","repository_url":"https://api.github.com/repos/alanjds/grumpy","labels_url":"https://api.github.com/repos/alanjds/grumpy/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/alanjds/grumpy/issues/18/comments","events_url":"https://api.github.com/repos/alanjds/grumpy/issues/18/events","html_url":"https://github.com/alanjds/grumpy/issues/18","id":351178615,"node_id":"MDU6SXNzdWUzNTExNzg2MTU=","number":18,"title":"Support tuple args in lambda","user":{"login":"alanjds","id":155623,"node_id":"MDQ6VXNlcjE1NTYyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/155623?v=4","gravatar_id":"","url":"https://api.github.com/users/alanjds","html_url":"https://github.com/alanjds","followers_url":"https://api.github.com/users/alanjds/followers","following_url":"https://api.github.com/users/alanjds/following{/other_user}","gists_url":"https://api.github.com/users/alanjds/gists{/gist_id}","starred_url":"https://api.github.com/users/alanjds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanjds/subscriptions","organizations_url":"https://api.github.com/users/alanjds/orgs","repos_url":"https://api.github.com/users/alanjds/repos","events_url":"https://api.github.com/users/alanjds/events{/privacy}","received_events_url":"https://api.github.com/users/alanjds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-16T12:12:21Z","updated_at":"2018-08-16T12:12:21Z","closed_at":null,"author_association":"OWNER","body":"<a href=\"https://github.com/trotterdylan\"><img src=\"https://avatars2.githubusercontent.com/u/117627?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [trotterdylan](https://github.com/trotterdylan)**\n_Wednesday Jan 04, 2017 at 22:54 GMT_\n_Originally opened as https://github.com/google/grumpy/issues/17_\n\n----\n\nPer justinsaccount on HN:\r\n\r\n$ make run\r\nc = {}\r\ntop = sorted(c.items(), key=lambda (k,v): v)\r\n^D\r\n  Traceback (most recent call last):\r\n    File \"./tools/grumpc\", line 102, in <module>\r\n      sys.exit(main(parser.parse_args()))\r\n    File \"./tools/grumpc\", line 60, in main\r\n      visitor.visit(mod)\r\n    File \"/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 241, in visit\r\n      return visitor(node)\r\n    File \"/Users/foo/src/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/stmt.py\", line 302, in visit_Module\r\n      self._visit_each(node.body)\r\n    File \"/Users/foo/src/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/stmt.py\", line 632, in _visit_each\r\n      self.visit(node)\r\n    File \"/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 241, in visit\r\n      return visitor(node)\r\n    File \"/Users/foo/src/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/stin visit_Assign\r\n      with self.expr_visitor.visit(node.value) as value:\r\n    File \"/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 241, in visit\r\n      return visitor(node)\r\n    File \"/Users/foo/src/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/expr_visitor.py\", line 101, in visit_Call\r\n      values.append((util.go_str(k.arg), self.visit(k.value)))\r\n    File \"/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py\", line 241, in visit\r\n      return visitor(node)\r\n    File \"/Users/foo/src/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/expr_visitor.py\", line 246, in visit_Lambda\r\n      return self.visit_function_inline(func_node)\r\n    File \"/Users/foo/src/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/expr_visitor.py\", line 388, in visit_function_inline\r\n      func_visitor = block.FunctionBlockVisitor(node)\r\n    File \"/Users/foo/src/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/block.py\", line 432, in __init__\r\n      args = [a.id for a in node_args.args]\r\n  AttributeError: 'Tuple' object has no attribute 'id'\n"}}
{"actor":{"display_login":"alanjds"}}