[Python-Dev] PEP 380 - return value question and prototype implementation (was Thoughts fresh after EuroPython)

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jul 26 01:31:42 CEST 2010


P.J. Eby wrote:

> I would like to reiterate (no pun intended) the suggestion of a special 
> syntactic  form for the return
>
> Allowing a return 
> value, but then having that value silently disappear, seems like it 
> would delay ... learning

If I remember correctly, all these arguments were made at the
time, even by Guido himself, and he eventually came around
to the view that treating generator returns specially wasn't
worth the trouble.

-- 
Greg


More information about the Python-Dev mailing list