This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients benjamin.peterson, georg.brandl
Date 2008-12-27.18:15:38
SpamBayes Score 2.0314195e-11
Marked as misclassified No
Message-id <1230401740.16.0.00666371405353.issue4748@psf.upfronthosting.co.za>
In-reply-to
Content
>> Hmm, I wonder why lambda: (yield 1) alone doesn't give [1, None]. (That
>> should also go into the test case.)
>
> Actually, I don't think the return value should even make it's way to
> the list. Generator lambdas shouldn't have any return value IMO.

Yes, I think so too. I just wondered at the seemingly inconsistent
behavior right now.

>> Anyway, perhaps yield in lambdas should be forbidden.
> 
> Probably too late now for 2.x and 3.x.

Right. I'd say go for applying the patch.
History
Date User Action Args
2008-12-27 18:15:40georg.brandlsetrecipients: + georg.brandl, benjamin.peterson
2008-12-27 18:15:40georg.brandlsetmessageid: <1230401740.16.0.00666371405353.issue4748@psf.upfronthosting.co.za>
2008-12-27 18:15:39georg.brandllinkissue4748 messages
2008-12-27 18:15:38georg.brandlcreate