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

2010-07-25 Thread Terry Reedy
On 7/24/2010 11:21 PM, Guido van Rossum wrote: On Sat, Jul 24, 2010 at 6:51 PM, P.J. Ebyp...@telecommunity.com wrote: By the way, the PEP's optimized implementation could probably be done just by making generator functions containing yield-from statements return an object of a different type

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

2010-07-25 Thread Greg Ewing
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

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

2010-07-24 Thread P.J. Eby
At 07:08 AM 7/24/2010 -0700, Guido van Rossum wrote: - After seeing Raymond's talk about monocle (search for it on PyPI) I am getting excited again about PEP 380 (yield from, return values from generators). Having read the PEP on the plane back home I didn't see anything wrong with it, so it

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

2010-07-24 Thread Guido van Rossum
On Sat, Jul 24, 2010 at 6:51 PM, P.J. Eby p...@telecommunity.com wrote: At 07:08 AM 7/24/2010 -0700, Guido van Rossum wrote: - After seeing Raymond's talk about monocle (search for it on PyPI) I am getting excited again about PEP 380 (yield from, return values from generators). Having read

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

2010-07-24 Thread P.J. Eby
At 08:21 PM 7/24/2010 -0700, Guido van Rossum wrote: FWIW, the thing that was harder to debug when I tried to write some code involving generators and a trampoline recently, was thinking of a function as a generator without actually putting a yield in it (because a particular version of a