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 wolma
Recipients Peter.Norvig, cvrebert, docs@python, ezio.melotti, mark.dickinson, r.david.murray, rhettinger, terry.reedy, wolma
Date 2016-11-29.08:46:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480409202.63.0.333074302689.issue14845@psf.upfronthosting.co.za>
In-reply-to
Content
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
[]
History
Date User Action Args
2016-11-29 08:46:42wolmasetrecipients: + wolma, rhettinger, terry.reedy, mark.dickinson, ezio.melotti, r.david.murray, cvrebert, docs@python, Peter.Norvig
2016-11-29 08:46:42wolmasetmessageid: <1480409202.63.0.333074302689.issue14845@psf.upfronthosting.co.za>
2016-11-29 08:46:42wolmalinkissue14845 messages
2016-11-29 08:46:42wolmacreate