Chris Angelico added the comment:

Marc, are those all cases where the "raise StopIteration" is actually inside a 
generator? If so, it can be trivially replaced with "return". Yes, it'll break 
that way of spelling it, but it's a completely mechanical transformation, and 
making the change won't break your code for previous versions of Python. 
Personally, I would recommend using "return" there anyway, regardless of this 
proposal.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22906>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to