{"action":"created","issue":{"url":"https://api.github.com/repos/numba/numba/issues/984","labels_url":"https://api.github.com/repos/numba/numba/issues/984/labels{/name}","comments_url":"https://api.github.com/repos/numba/numba/issues/984/comments","events_url":"https://api.github.com/repos/numba/numba/issues/984/events","html_url":"https://github.com/numba/numba/issues/984","id":56915076,"number":984,"title":"@autojit & @asyncio.coroutine","user":{"login":"root-11","id":4048422,"avatar_url":"https://avatars.githubusercontent.com/u/4048422?v=3","gravatar_id":"","url":"https://api.github.com/users/root-11","html_url":"https://github.com/root-11","followers_url":"https://api.github.com/users/root-11/followers","following_url":"https://api.github.com/users/root-11/following{/other_user}","gists_url":"https://api.github.com/users/root-11/gists{/gist_id}","starred_url":"https://api.github.com/users/root-11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/root-11/subscriptions","organizations_url":"https://api.github.com/users/root-11/orgs","repos_url":"https://api.github.com/users/root-11/repos","events_url":"https://api.github.com/users/root-11/events{/privacy}","received_events_url":"https://api.github.com/users/root-11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-07T15:40:59Z","updated_at":"2015-02-08T03:19:07Z","closed_at":null,"body":"In attempt to run the demo code:\r\n\r\n\r\n    import asyncio\r\n    from numba import autojit\r\n    \r\n    @autojit\r\n    @asyncio.coroutine\r\n    def factorial(name, number):\r\n    \tf = 1\r\n    \tfor i in range(2, number+1):\r\n    \t\tprint(\"Task %s: Compute factorial(%s)...\" % (name, i))\r\n    \t\tyield from asyncio.sleep(1)\r\n    \t\tf *= i\r\n    \tprint(\"Task %s: factorial(%s) = %s\" % (name, number, f))\r\n    \r\n    loop = asyncio.get_event_loop()\r\n    tasks = [\r\n    \tasyncio.async(factorial(\"A\", 2)),\r\n    \tasyncio.async(factorial(\"B\", 3)),\r\n    \tasyncio.async(factorial(\"C\", 4)),\r\n    \tasyncio.async(factorial(\"D\", 5))]\r\n    loop.run_until_complete(asyncio.wait(tasks))\r\n    loop.close()\r\n\r\nThe following error is reported:\r\n\r\n\"\"\"\r\nC:\\Users\\bmadsen\\Desktop\\Nvidia stuff>python asyncio_numba_parallel_execution_of_tasks.py\r\nTraceback (most recent call last):\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\bytecode.py\", line 227, in next\r\n    info = BYTECODE_TABLE[opcode]\r\nKeyError: 72\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"asyncio_numba_parallel_execution_of_tasks.py\", line 16, in <module>\r\n    asyncio.async(factorial(\"A\", 2)),\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\dispatcher.py\", line 153, in _compile_for_args\r\n    return self.jit(sig)\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\dispatcher.py\", line 144, in jit\r\n    return self.compile(sig, **kws)\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\dispatcher.py\", line 279, in compile\r\n    flags=flags, locals=locs)\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\compiler.py\", line 552, in compile_extra\r\n    return pipeline.compile_extra(func)\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\compiler.py\", line 267, in compile_extra\r\n    raise res.exception\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\compiler.py\", line 163, in __call__\r\n    res = self.func()\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\compiler.py\", line 260, in <lambda>\r\n    res = _Stage(lambda: self.extract_bytecode(func),\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\compiler.py\", line 253, in extract_bytecode\r\n    bc = bytecode.ByteCode(func=self.func)\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\bytecode.py\", line 317, in __init__\r\n    table = utils.SortedMap(ByteCodeIter(code))\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\utils.py\", line 98, in __init__\r\n    for i, (k, v) in enumerate(sorted(seq)):\r\n  File \"C:\\Conda\\anaconda3\\lib\\site-packages\\numba\\bytecode.py\", line 231, in next\r\n    raise NotImplementedError(ts % tv)\r\nNotImplementedError: offset=68 opcode=0x48 opname=YIELD_FROM\r\n\"\"\"\r\n\r\nDoes this mean that YIELD FROM is not supported in Python 3.4.2 ?\r\nThe reason for asking is that pypi says that 3.4 is supported."},"comment":{"url":"https://api.github.com/repos/numba/numba/issues/comments/73395020","html_url":"https://github.com/numba/numba/issues/984#issuecomment-73395020","issue_url":"https://api.github.com/repos/numba/numba/issues/984","id":73395020,"user":{"login":"seibert","id":425352,"avatar_url":"https://avatars.githubusercontent.com/u/425352?v=3","gravatar_id":"","url":"https://api.github.com/users/seibert","html_url":"https://github.com/seibert","followers_url":"https://api.github.com/users/seibert/followers","following_url":"https://api.github.com/users/seibert/following{/other_user}","gists_url":"https://api.github.com/users/seibert/gists{/gist_id}","starred_url":"https://api.github.com/users/seibert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seibert/subscriptions","organizations_url":"https://api.github.com/users/seibert/orgs","repos_url":"https://api.github.com/users/seibert/repos","events_url":"https://api.github.com/users/seibert/events{/privacy}","received_events_url":"https://api.github.com/users/seibert/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T03:19:07Z","updated_at":"2015-02-08T03:19:07Z","body":"Numba does not support some Python language features.  The manual describes some of the limitations (http://numba.pydata.org/numba-doc/0.17.0/reference/pysupported.html#constructs), but fails to mention that \"yield\" and \"yield from\" are also not supported.  We need to add that information to the documentation. "}}