[Python-ideas] Change how Generator Expressions handle StopIteration

Guido van Rossum guido at python.org
Fri Nov 14 18:30:54 CET 2014


Someone please volunteer to write this PEP. I can review, but I need to
save my Python time to work on the type hinting PEP.

On Thu, Nov 13, 2014 at 11:41 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:

> 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
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141114/7e3e80a6/attachment.html>


More information about the Python-ideas mailing list