[Python-ideas] Possible PEP 380 tweak

Jacob Holm jh at improva.dk
Sat Oct 30 01:57:59 CEST 2010

On 2010-10-30 01:50, ghazel at gmail.com wrote:
> On Fri, Oct 29, 2010 at 4:46 PM, Jacob Holm <jh at improva.dk> wrote:
>> Which is exactly why I'm suggesting dropping "return value" from PEP 380
>> and then doing it *right* in PEP 3152, which has a much better rationale
>> for the "return value" feature anyway.
> Why not split "return value" for generators in to its own PEP? There
> is currently a use case for it in frameworks which use generators for
> coroutines, without any dependency on PEP 380 or PEP 3152.

You could do that, but I think 3152 would need to depend on the new PEP
then.  It would be quite strange to define a new class of "functions"
and not have them able to return a value.

- Jacob

More information about the Python-ideas mailing list