Message281973
running with "-W always":
>>> def five(x):
... for _ in range(5):
... yield x
...
>>> F = five('x')
>>> [next(F) for _ in range(10)]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 1, in <listcomp>
StopIteration
>>> list(next(F) for _ in range(10))
__main__:1: DeprecationWarning: generator '<genexpr>' raised StopIteration
[] |
|
Date |
User |
Action |
Args |
2016-11-29 08:46:42 | wolma | set | recipients:
+ wolma, rhettinger, terry.reedy, mark.dickinson, ezio.melotti, r.david.murray, cvrebert, docs@python, Peter.Norvig |
2016-11-29 08:46:42 | wolma | set | messageid: <1480409202.63.0.333074302689.issue14845@psf.upfronthosting.co.za> |
2016-11-29 08:46:42 | wolma | link | issue14845 messages |
2016-11-29 08:46:42 | wolma | create | |
|