Message246856
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. |
|
Date |
User |
Action |
Args |
2015-07-17 14:47:12 | wodny | set | recipients:
+ wodny, gvanrossum, vstinner, docs@python, yselivanov |
2015-07-17 14:47:12 | wodny | set | messageid: <1437144432.53.0.243847833989.issue24654@psf.upfronthosting.co.za> |
2015-07-17 14:47:12 | wodny | link | issue24654 messages |
2015-07-17 14:47:11 | wodny | create | |
|