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 benjamin.peterson
Recipients benjamin.peterson, georg.brandl
Date 2008-12-27.18:07:40
SpamBayes Score 1.8877522e-10
Marked as misclassified No
Message-id <1afaf6160812271007r52bbc247i351864e9a1b35103@mail.gmail.com>
In-reply-to <1230399702.86.0.703825779946.issue4748@psf.upfronthosting.co.za>
Content
On Sat, Dec 27, 2008 at 11:41 AM, Georg Brandl <report@bugs.python.org> wrote:
>
> Georg Brandl <georg@python.org> added the comment:
>
> I didn't find it, but someone from the German Python webforum. :)
>
> 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.

>
> Anyway, perhaps yield in lambdas should be forbidden.

Probably too late now for 2.x and 3.x.
History
Date User Action Args
2008-12-27 18:07:41benjamin.petersonsetrecipients: + benjamin.peterson, georg.brandl
2008-12-27 18:07:40benjamin.petersonlinkissue4748 messages
2008-12-27 18:07:40benjamin.petersoncreate