On 14 November 2014 08:20, Ethan Furman <ethan@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@gmail.com   |   Brisbane, Australia