This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author wodny
Recipients docs@python, gvanrossum, vstinner, wodny, yselivanov
Date 2015-07-17.14:47:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437144432.53.0.243847833989.issue24654@psf.upfronthosting.co.za>
In-reply-to
Content
Using benchmark from the section https://www.python.org/dev/peps/pep-0492/#async-await raises:
Traceback (most recent call last):
  File "./bench.py", line 28, in <module>
    timeit(abinary, 19, 30)
  File "./bench.py", line 23, in timeit
    list(gen(depth))
TypeError: 'coroutine' object is not iterable

Am I missing something or is a correction needed in code or documentation?

BTW, PEP 492 uses the term "plain generator", but unlike "generator-based coroutine" or "native coroutine" it's not defined in section https://www.python.org/dev/peps/pep-0492/#glossary. I think adding a definition would be beneficial.
History
Date User Action Args
2015-07-17 14:47:12wodnysetrecipients: + wodny, gvanrossum, vstinner, docs@python, yselivanov
2015-07-17 14:47:12wodnysetmessageid: <1437144432.53.0.243847833989.issue24654@psf.upfronthosting.co.za>
2015-07-17 14:47:12wodnylinkissue24654 messages
2015-07-17 14:47:11wodnycreate