{"action":"closed","issue":{"url":"https://api.github.com/repos/hylang/hy/issues/940","labels_url":"https://api.github.com/repos/hylang/hy/issues/940/labels{/name}","comments_url":"https://api.github.com/repos/hylang/hy/issues/940/comments","events_url":"https://api.github.com/repos/hylang/hy/issues/940/events","html_url":"https://github.com/hylang/hy/issues/940","id":106658564,"number":940,"title":"Class example in documentaion fails?","user":{"login":"tikiking1","id":4196789,"avatar_url":"https://avatars.githubusercontent.com/u/4196789?v=3","gravatar_id":"","url":"https://api.github.com/users/tikiking1","html_url":"https://github.com/tikiking1","followers_url":"https://api.github.com/users/tikiking1/followers","following_url":"https://api.github.com/users/tikiking1/following{/other_user}","gists_url":"https://api.github.com/users/tikiking1/gists{/gist_id}","starred_url":"https://api.github.com/users/tikiking1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tikiking1/subscriptions","organizations_url":"https://api.github.com/users/tikiking1/orgs","repos_url":"https://api.github.com/users/tikiking1/repos","events_url":"https://api.github.com/users/tikiking1/events{/privacy}","received_events_url":"https://api.github.com/users/tikiking1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-15T22:14:23Z","updated_at":"2015-09-15T22:29:07Z","closed_at":"2015-09-15T22:29:06Z","body":"```hy\r\n(defclass FooBar [object]\r\n  \"Yet Another Example Class\"\r\n\r\n  (defn --init-- [self x]\r\n    (setv self.x x)\r\n    None)\r\n\r\n  (defn get-x [self]\r\n    \"Return our copy of x\"\r\n    self.x))\r\n```\r\n\r\n```sh\r\n$ hy2py test.hy\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/hy2py\", line 9, in <module>\r\n    load_entry_point('hy==0.11.0', 'console_scripts', 'hy2py')()\r\n  File \"/usr/lib/python2.7/site-packages/hy/cmdline.py\", line 408, in hy2py_main\r\n    _ast = import_file_to_ast(options.args[0], module_name)\r\n  File \"/usr/lib/python2.7/site-packages/hy/importer.py\", line 67, in import_file_to_ast\r\n    return hy_compile(import_file_to_hst(fpath), module_name)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 2279, in hy_compile\r\n    result = compiler.compile(tree)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 428, in compile\r\n    ret = self.compile_atom(_type, tree)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 420, in compile_atom\r\n    ret = _compile_table[atom_type](self, atom)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 596, in compile_raw_list\r\n    ret = self._compile_branch(entries)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 483, in _compile_branch\r\n    return _branch(self.compile(expr) for expr in exprs)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 313, in _branch\r\n    results = list(results)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 483, in <genexpr>\r\n    return _branch(self.compile(expr) for expr in exprs)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 428, in compile\r\n    ret = self.compile_atom(_type, tree)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 420, in compile_atom\r\n    ret = _compile_table[atom_type](self, atom)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 1781, in compile_expression\r\n    ret = self.compile_atom(fn, expression)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 420, in compile_atom\r\n    ret = _compile_table[atom_type](self, atom)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 363, in checker\r\n    return fn(self, expression)\r\n  File \"/usr/lib/python2.7/site-packages/hy/compiler.py\", line 2082, in compile_class_expression\r\n    \"Wrong number of argument in defclass attribute.\")\r\nhy.errors.HyTypeError:   File \"None\", line 1, column 1\r\n\r\nHyTypeError: Wrong number of argument in defclass attribute.\r\n```"}}