On Sat, Dec 28, 2013 at 7:58 AM, Tobias Oberstein
<[email protected]> wrote:
>> You shouldn't use inspect.isgenerator() though -- you should use
>> asyncio.iscoroutine(). (It's currently undocumented but we should fix
>> that.)

> Is that "iscoroutine" brand new?

> oberstet@vbox-ubuntu1310:~/scm/AutobahnPython/examples/asyncio/websocket/testee$
> ~/python340b1/bin/python3
> Python 3.4.0b1 (default, Dec 28 2013, 15:29:21)
> [GCC 4.8.1] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import asyncio
>>>> asyncio.iscoroutine
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> AttributeError: 'module' object has no attribute 'iscoroutine'

No, but I neglected to export it. That's now fixed in the repos, but
for better compatibility with Python 3.4b1 I recommend that you use

from asyncio.tasks import iscouroutine

-- 
--Guido van Rossum (python.org/~guido)

Reply via email to