[Python-ideas] Change how Generator Expressions handle StopIteration
Nick Coghlan
ncoghlan at gmail.com
Fri Nov 14 08:41:32 CET 2014
More information about the Python-ideas mailing list
Fri Nov 14 08:41:32 CET 2014
- Previous message: [Python-ideas] Change how Generator Expressions handle StopIteration
- Next message: [Python-ideas] Change how Generator Expressions handle StopIteration
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 14 November 2014 08:20, Ethan Furman <ethan at stoneleaf.us> wrote: > On 11/13/2014 12:04 PM, Guido van Rossum wrote: > > > > Do we need a PEP for this or can we just go ahead? I haven't heard any > pushback on the basic premise that this is a > > problem we'd like to fix. > > Given the confusion about what the problem is, and the possible fixes, I > think a short PEP would be in order just so > everyone is on the same page. > Agreed, I think it's worth having an explanatory PEP at least for documentation purposes. It also makes it easier to reference from the 3.5 What's New, as there may be some code that's relying on the current behaviour that may need adjusting to use a custom exception type rather than StopIteration (or else refactoring to avoid crossing a generator frame boundary). Regards, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141114/6bfbfb12/attachment.html>
- Previous message: [Python-ideas] Change how Generator Expressions handle StopIteration
- Next message: [Python-ideas] Change how Generator Expressions handle StopIteration
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list